I. Introduction
Chatbots, which are computer programs designed to interact with users through messaging apps, chat windows, or voice interfaces, have significantly evolved since their inception over 50 years ago [
1]. One of the earliest examples, ELIZA, developed in 1966, simulated a therapist using simple pattern matching to respond to typed questions. Contemporary chatbots leverage advanced techniques to better understand user queries and provide relevant responses, often performing functions traditionally managed by mobile apps or websites [
2]. This evolution positions chatbots as critical tools across various fields, including healthcare, where they hold immense potential to support personalized medicine models.
In the realm of personalized medicine, chatbots have emerged as transformative tools capable of delivering tailored health recommendations, enhancing patient engagement, and integrating seamlessly with healthcare systems to provide real-time, data-driven insights. However, the effectiveness of these chatbots depends on a thorough understanding of available models, as well as their strengths, weaknesses, and limitations. Chatbots can be broadly classified into three categories: rule-based systems, machine learning-based systems, and advanced artificial intelligence (AI)-driven systems.
(1) Rule-based chatbots: These systems operate on predefined rules and decision trees, making them simple to implement and predictable. However, their rigidity limits their ability to manage complex or unexpected queries, making them suitable only for straightforward, repetitive tasks. This lack of flexibility poses significant challenges in personalized medicine, where nuanced interactions are crucial.
(2) Machine learning-based chatbots: These chatbots use algorithms to learn from data, enhancing their responses over time. They offer greater adaptability and the ability to handle a wider range of queries compared to rule-based systems. Nonetheless, they require extensive datasets for training and can inherit biases present in the data. Their performance heavily depends on the quality and diversity of the training data.
(3) Advanced AI-driven chatbots: Leveraging advanced technologies such as natural language processing (NLP) and transformers, these chatbots excel at understanding and generating human-like responses. They effectively manage complex interactions and integrate with external application programming interfaces (APIs) and services to deliver real-time information.
However, their development and deployment are resource-intensive, and they may struggle to maintain contextual coherence over extended conversations [
3]. Understanding these strengths and limitations is critical for developing effective chatbots in personalized medicine. Additionally, this research proposes integrating the chatbot into the welcome page of the TIGUM Research Group’s website to ensure prompt responses to new users’ queries, thereby improving accessibility and user experience [
4]. The core functionality of a chatbot lies in managing dialogues and responses while integrating external services through APIs or servers to retrieve information. Two prominent tools for chatbot development are the Microsoft Bot Framework and ActiveChat.ai.
The Microsoft Bot Framework, combined with Azure Bot Service, provides a comprehensive suite for developing, testing, deploying, and managing intelligent bots. Its modular SDK, along with AI services, enables the creation of bots capable of speech recognition, natural language understanding, and question-answering.
Meanwhile, ActiveChat.ai is a visual platform focused on conversational design, providing tools for seamless business integration. Its intuitive “LEGO for chatbots” approach makes it accessible to beginners while robust enough to address complex business needs [
5].
Additionally, as noted by Jiang et al. [
6], these two tools differ significantly in their approaches to chatbot implementation. The Microsoft Bot Framework is a development framework that relies on programming languages such as NodeJS or C#, requiring specialized technical knowledge. While it offers greater functionality and customization compared to ActiveChat.ai, its complexity can complicate future updates and evolution. In contrast, ActiveChat.ai is a cloud-based solution emphasizing visual conversation design, making it more accessible for users without extensive programming expertise, yet still capable of supporting advanced business objectives.
Within the context of the TIGUM project, the specific requirements and anticipated evolution of the chatbot’s beta version were carefully assessed. A comparative table was developed, assigning an importance percentage to each criterion and rating each solution on a scale from 1 to 3 [
7]. This evaluation ensures that the selected tool aligns with the project’s technical needs and long-term objectives. For instance, a user’s intent (action) might be to book a hotel (book.Hotel), accompanied by entities (parameters) such as destination, hotel chain, and check-in and check-out dates. This information is transmitted back in JSON format, which the chatbot processes to fulfill the user’s request [
8]. Dialogflow emerged as the optimal solution, though it is not the most critical initial choice based on the project’s primary requirements, as switching engines in the future remains relatively straightforward.
User interface: Messenger app and TIGUM website
Motor Bot: ActiveChat.ai cloud solution
NLP Engine: Dialogflow solution
To support chatbot functionality within the TIGUM project, a Frequently Asked Questions (FAQ) database was developed using QnA Maker, a cloud-based service provided by Microsoft Azure Cognitive Services. This solution allows the creation of a knowledge base through the entry of question types, titles, and corresponding answers. Upon receiving a user query, the tool’s API retrieves and provides the most relevant response, ensuring accurate and efficient information delivery. For weather integration, the OpenWeather API was employed. A free API key was generated to retrieve weather data by city, providing detailed information in JSON format. This integration allows the chatbot to deliver real-time weather updates, significantly enhancing user experience. To streamline data processing, two Azure Functions were developed to serve as gateways between the chatbot and external web services. These functions extract relevant data from JSON responses and reformat it into a simplified structure for smooth integration with the ActiveChat.ai platform. This approach optimizes data flow and ensures effective communication between the chatbot and external APIs [
9]. Technological advancements have improved smartphones’ processing, storage, and connectivity, optimizing application development and resource consumption (see
Figure 1).
Azure Functions offers an efficient solution for executing small segments of code (“functions”) in a cloud environment. This tool enables developers to concentrate on coding without the need to manage complete applications or infrastructure, thereby enhancing productivity. Azure Functions supports various programming languages, including C#, Java, JavaScript, PowerShell, and Python, and operates under a pay-per-use model, optimizing cost efficiency. Additionally, it scales automatically as demand increases, facilitating serverless application development within the Microsoft Azure ecosystem [
5].
Azure Functions, a vital component in the development of the TIGUM project chatbot, provides exceptional features that enhance deployment and efficiency:
Language flexibility: Supports multiple programming languages, including C#, Java, JavaScript, and Python, enabling developers to select the most suitable language for their needs.
Pay-per-use model: Costs are incurred only during actual code execution, optimizing the project’s economic resources.
Customizable dependencies: Supports NuGet and NPM, facilitating easy integration of external libraries.
Built-in security: HTTP-activated functions can be secured through OAuth providers such as Azure Active Directory, Google, and Microsoft, protecting sensitive data effectively.
Simplified integration: Easily integrates with Azure services and SaaS platforms, crucial for connecting the chatbot to external APIs such as OpenWeather and QnA Maker.
Flexible development environment: Enables function development directly within the Azure portal or through continuous integration tools such as GitHub and Azure DevOps.
Open source runtime: Azure Functions’ runtime is open-source and available on GitHub, fostering transparency and collaboration [5].
These features have played an instrumental role in ensuring scalability, security, and operational efficiency for the chatbot within the TIGUM project, aligning closely with goals related to resource optimization and continuous improvement (see
Figure 2).
Two key functions developed in the TIGUM project are:
(1) GetCurrentWeather: Invoked by the getWeather dialog in ActiveChat, this function interfaces with the OpenWeather API to retrieve weather data, returning it in a streamlined
(2) GetQnaAnswer: Invoked by the FaqAnswer dialog in ActiveChat, this function communicates with the QnA Maker API to fetch answers from the FAQ database, delivering responses in a simplified JSON structure.
These functions illustrate how the TIGUM project effectively integrates external services to enhance chatbot functionality, improving information delivery and user experience.
IV. Discussion
The results underscore the necessity of involving stakeholders, including developers and technical implementers, in managing technological transitions for chatbot applications in personalized medicine. This collaborative approach effectively addresses key challenges related to platform development and AI-driven solution implementation, ensuring chatbot applications fulfill personalized healthcare requirements [
21].
The study identifies a significant disparity between AI technologies’ technical potential and their actual real-world outcomes. This gap arises partly because end-users, such as healthcare providers and patients, often lack the technical proficiency necessary to adopt and utilize these technologies effectively [
23]. Such limitations underscore the importance of training and educational initiatives for successful integration.
Although the proposed model emphasizes collaboration among developers, healthcare providers, and patients, achieving practical harmony among these groups can be challenging. Ineffective stakeholder communication may delay implementation processes and diminish chatbot effectiveness in clinical environments.
This study aimed to develop a reference framework for effectively implementing chatbots in personalized medicine, and the results affirm the importance of adopting a collaborative and user-centric approach. To bridge the gap between technological potential and practical outcomes, it is vital to: train end-users, foster collaboration, and expand research.
Furthermore, the results and proposed validation model indicate that developing chatbot applications through collaborative efforts involving all stakeholders is the most effective strategy for creating efficient technological tools in personalized medicine. Aligning developers, healthcare providers, and patient contributions ensures AI-driven chatbots provide seamless and impactful personalized healthcare experiences [
29].
In conclusion, integrating chatbots into personalized medicine represents a significant advancement in healthcare delivery. By utilizing individual patient data, these AI-driven tools deliver personalized recommendations and support, enhancing treatment precision and effectiveness. This aligns with the increasing emphasis on patient-centered care, demonstrating the potential for chatbots to revolutionize traditional healthcare models by making them more accessible, efficient, and responsive to individual patient needs.
Despite the advanced capabilities of chatbot technology, a notable gap persists in practical application, primarily due to limited technical skills among users. To address this gap, it is crucial to adopt user-centric design principles and provide comprehensive training and resources to both patients and healthcare providers. Empowering users in this manner will maximize chatbot adoption and impact, ensuring they fulfill their promise to improve healthcare outcomes.
The success of chatbot applications in personalized medicine relies significantly on the collaboration of all relevant stakeholders, including developers, healthcare providers, and patients. The proposed validation model emphasizes the importance of this multidisciplinary approach, ensuring chatbot solutions are developed to address the complex requirements of personalized medicine while aligning with clinical objectives and user expectations. Such collaboration promotes innovation and translates technological advancements into tangible real-world benefits.
Realizing the full potential of chatbots in personalized medicine requires ongoing research and development. Future initiatives should focus on refining algorithms, advancing natural language processing capabilities, and broadening personalized healthcare interventions’ scope. Collaborations among academic institutions, industry leaders, and regulatory bodies will be crucial to drive innovation, ensure patient safety, and effectively integrate chatbot technologies into healthcare systems. This ongoing advancement will position chatbots as essential tools in future healthcare delivery.