Skip to main content

How Agent Mode Works

TL;DR

In a flow-based bot the orchestrator is a router: once per user turn it picks one flow, and the flow you drew does everything else. In an Agent Mode bot the orchestrator is the bot: it works in a loop, calls tools, looks at each result and decides the next step itself. Nobody draws the path in advance.

This page provides the conceptual background for Agent Mode. It is written for anyone who already knows how flow-based bots behave and wants to understand what actually changed – not in the interface, but in how a conversation unfolds.

The difference at a glance​

Flow-based mode

the orchestrator is a router

User message

Orchestrator

picks one of your flows, once per turn

Order status

Reschedule

appointment

Opening hours

the chosen flow runs its nodes

Form: ask for new date

Action: rebook

Response: confirm

Bot reply

Agent Mode

the orchestrator is the bot

User

message

reply

Orchestrator agent

acts on every result

tool call

result

Tools

Script · HTTP

Knowledge search

Web search

Flow (optional)

asks for input → the turn ends

the message goes to the orchestrator again

Flow-based: one decision picks one of your flows, then a fixed path. Agent Mode: the orchestrator calls tools, reads their results and decides again.

Both bots receive the same message. What differs is who decides what happens next, and how often that decision is made.

  • Flow-based: the decision is made once, at the start of the turn. The orchestrator sees all of your flows - names and descriptions only - picks exactly one of them, and steps aside. The flow you designed then follows the path you drew.
  • Agent Mode: the decision is made after every single step. The orchestrator calls a tool, reads the result that comes back, acts on it, and decides again - as often as the turn needs. There is no list of flows to choose between, because everything the bot can do is a tool it may call.

How a single turn runs​

The clearest way to see the difference is to follow one request - "can I move appointment #4711 to Friday?" - through both kinds of bot.

In a flow-based bot​

In a flow-based bot the path is drawn in advance - the orchestrator only decides which one to walk:

User

Orchestrator

Flow

“Can I move appointment #4711 to Friday?”

picks one flow: Reschedule appointment

by name and description

Form node

extracts booking number

Form node

asks for date and time

“What time works for you on Friday?”

the turn ends here — the bot waits for the user

“09:00 on Friday”

picks the same flow again: Reschedule appointment

the flow resumes at the node where it paused

Form node

extracts date and time

Action node

rebook

Response node

confirm

“Done — you are booked for Friday at 09:00.”

the flow has no further nodes — the turn ends and the bot waits

The same request, handled by a flow-based bot. The orchestrator appears once per turn, at the very beginning.

Written out, the mechanics are these:

  1. The user writes a message.
  2. The orchestrator receives the list of flows - name and description only - and must choose exactly one.
  3. The chosen flow runs node by node until it needs user input or reaches its end. Every message the user sees in this turn comes from the flow - or from another flow that it pulls in through a flow transition node.
  4. On the next user message the orchestrator runs again.

Three consequences are worth remembering, because they are exactly what Agent Mode removes:

  • The orchestrator sees the conversation, not the machinery. On the next turn it reads the visible history - the messages the flow sent included - and it knows which flow it picked last. What it does not see is what happened inside: which nodes ran, what an action returned, or why the flow said what it said. It routes, it does not supervise.
  • One turn, one flow. A user who asks two things at once gets one of them handled, and only the flow author can plan for the other.
  • A paused flow only continues if the orchestrator picks it again. Nothing carries the flow over the turn boundary: on the next message the orchestrator decides from scratch, and you have to trust it to land on the same flow. If the answer sounds like a different topic, it may route elsewhere and the half-finished form stays where it was.

In Agent Mode​

Here the orchestrator does not hand over and disappear. It works, sees results, and keeps working until the turn is genuinely finished:

User

Orchestrator

Tools

“Can I move appointment #4711 to Friday?”

“One moment, I’ll check.”

calls tool look_up_booking

result: booking #4711, Tue 10:00

acts on the result and decides again

asks “What time works for you on Friday?”

the turn ends here — the bot waits for the user

“09:00 on Friday”

calls tool check_date_availability

result: Friday, 09:00 is available

acts on the result and decides again

calls tool move_booking

result: confirmed for Friday, 09:00

