Skip to content

AI agent: let a bot answer questions

The AI agent answers chats as one of your bots. It never writes its own text: your model only chooses which of your approved replies fits, and the customer sees the reply exactly as you wrote it. When no reply fits, it hands the chat to a person.

Automate -> AI agent

The AI agent needs the permission to change the AI model settings, which owners, vice owners and admins have (see Roles and permissions). It also needs your own model: until one is connected, the page shows Connect your own model, which opens AI model.

The AI agent page before a model is connected

  1. Connect your model in AI model.
  2. Create a bot in Team -> Chatbots. The AI agent answers as that bot.
  3. Add the bot to the groups whose chats it should answer. The bot gets chats through routing like any agent, by its priority in each group.
  1. In Answers as, pick the bot. If you have none yet, the page links to Team -> Chatbots.
  2. Under Hand over to, tick the groups that take a chat the AI agent hands over. With none ticked, the chat goes to its own groups.
  3. Set the Default language, used when the customer’s language has no text.
  4. Optionally write How to pick a reply: your own rules for choosing, for example which questions always go to a person. Leave it empty for the built-in rules.
  5. Write the Welcome message, sent once when a chat reaches the bot, and the Handover message, told to the customer as the chat goes to a person. Click Add text for the first language, and Add a language for more.
  6. Set the Limits (below).
  7. Add the replies (below).
  8. Switch on the AI agent with the switch next to Answer chats with your AI agent. It can be switched on only once a bot is picked.
  9. Click Save changes in the bar at the bottom.
  1. Click Add reply.
  2. Enter a Code, a stable handle such as order_status (lowercase letters, digits and _).
  3. Under When to use it, describe in plain words what the reply is for. This is all your model reads; it never sees the reply text.
  4. Under Reply text, write the text for each language. Add a wording adds up to 8 wordings per language, picked at random when sent. {{random:N}} inserts N random digits; nothing else is filled in.
  5. Optionally fill in:
    • Needs these facts first - facts the reply presumes, such as order_number. A missing one is asked for first, or a person takes over.
    • Asks the customer for - facts this reply asks for, such as email.
    • Most times per visit - leave empty for once, 0 for no limit.
  6. Tick what kind of reply it is, if any:
    • Hands the chat to a person - after it is sent, the chat goes to a person.
    • Comfort line - a calming line for an upset customer.
    • Asks them to wait - a holding reply.
  7. Click Save reply, then Save changes at the bottom of the page.

The Replies table lists every reply with its code, what it is for and its kind. Switch a reply off in the On column, or edit or delete it from its menu.

  • Customer turns before a person takes over (0: no limit) - how many customer messages the AI agent answers before it hands over.
  • Comfort lines per visit and Wait messages per visit - how many comfort lines and holding replies one visit can get, in total.

The Test panel on the right runs your unsaved settings against a sample conversation and sends nothing.

  1. Type a Customer message and click Send test message.
  2. Read what the AI agent would do: send a reply (with its code), send the welcome, ask for a missing fact, stay quiet, or hand over to a person. If the model fails, the error is shown.
  3. Keep writing to continue the conversation, or click Start over.
  • Knowledge hub - what your AI reads before it picks a reply.
  • AI model - connect the model and switch AI features on or off.
  • Workflows can hand a chat to the AI agent with Run your AI.