Node referenceFlow control
CHATFLOW_DECISION_BRANCH
CHATFLOW_DECISION_BRANCH node.
What it does
CHATFLOW_DECISION_BRANCH node.
Inputs & outputs
| Input handle |
|---|
| None |
| Output handle |
|---|
| None |
Configuration
No configuration.
Example
How it works
CHATFLOW_DECISION_BRANCH routes a Chatflow conversation based on what the user replied. It takes the user_response from a preceding WAIT_FOR_USER_RESPONSE node and compares it (case-insensitive, trimmed) against the node's configured optionValue or optionLabel. A match sends execution down the match branch; anything else takes the no_match branch. Place several of these after one question to build a menu.
Example
Scenario: A support bot asks the user to pick a department.
- CHATFLOW_SEND_MESSAGE asks "Reply 1 for Sales, 2 for Support". WAIT_FOR_USER_RESPONSE captures the reply.
- Add two CHATFLOW_DECISION_BRANCH nodes wired from
user_response. The first hasoptionValue=1(labelSales), the secondoptionValue=2(labelSupport). - Each node's
matchbranch leads to that department's path;no_matchfalls through to the other branch.
WAIT_FOR_USER_RESPONSE ──(user_response)──┬─► BRANCH "1" ──match──► Sales path
└─► BRANCH "2" ──match──► Support pathThis node runs only inside a Chatflow graph.