EzFlowEzFlow Docs
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.

  1. CHATFLOW_SEND_MESSAGE asks "Reply 1 for Sales, 2 for Support". WAIT_FOR_USER_RESPONSE captures the reply.
  2. Add two CHATFLOW_DECISION_BRANCH nodes wired from user_response. The first has optionValue = 1 (label Sales), the second optionValue = 2 (label Support).
  3. Each node's match branch leads to that department's path; no_match falls through to the other branch.
WAIT_FOR_USER_RESPONSE ──(user_response)──┬─► BRANCH "1" ──match──► Sales path
                                          └─► BRANCH "2" ──match──► Support path

This node runs only inside a Chatflow graph.

On this page