How to integrate ChatGPT into my Blip chatbot? March 26, 2024 13:34 Updated Index: Demonstration video What is ChatGPT? Locating the extension Setting up ChatGPT in Blip ChatGPT Preparation Creating the ChatGPT Integration Block How to enhance my ChatGPT assistant's capabilities? [Advanced Level] Demonstration video What is ChatGPT? ChatGPT is an innovative natural language processing tool developed by OpenAI. It provides useful and up-to-date information, covering a wide range of topics, thanks to its access to internet data. Benefits of ChatGPT for Your Chatbot Integrating ChatGPT into your Blip chatbot brings several benefits, such as: Intelligent and Contextual Responses: ChatGPT offers accurate and contextually relevant responses. Multilingual Support: It can interact in multiple languages, expanding the reach of your chatbot. Diverse Applications: From technical support to virtual assistant functions. Natural Conversations: Improves the user experience with fluent dialogues. Time and Resource Savings: Allows the team to focus on more strategic tasks. Pricing OpenAI adopts a token-based pricing model: GPT-4: $0.01 per 1,000 input tokens; $0.03 per 1,000 output tokens. GPT-3.5: $0.001 per 1,000 input tokens; $0.002 per 1,000 output tokens. Example: For a chatbot using approximately 500 tokens per interaction, the cost would be around $0.005 with GPT-3.5 and $0.02 with GPT-4. Note: On average, one token represents 1/4 of a word in Portuguese. The ChatGPT extension is available in the Blip Store. Just search for “ChatGPTˮ. Setting up ChatGPT in Blip Creating the Key on OpenAI To use ChatGPT, you need to obtain a credential on the OpenAI website: Access OpenAI API Keys. Click on ‘Create new secret keyʼ and name your key. Copy the generated key. Within the extension, paste the key into the 'API Key' field and save it. ChatGPT Preparation In Blip, go to 'Assistant Builder' and click on 'Create new assistant'. Remember: The assistant's behaviour will depend on how you configure it, including its name, tone of voice, creativity, and guidelines. Knowledge Base Improve ChatGPT's performance by providing documents such as spreadsheets, PDFs, and texts. These documents enrich ChatGPT's responses with specific information about your company. Benefits: Customization: Adaptation to the language and values of your company. Accuracy: Increased accuracy of the provided information. Efficiency: Improvement in the ability to respond to specific questions about the company. Installing the Blip Extension and Integration with Builder Integrate ChatGPT into the builder. First, install the Chrome extension for Blip Builder here. After installation, access the 'Builder' in the Blip portal to start the integration. Creating the ChatGPT Integration Block Add a new integration block for ChatGPT in Blip. Click on the created block. Select 'Integration' and choose 'ChatGPT' as the type. Configure the input variables, additional context, and result variable. Clicking on the second block and then going to 'Integration'. Assistant: the assistant created by you. Input variable: 'input.content' is a default variable from Blip, used as the user's input. It is usually used as the default to have what the user typed. Additional context: Context only available in the builder, can be used to send data obtained from an API, or data from the contact who is conversing. Result variable: It is the variable that will receive the assistant's message; you can name it as you wish. Adding the Response Content In another block, configure the content to provide the ChatGPT response to the user. Connect the blocks to complete the interaction cycle. Remember: This is just an example of how to use the ChatGPT integration. With this integration, you have the freedom to edit and create customized content for your bot in Blip. Take advantage of all possibilities and create amazing interactions with your users. How to enhance my ChatGPT assistant's capabilities? [Advanced Level] Enhance the functionalities of your ChatGPT by adding specific skills. Examples of skills include: Sending more elaborate messages with dynamic content. Integrating external APIs for automated actions. Forwarding cases to human support when necessary. Incorporating a New Skill To add a skill, access the ChatGPT extension panel. Navigate to the 'Assistant Builder' section and then select the 'Skills (Advanced)' tab. Medical Consultation Scheduling as an example. The added skills will allow ChatGPT to schedule appointments automatically. Information such as: Patient's name. Date and time of the appointment. Required medical speciality. It is crucial to describe the skill clearly so that ChatGPT understands and executes it correctly. If a parameter is marked as mandatory, ChatGPT will request this information from the user. For example, if "client_name" is mandatory, the assistant will ask for the client's name. Without this information, the scheduling will not proceed. Setting Up Exit Conditions To activate the created skills, define new exit conditions. In the Builder, click on the corresponding block for ChatGPT processing. Accessing the 'Integration' option after selecting the appropriate block. Name the processing variable according to your preference. In the 'Exit Conditions' tab, change the "If" option from "User Response" to "Variable". Use the name of the variable defined earlier. Change the condition from "Exists" to "Equal to", and insert @id after the variable name. In the values, enter the name of the previously defined skill. In "Go to", select or create a new block as needed. The new block created will process the specific skill, such as confirming an appointment. In the block, you can, for example, display relevant information to the user, such as name, date, time, and medical speciality, using HTML for formatting. Use the syntax client, for example. {{skill@params.client_name}} to display the name of the For more information, access the discussion on the topic in our community or the videos on our channel. 😃 Related articles Sending WhatsApp Active Messages on Blip Desk How to connect your chatbot on Instagram? Active Messages - Error Codes Setting up your AI model in the Chatbot How to add push notifications to BLiP Chat Android