Skip to main content
AI Agent lets your business use AI to respond instantly based on your own business data and knowledge.

How to create a new AI Agent

To create a new AI Agent:
  1. Go to AI Hub from the navigation menu.
  2. Click + Create AI Agent.
create_ai_agent_button
  1. Fill in the required information and configure your Agent.
ai_agent_configuration_modal
After the Agent is created successfully, it will appear in the list. You can manage, edit, or delete existing Agents there.

Set a reply delay

You can set how long the AI Agent waits before sending a reply with Bot reply delay. This is useful when customers often send several messages in a row. The Agent waits until the customer finishes sending messages, then replies once instead of responding to each message separately. To set the reply delay:
  1. Find the Agent you want to configure in the Agent list.
  2. Open the Actions menu at the end of the Agent row.
  3. Select Bot reply delay.
  4. Choose the waiting time and click Confirm.
In the Actions menu, select Bot reply delay to open the reply delay settings.
bot_reply_delay_menu
In the Bot reply delay dialog, choose a waiting time and click Confirm to save the setting.
bot_reply_delay_settings
The timer starts after the customer sends a message. If the customer sends another message during the waiting period, the timer resets and the messages are combined into one reply.

How the AI Agent sends messages

The AI Agent does not wait for the complete answer and send it as one unchanged message. It streams the model response as it is generated, then prepares the outgoing messages for the channel. When preparing the Agent’s outgoing reply, ChatbotX uses these rules:
  • When the response contains an empty line between two paragraphs, the Agent treats that space as a message boundary. The paragraph after it is sent as a new chat bubble.
  • A URL or image link is extracted from the text and sent as a separate message.
This behavior lets the Agent send follow-up thoughts as separate bubbles, similar to a human conversation. It also means one customer message can produce 1-4 outgoing messages when the answer contains several paragraphs or links. When a customer sends several messages in quick succession, each message may start a separate AI reply. As a result, the Agent can send more than five outgoing messages. Use Bot reply delay to group the customer’s messages before the Agent starts replying.

Limit the reply to two text chat bubbles

To keep the response in one long paragraph and limit it to no more than two text chat bubbles, add this instruction to the Agent’s System Message (Prompt):
This instruction limits the Agent to two chat bubbles containing text. URLs and image links are extracted and sent as separate messages, so they are not included in this limit.

Provide information to the AI Agent

To help your AI Agent answer customers as accurately as possible, you need to give it business information and data. There are 2 main ways to do that:

1. Add information in the System Message (Prompt)

The System Message acts as the core guidance for the AI. In the Prompt field, you can provide your business introduction, response style, and any general rules you want the Agent to follow while talking to customers.
ai_agent_system_prompt

2. Add Tools

Tools help the AI Agent do more than just answer questions. There are 3 kinds of Tools you can attach to an Agent:
ai_agent_select_knowledge_file
Knowledge Lets the Agent look up information from real business documents. Supported formats include PDF, CSV, DOCX, DOC, JSON, PPTX, and TXT.
  • Upload documents in the Knowledge section.
  • In the Agent settings, select the uploaded files that the Agent should use as reference sources.
AI Functions Lets the Agent call external APIs to retrieve or send data during a conversation. For example, checking an order status or getting product data from your inventory system.
  • Open AI Functions, create a Function, and define its endpoint, method, and parameters.
  • Attach the Function to the Agent so the Agent knows when to use it.
MCP Servers Connect the Agent to external MCP Servers so it can access more advanced capabilities. MCP (Model Context Protocol) lets the Agent integrate with more complex tools and services.
  • Open MCP Servers and add the server endpoint you want to connect.
  • Attach that MCP Server to the Agent in its settings.
When you combine both System Message and Tools, your AI Agent can respond more accurately, more personally, and much closer to your real business operations.

Rich Responses

In addition to plain text answers, AI Agents on ChatbotX can automatically send visual interactive messages such as product cards (Card), horizontal carousels (Carousel), quick reply buttons (Quick Replies), and execute automated system actions (assigning Tags, updating Custom Fields, triggering Flows, or transferring to a live agent). To use this feature, simply toggle on the Rich Response switch in the Agent configuration modal and paste the JSON response rules into the System Message (Prompt) field.
Enable Rich Response
For detailed setup instructions and to copy a production-ready Prompt template, please refer to the Rich Responses guide.