Depending on the case
Split the flow into multiple paths based on a value.
Just like the previous one, but with more than two outputs: one for each value you want to distinguish, plus a final "otherwise" output that the node itself includes automatically for when nothing matches—no need to build it yourself.
What you can do
- Branch by city, plan, customer type, or any field.
- Have as many outputs as values you need.
- Use the "otherwise" output for whatever does not fit into any of the others.
An example
Route by city
- The "city" field is checked.
- Madrid → assign to the Madrid team.
- Barcelona → assign to the Barcelona team.
- Otherwise → send the "we only serve these two" message and close.
Recommendations
- Always connect the "otherwise" output to something. It is where anything you did not foresee ends up, and there is always something you did not foresee.
Watch out for this
- Branching on the message text to guess intent goes wrong: "I want VIP" and "I don't want VIP" contain the same keywords. That is what the agent is for.
- If you change the order of the rules, double-check where each output goes.
