Implementation Open Artificial Intelligence ChattGPT Integrated With Whatsapp Bot

. The rapid development of internet technology has led to changes in human habits in terms of seeking information. Now humans have a tendency to use smartphones to find information, especially by using the WhatsApp application. According to data compiled by creative agency we are social in 2023. Whatsapp is in the top position of the most used application, reaching 92%. Artificial intelligence is used as a tool to create remote services to customers because there are no restrictions on working time and can only be accessed using a smartphone. GPT (Generative Pre-training Transformer) chat technology has the ability to answer questions, as well as understand the context of the conversation and generate meaningful text like a remote conversation with humans. ChattGPT can provide information to users with these capabilities, especially in terms of health. In the research there is an integration process between Chattgpt and Whattsapp, by entering the API (Application Programming Interface) key Chattgpt into Whattsapp with the help of javascript programming language. So that the artificial intelligence system using ChattGPT can be implemented on whattapp.


Introduction
In this digital era, technological advancements have opened the door for major transformations in various sectors, including in healthcare.One innovation that has attracted attention is the implementation of ChatGPT on instant messaging platforms such as WhatsApp in the context of healthcare.ChatGPT, developed by OpenAI, is an artificial intelligence model capable of understanding and generating text in a human-like manner.Utilizing ChatGPT in healthcare, especially through WhatsApp, can provide a number of significant benefits [1].In the initial approach, ChatGPT can serve as a virtual assistant that provides health information, gives simple treatment suggestions, and answers general health questions to WhatsApp users.The first benefit of this implementation is the availability of fast and accurate health information.Users can easily access health information, disease symptoms, and health tips without having to search through various sources.ChatGPT can provide more personalized and reliable answers, helping people improve their health literacy [2].In addition, the use of ChatGPT on WhatsApp can streamline the initial medical consultation process.Patients can ask questions regarding their symptoms or health conditions, and ChatGPT can provide initial guidance or direct them to seek further treatment.This can help in early detection of health issues and increase public awareness of preventive measures [3].By combining artificial intelligence and easy access through WhatsApp, the implementation of ChatGPT in healthcare can be a step towards providing more affordable, fast and efficient healthcare services.As such, this technology can act as a catalyst to achieve the global goal of improving overall public health.
Telemedicine is a concept that allows interaction between patients and healthcare professionals without physical presence in the same location.The utilization of telecommunication technology in telemedicine has opened the door for globally accessible healthcare.A chatbot, as an artificial intelligence that can communicate in real-time, provides an interactive and user-friendly interface.In the context of telemedicine, a chatbot can be a virtual assistant that assists patients in undergoing medical consultations, providing health information, and even guiding patients in the monitoring of certain health conditions.Chatbots enable better accessibility for medical consultations, especially for those who live in remote areas or are hard to reach by traditional healthcare facilities.Patients can easily communicate with the chatbot through an online platform, reducing geographical barriers.Chatbots can help in continuous health monitoring.Patients who have chronic conditions can use chatbots to record symptoms, undergo regular monitoring, and receive treatment-related advice based on the data collected.

Methods
This research uses the Software Development Life Cycle (SLDC) methodology [4].Software Development Life Cycle (SLDC) is a work stage used to determine software makers to determine the steps that must be taken to process the development of a software.The stages used are requirements analysis, design, system, implementation, verification and maintenance.The design used in this method is a waterfall model where this model requires users to create software in a coherent manner according to the sequence in the Software Development Life Cycle (SLDC) [5].Define the specific needs and objectives of implementing ChatGPT on WhatsApp in a healthcare context.Create an account on ChatOpenAI, to obtain the API key of chattGPT.After that, prepare an adequate program with javascript and C++ programming languages.Prepare a whatsapp account to link with the program that will be created.

