The Step Types
Overview#
There are six kinds of step. Each does one thing, and each offers different branches depending on what happened.
| Step | What it does |
|---|---|
| Ask a question | Wait for the answer, then branch on it. |
| Send a message | Say something, then stop, wait or carry on. |
| Hand off | To another agent, or to a person. |
| Call a tool | Look something up or send it, then branch on how it went. |
| Go to another flow | Carry on in a different flow. |
| End the flow | Back to the normal conversation. |
Ask a question#
The workhorse. Question is what the customer is asked; the branches are what you do with their answer.
Two settings shape the answer:
Check the answer — an answer that fails the check is asked for again:
| Setting | What it means |
|---|---|
| Any answer | Whatever they say is accepted. |
| One of a list | It must be one of the Options you list. |
| A format | It must match a pattern you give — a policy number like HMIE-123456, say. |
Customers answer by — Tapping a button (the options appear as buttons) or Typing.
When the answer fails the check, If it isn't one of these, say is what the customer hears before being asked again.
Write the retry message as a hint
"That doesn't look like a policy number — it starts with four letters, like HMIE-123456" gets you a correct answer. "Invalid input" gets you the same wrong answer again.
Branches#
Each step's branches are listed in the inspector and checked in order: the first one that fits decides the next step. A branch matches either because the answer is exactly a value you give, or because it meets a condition you write.
Whatever matches nothing goes to the last branch — the inspector says so: anything else goes to the last branch. Add branch adds another.
Send a message#
Says something to the customer. After the message decides what happens next:
- Carry on to the next step.
- Wait for the customer to say something.
- Stop there.
Use it to confirm what is about to happen, to explain a wait, or to close off a path politely.
Hand off#
Passes the conversation on. Hand the conversation to is either another of your agents or a person on your team.
Say while handing off is what the customer hears as it happens. Say who they are being passed to and why — silence at a handoff reads as the agent giving up.
Call a tool#
Calls one of your registered APIs at this point in the conversation, then branches on the result: It worked and It didn't.
Choose which tool with Tool to call. Everything about how the call is made — its address, its inputs, its credentials — belongs to the tool itself, not to this step.
Always fill in the It didn't branch. APIs fail, and a flow that only handles success leaves the customer waiting on a reply that never comes.
Go to another flow#
Hands the conversation to a different flow with Carry on in. Useful when several flows share an ending — one "book a callback" flow that three others lead into, rather than three copies of it.
End the flow#
Returns the conversation to normal. The agent goes back to answering freely, with everything said in the flow still in its context.