Connect ChatGPT with WhatsApp in BizMagnets Chatbot
Elevate your conversational AI capabilities with the Open AI connector. Easily integrate and customize actions such as Create Completion and Chat Completion to craft a unique Open AI experience.
Enhance your conversational AI with the Open AI connector. This guide walks you through the seamless integration process, allowing you to choose actions like Create Completion and Chat Completion for a tailored Open AI experience.
Connect Open AI
To begin, navigate to the Integrations section and click on Open AI.
After clicking on Open AI Connector, you will be prompted to either Add New Connection or Select Existing Connection. If you haven’t created a connection yet, review the Connection Name and proceed by pasting your API Key. You will find the guide to find the key here.
Once you've entered the Connection name and API Key, click Create Connection.
If the Open AI connection is already set up, simply choose Select Existing Connection and click Connect.
Using Open AI Connector
Once the connection is created, click Connect next to the connection to start configuring the connector, which will take you to the selected action.
After connecting, the selected action, Chat Completion, will open, and you'll need to configure fields such as Context, User Prompt, Model, Knowledge Base, Max Tokens, Temperature, and the variable.
For the Context, you can use the following example: "If the Intent is either Feedbacks, Products, Product, Register, Hi, Main Menu, match the user input to the correct intent and return the intent as it is. If it doesn't match, return the default intent."
You can modify the intents according to your bot, but keep the rest of the context the same for the card to function properly. For example: "If the Intent is either Intent 1, Intent 2, Intent 3, Intent 4, Intent 5, Intent 6, match the user input to the correct intent and return the intent. If it doesn't match, return the default intent."
In the User Prompt field, add the variable as {{intent.text}}.
For the Model, there is only one option available for the Chat Completion action that you need to select.
Select the knowledge Base from the dropdown menu.
Tokens represent pieces of words, and their length can be described as:
Sampling temperature controls the randomness of the text generated by Open AI. A higher temperature (e.g., 0.8) leads to more diverse and creative output, while a lower temperature (e.g., 0.2) makes the output more focused and deterministic.
The default temperature in Open AI is set to 0.8, which offers a good balance between creativity and consistency. You can experiment with different temperature settings to suit your needs.
You also need to create or select a variable to store the AI's response.
Once you’ve filled in the values for all fields in the action, click Save.
In BizMagnets bot-builder, the card will appear as shown in the picture below. The green and red marks represent the success and failure conditions.
Maximize the potential of your Open AI connector by carefully configuring actions like Chat Completion. Tailor the context, user prompts, model selection, and temperature settings to create a smooth and enriched conversational flow. With success and failure conditions visually depicted in BizMagnets bot-builder, you’re set to harness the power of AI in your chat-flow.