Condition Node

Conditional Node: Building Logic to Control Agent Flow

The A Conditional Node is designed to create conditional logic that controls the flow of agents within a workflow.

This modular approach allows you to manage sophisticated decision-making processes with ease, ensuring precise and adaptable agent control within your workflow.

Condition Node Example

Configuring a Conditional Node

To set up a Conditional Node:

  • Select the Node Type:

    • Choose "Condition" as the node type.

  • Access Configuration:

    • Double-click the node to open its configuration settings.

  • Define Conditions:

    • Use variables from previous nodes to define an "if-else" condition.

    • Add multiple statements to the if/else_if conditions. Statements within each condition will execute using an AND logic.

Supported Logic

The node currently supports:

  • Basic Value Comparison Logic: Compare numerical or other measurable values.

  • String Match Logic: Check if strings match or contain specific patterns.

Adding Multiple Conditions

  • Else If Statements:

    • Click the "Add" button to introduce additional else if conditions.

  • Separate Flows for Each Condition:

    • Each if, else if, and else statement can have its own unique downstream flow nodes, enabling the creation of complex workflows.

Last updated