Skip to content
ChatterfyHelp Center
HomeGeneralCRMAI ManagerTrackerPlatformsAPIFAQUpdate log
Основы и возможности
AI Manager — overview
What AI Can Do in Chatterfy
How AI works in Chatterfy
Подключение AI
Внутреннее устройство
Промпты и переменные
  1. AI Manager
  2. Основы и возможности
  3. How AI works in Chatterfy

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

Updated June 21, 20265 min

Русская версия статьи обновилась после перевода — часть текста ниже может отставать от оригинала.




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:
  1. why AI does not respond as expected.
  1. why the user goes to the wrong branch.
  1. why AI usage is increasing.
  1. which specific AI layer needs to be configured in a given situation.
  1. Without understanding the architecture, configuring AI often turns into trying random settings and prompts.
  1. 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
AI Settings — detailed breakdown
Flow Settings
Bot personality, style, and limitations
AI Recognition — deep dive
Bot (Automation & AI)
Media recognition
AI Reply — detailed breakdown of the step
Flow step
Generating a response to the user
AI Routings — Deep Dive
Transitions from the AI Reply step
Selecting a flow branch by meaning
AI Models — model selection
Bot Settings → Automation & AI
Selecting and managing models
Bot Variables in AI Prompts
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:
  1. Global Legend — who the bot is and what its role is.
  1. Restrictions — what AI must not write, promise, or advise.
  1. Response Style — language, tone of communication, length, and format of responses.
  1. These settings are used by AI steps inside the flow and form the bot’s overall “persona” across all scenarios.
  1. For example:
  1. the bot can communicate in an informal style.
  1. respond only in a specific language.
  1. avoid toxic or risky wording.
  1. Learn more:.
  1. Layer 2. AI Recognition — deep dive — media processing



Layer 2. AI Recognition — media

Configured at the bot level. Triggered when a lead sends:
  1. voice messages.
  1. images.
  1. videos.
  1. round videos.
  1. documents.
  1. Main operating modes:
  1. Recognition — AI recognizes media, converts it into text or a description, or extracts the required data for further AI processing.
  1. Manual — the dialog immediately switches to manual processing mode.
  1. Skip — media is not processed automatically and is skipped.
  1. For example:
  1. a voice message can be converted into plain text.
  1. an ID, amount, or other data can be extracted from a screenshot.
  1. a document can simply be skipped without processing.
  1. After processing, the result is passed further into the flow — already as plain text or filled fields.
  1. Learn more:.
  1. 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:
  1. generate a reply taking into account:
  1. AI Settings.
  1. dialog history.
  1. Goal.
  1. Reply Addition Info.
  1. local step instructions.
  1. 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:
  1. agreement.
  1. objection.
  1. question about the price.
  1. specifying a country.
  1. intent to register, etc.
If Routings are enabled, they are responsible for choosing the next branch:
  1. “expensive” → objection-handling branch.
  1. “I’ve already registered” → next step.
  1. “I’m from Poland” → localized branch.



Layer 5. AI Models — model selection

In the AI Models — model selection section, models are configured for different AI tasks.
Configured separately:
  1. model for AI logic and routing.
  1. model for generating replies to the user.
  1. The model for logic is used for:
  1. AI Routings — Deep Dive.
  1. determining the next step.
  1. analyzing the meaning of messages.
  1. evaluating conditions and Goal.
  1. The model for Reply is responsible specifically for the text the user will see.
  1. The settings also include a creativity / following instructions parameter:
  1. lower value → replies are more predictable and closer to the instructions.
  1. higher value → responses are more varied and “livelier”.
  1. Actual usage depends on the selected models and the number of AI calls. Learn more: [Billing — bot expenses].
  1. 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:
  1. links.
  1. contacts.
  1. brand names.
  1. prices.
  1. text templates.
  1. any frequently used values.
  1. After updating a variable, the new value is automatically inserted wherever this macro is used:
  1. in messages.
  1. AI Settings.
  1. AI Reply.
  1. in other flow steps.
  1. This helps you avoid manually editing the same text in dozens of places.
  1. 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

Yes. The AI sees the conversation history within the dialog and uses it when generating a response.

Usage depends on the number of AI calls, prompt complexity, and the selected model.

First, check the dialog in Messenger, then AI Settings and the step settings.

The full checklist is in the article What to do if AI makes mistakes.



What’s next




Related

AI Settings — detailed breakdown
⁠ AI Settings is a Flow section where you configure AI behavior inside the bot. This is where you define who the bot is how it should respond what it is not allowed to do which language it uses which
AI Reply — detailed breakdown of the step
Unlike a regular Send Message, AI Reply does not send prewritten text. AI generates a reply when a message is received from the user. AI Reply is used for: communicating with the user handling objecti
AI Routings — Deep Dive
• AI Routings is the most misunderstood layer of AI in Chatterfy. It seems similar to a regular , но устроен иначе и решает другую задачу. Reference на сами Routings — , but it is built differently an
AI Recognition — deep dive
AI Recognition — processing media with AI AI Recognition is a module in Automation & AI: AI reads attachments (voice, photos, video note, screenshots) and turns them into text and data for the flow. W
AI Models — model selection
Which model is responsible for the dialog logic (Summary / Router), and which one is responsible for the response text (Reply). Strategies (“all strong,” “strong router + lightweight reply,” “all ligh
Bot Variables in AI Prompts
How to reuse links, identifiers, and constants in “AI Manager — overview” — , step , and via the {{variables.name}} macro. Shortening long URLs and common patterns. Section reference — . Here, we cove

Was this article helpful?

BackWhat AI Can Do in Chatterfy

On this page

  • How AI Works in Chatterfy
  • Who this material is for
  • Six layers — overview table
  • Layer 1. AI Settings — bot persona
  • Layer 2. AI Recognition — media
  • Layer 3. AI Reply — response generation
  • Layer 4. AI Routings — branch selection
  • Layer 5. AI Models — model selection
  • Layer 6. Bot Variables — variables
  • Where to view AI activity
  • FAQ
  • What’s next
  • Related