AI Hub
Last updated
Last updated
GoChat's AI Hub provides a suite of AI-powered tools designed to enhance chatbot capabilities, streamline customer interactions, and automate complex tasks.
By following this documentation, you can effectively utilize GoChat's AI Hub to create intelligent chatbots that automate tasks, improve customer engagement, and drive business growth.
Key Features
AI Agents: AI Agents introduce AI functionality to chatbots in an easy-to-manage way. They can be customized with specific personas, skill sets, and constraints to handle various customer interactions, from appointment booking to customer support.
AI Functions: These allow AI Agents to perform specific actions, such as fetching data from external sources or updating third-party platforms. AI Functions can capture user details, retrieve available time slots, and book appointments.
AI Tasks: AI Tasks enable the creation of follow-up messages and other automated actions based on the analysis of chat history. They help re-engage inactive users and ensure a seamless conversational experience.
Getting Started with AI Hub
Accessing AI Hub: Navigate to the AI Hub in the left-hand menu of the GoChat platform. Here, you'll find options to manage AI Agents, AI Functions, and AI Tasks.
Creating an AI Agent:
Click the "AI agent" button.
Give the agent a descriptive name, such as "Appointment Booking Agent".
Provide a detailed description outlining the agent's skills and responsibilities.
Configure AI Model Settings: Choose between OpenAI, DeepSeek, and X AAi. OpenAI is recommended when using AI Functions due to its stability. Select an appropriate model (e.g., GPT-4 Turbo) and adjust parameters like temperature, frequency penalty, and presence penalty. Adjust the number of chat messages before auto-summarization to save character space.
Define the Agent Prompt: Define the agent's persona, skills, and constraints. Use the "generate agent prompt" feature to automatically populate these sections based on the agent's description. Review and adjust the generated prompt to ensure it aligns with your requirements. Add additional guidelines to the prompt, such as "ask for each user detail separately".
Save the AI Agent.
Creating AI Functions:
Navigate to the AI Functions section in the AI Hub.
Click the "plus AI Function" button.
Define the function's purpose such as, "capture user details".
Add Parameters: Define the parameters that the function needs to capture, such as first name, last name, and email. Specify if each parameter is required and enable memory to remember the values that were given earlier in the conversation. Map each parameter to a corresponding system field to save the captured data.
Generate Function Prompt: Use the "generate function prompt" feature to create a prompt based on the function's description and parameters. Review and customize the prompt to include specific instructions and constraints.
Set up a Workflow: Connect the AI Function to a workflow that performs the necessary actions, such as fetching available time slots or creating a CRM contact. Use the AI Function Result node to return the fetched values back to the AI Agent.
Save the AI Function.
Do not forget to add the new function to an "AI agent"
This is how the workflow for the Function looks like:
Creating AI Tasks:
Go to the AI Tasks section within the AI Hub.
Click the "plus AI Task" button.
Provide a name and a detailed task prompt. For example: "Create an engaging follow-up message with the user who became inactive. Analyze the current chat history and determine where the user left the conversation and create the follow-up message based on that".
Configure the AI Model: Select an appropriate AI model like GPT-4 Turbo.
Save the AI Task.
Activating AI Agents in the Flow Builder:
Open the Flow Builder and navigate to the desired flow.
Add an action node and select "AI Actions".
Choose "Activate AI Agent" and select the primary AI Agent from the dropdown menu.
Optionally, add secondary agents to enrich the primary agent with additional functions.
Set an idle timeout to automatically exit the AI Agent node after a period of user inactivity.
Save the output payload to a JSON field for later use.
Tips and Best Practices
Detailed Descriptions: Provide detailed descriptions for AI Agents, AI Functions, and AI Tasks to help the AI understand their roles and responsibilities.
Specific Instructions: Include specific instructions and constraints in the agent and function prompts to guide the AI's behavior.
Error Handling: Implement error handling in AI Functions to gracefully manage invalid inputs or unexpected issues.
Testing: Thoroughly test AI Agents and Functions to ensure they are working as expected.
Follow-Up Messages: Use AI Tasks to create engaging follow-up messages that re-engage inactive users and continue the conversation.
Leverage Memory: Enable memory in AI Functions to remember user details and provide a more personalized experience.
Monitor Performance: Regularly monitor the performance of AI Agents and Functions to identify areas for improvement.
Automate the process of scheduling appointments by capturing user details, fetching available time slots, and booking appointments with third-party platforms.
Example of "Persona & Role" for the agent
Example of "Skills"
Example of "Constraints"
Customer Support: Provide instant answers to frequently asked questions and handle common customer inquiries with AI-powered chatbots.
Lead Generation: Capture email addresses and phone numbers automatically to grow your contact list and re-engage leads.
Personalized Recommendations: Offer personalized product recommendations or content suggestions based on user preferences and behavior.
Automated Follow-Ups: Send automated follow-up messages to inactive users to re-engage them and encourage them to complete their desired actions.
Troubleshooting
AI Messages System Field: Check the bot user's AI Messages system field to track the conversation between the user and the AI Agent and identify any issues.
Live Chat: Monitor the live chat to see how the AI Agent is interacting with users and identify any areas for improvement.
Function Calls: Verify that the correct functions are being called at the appropriate times. If a function is not being triggered, check the AI Agent prompt and ensure it includes clear guidelines on when to call the function.
Custom Field Values: Check that the custom field values are being saved correctly. If a value is not being saved, review the AI Function and ensure it is properly configured to capture and store the data.
What are the core components of the AI Hub and how do they work together?
The AI Hub consists of AI Agents, AI Functions, and AI Tasks. AI Agents serve as the primary conversational AI, handling user interactions based on defined personas, skills, and constraints. AI Functions are workflows that perform specific actions (like fetching data or booking appointments) and providing data to the agent. AI Tasks are background operations, such as generating follow-up messages based on chat history. These components work in concert to automate complex processes, as exemplified in the demonstration of scheduling an appointment. The agent handles the conversation, functions retrieve data and execute actions, and tasks ensure continued engagement.
How do I create an AI Agent, and what are the key settings I need to configure?
To create an AI Agent, navigate to the AI Hub, select "AI Agents," and click "Create AI Agent." Provide a name and description for the agent. Crucial settings include selecting the AI model (OpenAI is recommended when using AI functions), adjusting parameters like temperature (for response creativity) and the number of chat messages before auto-summarization (for context retention and space-saving). You can define the agent's Persona, skills, and constraints manually or use the "Generate Agent Prompt" feature to automatically create these based on the description. Finally, you need to activate the AI agent inside the flow builder.
What are AI Functions, and how do I use them to enhance my AI Agent's capabilities?
AI Functions are workflows that perform specific actions to enhance the AI Agent's capabilities. Create them in the AI Hub under "AI Functions," defining parameters to capture from the user (like first name, last name, email) along with instructions. You can then generate a function prompt that describes what the function needs to do and what the constraints are. These parameters are passed to a linked workflow. For example, the function could capture user details, trigger a workflow to fetch available time slots from a calendar system using these user details, and return the time slots back to the AI Agent to present to the user. Functions can also trigger other subflows to save data or call third-party APIs.
How do AI Tasks work, and what is an example of how they can be used to improve user engagement?
AI Tasks are background processes that execute independently, enhancing the user experience. To create an AI Task, go to AI Hub and click "Create AI Task". You then create a task prompt and add the AI Task to the flow builder with a AI Action -> AI Task. A prime example is generating follow-up messages for inactive users. An AI Task can analyze the chat history, determine where the user left off, and craft a personalized, engaging message to re-engage them. For instance, if a user provided their first name but didn't complete the process, the task might generate a message reminding them to provide their last name and email to complete the booking.
How can I troubleshoot my AI Agent to ensure it is functioning correctly?
Troubleshooting involves two key methods: checking the "AI messages" system field for the bot user and reviewing the live chat. The "AI messages" field provides a detailed record of the conversation between the user and the AI Agent, including the functions called, the arguments passed, and the AI's replies. The live chat shows the conversation from a user perspective and confirms that the correct AI Agent is being triggered. By examining these logs, you can identify issues such as incorrect function calls, missing data, or prompt-related problems, allowing you to adjust the AI Agent or AI Function accordingly.