This page requires Python familiarity for the programmatic examples. Non-technical operators can trigger flows from Managed Topics actions without writing code — see Start a flow from a Managed Topics action below. All code-focused content is also available in the Developer tab.
conv.goto_flow("Flow name"). This may happen through a Managed Topics action or programmatically inside a function.
This page explains how conv.goto_flow can be used:
You can call conv.goto_flow(...) from any function in Agent Studio, including:
Example:
- The function runs during the current turn.
- When the turn completes, the agent enters the named flow.
- The flow begins at its configured start step.
Start a flow from a Managed Topics action
A Managed Topic can be configured to start a flow. When a topic matches a user request, you can attach an action that starts a specific flow.How to configure this
In Agent Studio:- Open Build > Knowledge > Managed Topics tab.
- Select the topic that should trigger the workflow.
- Add an action that starts a flow.
- Choose the target flow.
Using the /Flow shortcut

/Flow and use the (+) option to create or attach a flow.
Start or switch flows from inside another flow
Once a user is inside a flow, most movement should happen usingflow.goto_step(...).
That keeps the user inside the same workflow and simply branches to another step.
However, sometimes you need to switch to an entirely different workflow.
Examples:
- The user fails identity verification and must enter a verification flow.
- The user requests a human agent and must enter an escalation flow.
- A compliance rule requires a separate structured process.
- The user changes intent entirely (e.g., from booking to cancellation).
conv.goto_flow("Flow name") from a function inside the current flow.
Example: Escalating after repeated failed verification
Imagine a booking flow where the user must confirm their date of birth. If they fail verification too many times, you want to move them into a dedicated verification flow.Routing based on API results
Main article:conv.api
A function may call an API using conv.api.
After receiving a response, explicitly choose one of two actions:
- Stay in the current workflow using
flow.goto_step(...) - Switch workflows using
conv.goto_flow(...)
Related pages
Flows overview
Understand how flows work and the available trigger methods.
Transition functions
Control routing logic with Python inside flow steps.
Flow object
Python reference for goto_step() and current_step.

