Conversation Flows
What a flow is#
Most of the time your agent answers freely, using what it knows. A flow is for the times when that is not good enough — when a conversation has to go a particular way, in a particular order.
Cancelling a policy, booking an appointment, taking a complaint: these have steps that must happen, questions that must be asked, and answers that must be checked. A flow is where you lay that out.
Where flows live#
Flows belong to an agent. Open the agent in the builder and go to Flows.
One agent can have several flows — one per task. Each is named, and the name is how you refer to it when one flow sends the conversation to another.
How a flow starts#
Every flow begins with Starts when: a description of the moment this flow should take over, written in plain words.
Starts when: the customer wants to cancel their policyThe agent reads this the way it reads a tool description — it is matching intent, not keywords. Describe the situation, not the phrasing you expect.
A flow with no start never runs
The editor marks a flow that has no starting condition, and one that has no first step. Both mean the same thing in practice: nothing will ever enter it.
The shape of a flow#
A flow is steps joined by branches. Each step does one thing, then hands on to whatever comes next.
Branches are read in order, and the first one that fits decides what happens next. They are named after outcomes rather than numbers — It worked and It didn't after a tool call, the option the customer chose after a question, and a last branch that catches anything else. You should be able to read a flow aloud and have it make sense.
A step with nothing leading to it, or a branch leading nowhere, is marked in the editor. Both are easy to create while rearranging and easy to miss.
How a flow ends#
A flow ends in one of three ways:
| Ending | What happens |
|---|---|
| End the flow | Control returns to the normal conversation. The agent carries on answering freely. |
| Hand off | The conversation goes to another agent or to a person on your team. |
| Go to another flow | The conversation continues in a different flow. |
Ending well matters. A flow that stops without an ending leaves the customer mid-process.
When not to use a flow#
A flow is a commitment: it takes the conversation away from the agent's own judgement and down the path you drew.
If a question simply needs a good answer, that is knowledge, not a flow. If it needs the agent to look something up, that is a tool. Reach for a flow when the order of things matters.