When to use Pathways
Use Pathways when a Single Prompt would get too complicated to manage as a single block of instructions — for example, a call that must collect information in a specific order, branch based on the caller’s answers, or hand off to a human at a specific point.Node types
Build a pathway
1
Open the Pathways editor
Create a new agent and choose Pathways as the script type, or open an existing Pathways agent.
2
Add your begin node
Every pathway starts with a single Begin node — it’s added automatically as the starting point.
3
Add conversation nodes
Add a Conversation node for each step of the call. Write the prompt for that step, and add any tools or state captures it needs.
4
Wire up transitions
Connect nodes with edges to define how the conversation moves from one step to the next.
5
Add action, end, and global nodes as needed
Add Action nodes for transfers, End call nodes to close out the conversation, and Global nodes for conditions that should be reachable from anywhere in the flow.
6
Save
Save the pathway. AgentCallback opens the new agent and starts its default initial test.