How AI works in Chatterfy
How AI Works in Chatterfy Architecture overview: which AI layers exist, what each is responsible for, and how they work together inside a flow. The complete message path — from incoming text, a voice
Русская версия статьи обновилась после перевода — часть текста ниже может отставать от оригинала.
How AI Works in Chatterfy
Architecture overview: which AI layers exist, what each is responsible for, and how they work together inside a flow.
The complete message path — from incoming text, a voice message, or an image — to recognition, routing, and response generation.
Understanding the diagram helps you quickly find the cause of issues:
- why AI does not respond as expected.
- why the user goes to the wrong branch.
- why AI usage is increasing.
- which specific AI layer needs to be configured in a given situation.
- Without understanding the architecture, configuring AI often turns into trying random settings and prompts.
- If you are just starting to work with AI, we recommend starting with the article [How to Connect AI to a Bot]
If you are just starting out, first read “How to Connect AI to a Bot”, then return to the architecture.
Who this material is for
For integrators, marketers, product managers, and anyone who wants to fully understand the AI mechanics: where the settings are, which steps call AI, how Reply and Routings are connected, and how usage is calculated.
Six layers — overview table
AI in Chatterfy consists of several separate layers that operate at different levels: bot, flow, and individual steps.
Component | Where | Role |
|---|---|---|
Flow Settings | Bot personality, style, and limitations | |
Bot (Automation & AI) | Media recognition | |
Flow step | Generating a response to the user | |
Transitions from the AI Reply step | Selecting a flow branch by meaning | |
Bot Settings → Automation & AI | Selecting and managing models | |
Bot Settings → Bot Variables | {{variables.name}} variables in prompts |
Layers can be combined. For example: only AI Reply. AI Routings without text generation. Recognition for processing media.
Layer 1. AI Settings — bot persona
AI Settings define the general behavior of AI inside the bot: how it communicates, what restrictions it follows, and what style it uses to respond.
Main sections:
- Global Legend — who the bot is and what its role is.
- Restrictions — what AI must not write, promise, or advise.
- Response Style — language, tone of communication, length, and format of responses.
- These settings are used by AI steps inside the flow and form the bot’s overall “persona” across all scenarios.
- For example:
- the bot can communicate in an informal style.
- respond only in a specific language.
- avoid toxic or risky wording.
- Learn more:.
- Layer 2. AI Recognition — deep dive — media processing
Layer 2. AI Recognition — media
Configured at the bot level. Triggered when a lead sends:
- voice messages.
- images.
- videos.
- round videos.
- documents.
- Main operating modes:
- Recognition — AI recognizes media, converts it into text or a description, or extracts the required data for further AI processing.
Manual— the dialog immediately switches to manual processing mode.
- Skip — media is not processed automatically and is skipped.
- For example:
- a voice message can be converted into plain text.
- an ID, amount, or other data can be extracted from a screenshot.
- a document can simply be skipped without processing.
- After processing, the result is passed further into the flow — already as plain text or filled fields.
- Learn more:.
- Layer 3.
AI Reply— response generation
Layer 3. AI Reply — response generation
AI Reply — detailed breakdown of the step — a flow step that replies to the user using AI.
Main tasks:
- generate a reply taking into account:
AI Settings.
- dialog history.
- Goal.
- Reply Addition Info.
- local step instructions.
- determine whether the user needs to be moved further through the flow.
If the step does not use Routings, the transition depends on the Requirements block.
Layer 4. AI Routings — branch selection
AI Routings — Deep Dive — transition branches from the AI Reply step that allow AI to choose the next flow branch.
Each Routing contains a condition in natural language. For example:
- agreement.
- objection.
- question about the price.
- specifying a country.
- intent to register, etc.
If Routings are enabled, they are responsible for choosing the next branch:
- “expensive” → objection-handling branch.
- “I’ve already registered” → next step.
- “I’m from Poland” → localized branch.
Layer 5. AI Models — model selection
Configured separately:
- model for AI logic and routing.
- model for generating replies to the user.
- The model for logic is used for:
- determining the next step.
- analyzing the meaning of messages.
- evaluating conditions and Goal.
- The model for Reply is responsible specifically for the text the user will see.
- The settings also include a creativity / following instructions parameter:
- lower value → replies are more predictable and closer to the instructions.
- higher value → responses are more varied and “livelier”.
- Actual usage depends on the selected models and the number of AI calls. Learn more: [Billing — bot expenses].
- Layer 6. Bot Variables in AI Prompts
Layer 6. Bot Variables — variables
Bot Variables in AI Prompts allow you to store shared bot variables and use them in different parts of the system.
For example, you can use variables to store:
- links.
- contacts.
- brand names.
- prices.
- text templates.
- any frequently used values.
- After updating a variable, the new value is automatically inserted wherever this macro is used:
- in messages.
AI Settings.
AI Reply.
- in other flow steps.
- This helps you avoid manually editing the same text in dozens of places.
- Learn more:
Where to view AI activity
- Messenger (Bot → Messenger) — real conversations for checking AI.
- Demo space — a test environment with no production traffic.
- Billing — bot expenses.
- Resource usage — overall AI statistics for the company.
FAQ
What’s next
Related
Was this article helpful?







