The Decision node presents the user with multiple choice options and routes the conversation based on their selection. Each option creates a separate output connection that can lead to different conversation paths.
Each option you configure creates a unique output handle on the node. Connect each output to different nodes to create branching conversation paths. For example:
The selected option is stored as an object containing both the id and label, making it easy to reference either value in subsequent nodes:
You selected: {{decision.label}}
Option ID: {{decision.id}}
Message
handlebars
Required
The message displayed above the choice options.
Supports Handlebars syntax:
{{variable_name}}
Options
options
Required
Define the choice options presented to the user.
Each option creates a separate output handle on the node. The flow continues through the handle corresponding to the selected/matched option.
Requirements:
This node stores its output in a variable that can be referenced in subsequent nodes using the {{variable}} syntax.
{{variable}}.id
string
Selected option ID
{{variable}}.label
string
Selected option label