Decision

Basic Nodes • decision • Starter

Present multiple choice options

Overview

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.

How It Works

  1. Render Phase: Displays a message with multiple choice options to the user
  2. User Selection: The user selects one of the presented options
  3. Route Selection: The conversation flows through the output handle corresponding to the selected option's ID
  4. Data Storage: Both the option ID and label are stored in a variable for later reference

Dynamic Branching

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:

  • "Yes" option → Confirmation path
  • "No" option → Alternative path
  • "Maybe" option → Follow-up questions path

Output Variable

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}}

Configuration Fields

Message handlebars Required

The message displayed above the choice options.

Show details

Supports Handlebars syntax:

{{variable_name}}
Options options Required

Define the choice options presented to the user.

Show details

Each option creates a separate output handle on the node. The flow continues through the handle corresponding to the selected/matched option.

Requirements:

  • Each option must have a unique ID
  • Minimum 2 options required
  • IDs should be valid identifiers (lowercase, underscores)

Output Variables

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

Connection Points

Input
Accepts incoming connections from other nodes

More in Basic Nodes

Request a demo
This form is running on UniversalChatbot.