Step 3: Add transition conditions
What is transition condition?
Transition conditions are used to determine whether and which node the agent will transition to. If no transition condition is met, the agent will transition to the next node. This is the most essential part of the conversation flow, as this gives you the utmost control, and this requires most careful testing.
Where to define transition conditions?
For different node types:
- Conversation & Function & Press Digit Node: can define conditions to transition out of the node.
- Call Transfer Node: can select a destination node to transition to when transfer is unsuccessful.
For features:
- Skip response: can select a destination node to transition to when agent done speaking content of that node.
- Global node: When enabled, must define the condition to transition into this node.
When will transition happen?
It usually happens after user speaks, but also have other cases based on node type. Check out specific docs for that node to learn more.
When you are testing in the dashboard (both audio and text), you can see what node is highlighted to find the current node, so you can see how and when the transition happens.
What should I write inside the transition condition?
Although agent will have access to the current node’s instruction when evaluting the conditions, it’s recommended to write conditions to be clear and not reference on the instruction that much.
Here’re some examples:
When user indicates they want to book a meeting
User declines the invitation
User responds to question of their age
- example for function nodes where you can reference function results:
CRM lookup returned successful result
To ensure a smooth transition (making sure your agent does not get stuck on a node), it’s recommended to cover all possible cases inside transition condition. Some general cases can be covered by the global nodes (like objection handling), so you can focus on the specific cases that can happen inside the specific node.
Improve transition condition
If you’ve observed incorrect transition, you can
- prompt engineer the conditions
- add transition finetune examples (read more at Finetune Examples)
FAQ
Was this page helpful?