Requirement
The API key that has been obtained from ChatOpenAI is a way to create artificial intelligence in a system, so that the API key is likened to a robot that will produce an answer to the question.after that it is integrated into WhatsApp so that it can answer questions created by humans.as depicted in Figure 2. Computer The framework of this research is a series of systematic steps to solve the problem, including the following process for creating a whatsaap bot [2]. Figure 3  with @botfather and provides access to the creation process.This is done by signing up to @botfather.When you find a parent bot, the bot command is created in /ai.You will receive an automated bot response asking for your bot name.The bot searches the OpenAI ChatGPT database for related keywords.A keyword search will display results if the keyword you entered is present.Conversely, if the keyword you entered is missing, other answers will be displayed and the search will be completed.This subsection explains the steps to integrate and implement ChatGPT with WhatsApp bots.

Verification.
Test the chatbot functionality to ensure correct responses to queries.Conduct performance testing to ensure the chatbot can handle the expected volume of users and respond quickly.Questions that have been asked to the chatbot will be verified by asking the same thing to people or systems that are experts in their fields.for example in Figure 5 the questions given are verified by someone who is an expert in their field.the verification is like in Figure 7, we asked the doctor with the same question.

Maintenance
Implement monitoring tools to track chatbot performance and identify potential issues quickly.Continuously update and improve the ChatGPT model based on the latest trends and user response.Performance monitoring on the chattbot is done once every 10 minutes.If more than 10 minutes then the npm start command will be called to start the chattbot again.Further research would be better done to provide different questions, especially in the world of health.whether the answer will be validated valid or not by the expert.

Results and discussion:
Creating a chatbot with WhatsappBot using ChatGPT makes it easier to search for information.Among them are diagnosing diseases based on disease symptoms and determining the output of a C++ program.The experimental results are displayed in written format [6].Testing is carried out by checking the application repeatedly and thoroughly to ensure that the system is free from bugs and errors.As part of the first stage, Figure 4 is the first experimental illustration, namely calling the npm start command meaning the bot is started [7].At this stage the chatbot is expected to be able to provide a response as a guide, and the results are as expected (an example is shown in Figure 5).The desired output format is shown in Figure 5.This shows that the chat starts with a dialogue .aiquestion and then the Bot can respond according to the expected instructions.In the next stage, the chatbot needs to provide the correct answer in the programming language and the results are as expected, as seen in Figure 5.The integration of AI and ChattGPT has worked as expected.Nearly all experiments were run multiple times without any errors in the system or response [8].This is an advantage that is present in the OpenAI ChatGPT system which is integrated into the WhatsApp bot.Whatsapp makes it easy for users to find the information they want.For example, if someone experiences symptoms of a disease while the health facility is far from home, then first aid can determine 02401019-06 the diagnosis of the disease through artificial intelligence, in this case AI has been implemented into Whatsapp, making it easier for users [9].This has been proven in Figure 5, the response from artificial intelligence answers the diagnosis of the disease, so this technology has been proven to help someone experiencing symptoms of disease and treat it early.From figure 7 was confirmed by Dr. Shinta Rispasari from Alodoc.com.So that for the need to find information remotely it is more efficient to use this technology.However, further research needs to be done whether this technology is appropriate for diagnosing all disease symptoms.Searching for answers to the same questions on the implementation of chattgpt on whatsapp and the chattgpt website is because artificial intelligence works based on many keywords so that if done at different times it will produce different answers, and the size of the data sent in the form of questions will affect the length of the answer, so that the answer on the chattgpt website in Figure 6 is longer than the answer on whattsapp bot in Figure 5.The next implementation in Figure 7 is the implementation of artificial intelligence used to search for answers in the c++ program.and the results show correct.The comparison is done by searching for answers on the c++ compiler platform and the implementation of artificial intelligence on WhatsApp.And it can be proven that it produces the same answer in Figures 7 and 8.So that in terms of finding answers the c++ chattgpt program is proven valid.

Conclusions:
The integration between open AI and WhatsApp is an innovation to make it easier for humans to do many things, in this research making it easier to find information.The implementation of Chattgpt into Whatsapp can make it easier for users to find information, especially information about health and education.The information provided by the WA chatbot is given in detail and systematically so that it is considered more efficient because users do not need to go to the hospital to diagnose the disease.

Figure 8 .
Figure 8. Test the Output a Program from implementation chattGPT at whatsapp.

Figure 9 .
Figure 9. Test the Output a Program from compiler C++ .