How to connect AI to a bot
How to connect AI to a bot Step-by-step guide: from choosing a model to the first working AI Reply step. Basic setup takes 30–60 minutes including testing in Demo space. This article takes you from “t
How to connect AI to a bot
Step-by-step guide: from choosing a model to the first working AI Reply step.
Basic setup takes 30–60 minutes including testing in Demo space.
This article takes you from “the bot is connected, AI is not configured” to the first working response. More advanced setup (media, variables, Routings) is covered in related articles.
What you will have at the end
- the bot will have models selected for AI logic and AI responses.
- Global Legend, Restrictions, and Response Style will be filled in under
AI Settings.
- a step will appear in the flow.
- the bot will start replying to the user via AI.
- the flow will be able to automatically move the user to the next step when the conditions are met.
What to prepare
Before setup, make sure that:
- the bot is already connected and active.
- A flow has been created.
- the company balance has funds for AI calls.
- If the bot is not connected yet:
AI calls use the company balance. A small amount is usually enough for the first tests.
Seven steps
Complete the setup in order. There are separate detailed articles for each block.
Choose AI models
Open AI Models (Bot Settings → Automation & AI → AI Models). Choose a model for Summary/Router and a model for Reply. Leave the Following instructions slider at about 0.5.Set Global Legend
Open AI Settings → Global Legend. Describe the bot’s personality: name, role, context, and product. Write in English. Specific details matter more than length.Set Restrictions
Open AI Settings → Restrictions. Write down restrictions and behavior rules. Start critical rules with IMPORTANT:Set the Response Style
Open AI Settings → Response Style. Specify the language (“ALWAYS answer only in Russian”), tone, and format. This is where you set the language for replies to users.Add AI Reply to the flow
Open the flow of the required bot and add an AI Reply step. Fill in the Goal (the step objective). Typical structure: start step → AI Reply → next step.Test in Demo space
Open the bot’s Demo space. Check whether the AI responds, which language it uses, and whether there are any hallucinations. Review the conversation in Messenger.Check the results
The minimum sign of a successful setup: AI replies in the required language, within the specified tone, without making things up, and answers relevant questions.
If it doesn’t work
Related
Was this article helpful?




