Skip to main content
The If/Else stage routes conversations based on variable values and conditions. Create branching logic to handle different scenarios.

Overview

If/Else nodes evaluate conditions against collected data and route to different paths:
If/Else nodes are colored yellow on the canvas.

Configuration

Conditions

Each condition evaluates a variable against a value:

Operators

Default Target

The fallback route when no conditions match. Always set a default to handle unexpected cases.

Evaluation Order

Conditions are evaluated in order from top to bottom. The first matching condition wins.
If issue_type is “billing”, the caller goes to Billing Team even if priority is also “high”.

Example Configurations

Common Patterns

Validate Required Data

Check if required information was collected:

Business Hours Routing

Route based on time-related variables:

Sentiment-Based Routing

Route frustrated customers differently:

Flow Examples

Simple Branch

Nested Conditions

Best Practices

Always Set Default

Every If/Else needs a default path. Unhandled cases break flows.

Order Matters

Put most specific conditions first. More general conditions go later.

Test All Paths

Verify each condition branch works as expected with test data.

Keep It Simple

Avoid deeply nested If/Else chains. Consider restructuring complex logic.

Data Extraction

Collect the variables to evaluate

Transitions

Alternative routing with conversation transitions

Conversation

Handle each branch with conversation nodes