acts on the result and decides again

“Done — you are booked for Friday at 09:00.”

no tool call follows — the turn ends and the bot waits

The orchestrator works on its own until it needs the user. Asking a question ends the turn; the answer starts the next one.

Written out, that exchange reads like this:

  1. The user's message arrives at the orchestrator.
  2. The orchestrator writes text whenever it wants to say something.
  3. It calls a tool whenever it needs something: a lookup, an API call, a search in the knowledge base. The call goes out, the result comes back into the loop - visible only to the orchestrator, never to the user - and it acts on that result: answer, call the next tool, or ask the user for what is still missing.
  4. It repeats that as often as the turn needs. Three tools in one turn, or none at all, are both normal.
  5. When it needs something only the user can give it - a date, a confirmation - it asks, and the turn ends there. The user's answer opens the next turn, and the orchestrator continues with everything it already knows, including the tool results from before.
  6. The turn ends when the orchestrator is done - not when a graph runs out of nodes.

For the orchestrator, everything is a tool​

The interface groups tools by type, but the orchestrator sees only functions it may call, each described by a name and a description. What actually differs is what happens after the call:

The orchestrator may callWhat it doesAfter the call
Script or HTTP toolRuns a script, or calls an external systemResult comes back into the loop
Knowledge search toolSearches the bot's knowledge base on demandResult comes back into the loop
Web searchLooks something up on the internetResult comes back into the loop
Forward call, hand over to live chatForwards the conversation to a phone target or the live chatThe turn ends there
Hang upEnds the phone call after speaking a farewellThe call ends
Flows are not tools

A flow is never in this list. No flow is visible or callable by the orchestrator in Agent Mode. Flows exist only as event-triggered subflows - the error flow, phone conversation start, phone call ended, chat conversation end - entered by the event and nothing else. See Flows.

What moves where​

Nothing you know from flow building becomes worthless. The building blocks survive; only the wiring between them disappears.

You built this in a flow

In Agent Mode it becomes

Flow names and trigger descriptions

Orchestrator prompt

Form nodes collecting extraction fields

Extraction fields on a tool

Action nodes running a script

Script tools and HTTP tools

RAG nodes for knowledge questions

Knowledge search tool

Response nodes and their wording

The orchestrator's own words,

shaped by the persona

The same building blocks, re-labelled. What disappears is the wiring - that is now the orchestrator’s job.

  • Descriptions still matter. In a flow bot, the flow description told the orchestrator when to enter. In Agent Mode, a tool's name and description are the only reason it will ever be called. Write them for the AI, precisely: what it does, and when to use it.
  • Extraction fields stay exactly what they were: the bridge between free conversation and structured data. Only now they belong to a tool instead of a form node, and the orchestrator gathers them by asking naturally, in its own words.
  • Knowledge is asked for, not injected. An Agent Mode bot reaches its knowledge base through a Knowledge Search tool - an ordinary tool that the orchestrator calls when it judges the question needs it, and whose result it then works with like any other.
  • Wording is described, not placed. A response node defined what the bot would say – at exactly the point where the node sat. In Agent Mode the orchestrator writes every reply itself, in its own words and at the point it judges right. The persona sets the tone it writes in, the orchestrator prompt sets what it may and may not say. You no longer decide where a sentence appears – only what the bot is like and what it is allowed to tell people.

When a flow is still the right answer​

Agent Mode is the recommended default, but autonomy is not always what you want. Reach for a flow when the order itself is the requirement:

  • legally or contractually fixed sequences, where a step may not be skipped or reordered
  • wording that must be delivered verbatim, in a fixed position of the conversation
  • hard, data-driven branching that must never be re-interpreted

When that describes the bot as a whole, build it flow-based - that is what the mode is there for.

Mixing the two is not available. An Agent Mode bot cannot call a flow as a tool: its flows are entered by events only. If a whole process must run on a guaranteed fixed path, that bot belongs in flow-based mode.

  • Agent Mode - configuring an Agent Mode bot, tools, AI Assistant and rollback history
  • Flows - the flow editor and every node type
  • Extraction Fields - the structured values behind tools and forms
  • Development Chat - testing a bot while you build it