Branch
Create multiple flows using if/else logic
What it does
When to use it
Settings
Setting
Description
Using variables in conditions
Variable source
Syntax
Example
Related
Set variableJumpAsk surveyLast updated
Create multiple flows using if/else logic
Action — Applies if/else logic to route the chat down different paths based on data already gathered. Maximum 10 conditions per Branch action.
Evaluates conditions and directs the chat flow to a different path depending on what is true. Each branch can hold its own subsequent actions.
To route a conversation based on data already collected — a survey answer, an extracted field, or an API result — to decide what happens next.
If
The condition, entered as a chat script Python expression. Only Python syntax is supported.
Add condition
Adds a further else-if branch. Each can hold its own subsequent actions.
Else
The path taken when no condition matches.
Press Save to confirm edits.
Chat variables can be used in branch conditions without curly brackets.
Ask survey (text)
variable.text
Ask survey (number)
variable.norm.value
Set variable
Use the variable name directly
Last updated
Branch
├─ If complaint_status.text == "resolved"
│ └─ Send message: "Good news – this has been resolved."
└─ Else
└─ Live agent handoff