Guided flows: scripted subagents

Last reviewed: 2026-09-24

A Guided flow is a subagent that runs a fixed, predictable sequence of steps — say something, listen for the answer, branch — instead of asking the AI model to improvise. Use one wherever the conversation is a required checklist: collect a claim number, confirm an address, book an appointment slot, walk a returns process.

While a guided flow runs, the expensive speech-to-speech model is paused entirely (it receives no audio and bills nothing); a lightweight speech-to-text service listens instead, and the flow speaks in the agent's own voice. When the flow finishes — or the caller asks for the agent — the model resumes with a summary of what happened and everything the flow captured, and the conversation continues naturally.

Creating one

  1. Open the agent's stage, go to the Behavior tab, and find the subagent tab strip above the prompt (Main | … | +).
  2. Click + and choose Guided flow (choosing Smart subagent creates the ordinary prompt-driven kind).
  3. Name it and write the When to use hint — this is what the model reads when deciding to route the caller into the flow, exactly like a Smart subagent.

A guided tab shows a teal Guided badge, and instead of a prompt editor you get the step list.

Steps

Steps run top to bottom. Each step card can:

Flow settings

The collapsible Flow settings row above the steps holds:

Choosing the technology a flow uses

Guided flows derive three sidecar services beside the agent's main model: the voice they speak with (also used by Payments and Secure Data Capture), the speech-to-text that listens while the model is paused, and the small matcher model used for fuzzy option matching. Defaults are matched to the agent's own provider (a Nova agent gets Transcribe + a Polly voice matched to its own; an OpenAI agent gets OpenAI services), and you can override them at two levels:

The matcher section also exposes Choice matching prompt and Guided entity extraction prompt. Expand a prompt to read or change its instructions, and use Use default prompt to restore it. The runtime still supplies the available choices and caller utterance.

What guided flows don't do

Testing

Publish validation checks the script's structure (missing steps, branch targets that don't exist, a choice question with no options) before the flow can go live. Then test it like any subagent: open Preview, start a voice call, and say the routing phrase from your When to use hint. In the Activity Log the flow's turns are tagged as guided-script entries, and the orchestrator log shows the model pause and resume around the flow.