> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dume.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Condition Node

> A detailed guide to configuring, using, and maximizing the Conditional Node to automate branching logic in your Dume AI flows.

<Frame>
  <img className="block dark:hidden" src="https://mintcdn.com/stackgrid/oY4hBaRY8pxXJFIw/images/light/workflow/sample-nodes/condition.png?fit=max&auto=format&n=oY4hBaRY8pxXJFIw&q=85&s=a9b5d890f9da63f07b831051224a2799" alt="Workflow Dume.ai Condition node" title="Dume.ai Workflow Condition node" width="200" data-path="images/light/workflow/sample-nodes/condition.png" />

  <img className="hidden dark:block" src="https://mintcdn.com/stackgrid/MMXhwtNTjHEo285E/images/dark/workflow/sample_nodes/condition.png?fit=max&auto=format&n=MMXhwtNTjHEo285E&q=85&s=0ddd869c6583c34469113717fe537b43" alt="Workflow Dume.ai Condition node" title="Dume.ai Workflow Condition node" width="200" data-path="images/dark/workflow/sample_nodes/condition.png" />
</Frame>

# Condition Node in Dume AI Workflows

The **Condition Node** is a powerful tool that enables dynamic, decision-based automation in Dume AI workflows. With it, you can introduce branching logic—just like an **if-else statement** in programming—allowing your workflow to respond flexibly to varying inputs, data, or AI outputs.

## What Is the Condition Node?

The Condition Node evaluates one or more user-defined conditions. Based on the outcome (True/False), it routes the workflow down different paths, ensuring that each case receives the precise treatment it requires. This capability is essential for building intelligent, context-aware automation.

<Frame>
  <img className="block dark:hidden" src="https://mintcdn.com/stackgrid/oY4hBaRY8pxXJFIw/images/light/workflow/nodes/condition_node.png?fit=max&auto=format&n=oY4hBaRY8pxXJFIw&q=85&s=50d4e1000868682bdf302c5d0122d68a" alt="Workflow Dume.ai Condition node" title="Dume.ai Workflow Condition node" width="200" data-path="images/light/workflow/nodes/condition_node.png" />

  <img className="hidden dark:block" src="https://mintcdn.com/stackgrid/F6GDMY5YwnHIovR6/images/dark/workflow/nodes/condition_node.png?fit=max&auto=format&n=F6GDMY5YwnHIovR6&q=85&s=2aa0a43452e5b8c4c09ac90014582e02" alt="Workflow Dume.ai Condition node" title="Dume.ai Workflow Condition node" width="200" data-path="images/dark/workflow/nodes/condition_node.png" />
</Frame>

## How the Condition Node Works

* **Input:** Receives data from previous nodes (inputs, AI results, HTTP responses, etc.)
* **Condition Section:** Define your logical rules (equality, comparison, containment, etc.).
* **Branches:** Two main branches:
  * **IF (True):** Executes when the conditions are met.
  * **ELSE (False):** Executes when conditions are not met.
* **Subsequent Nodes:** Each branch can lead to further nodes (actions, tools, or outputs).

## Setting Up a Condition Node: Step-by-Step

## 1. Add the Condition Node

* Add the **Condition Node** into your workflow from the from the previous node.

## 2. Configure Your Conditions

* Click the node to open its configuration panel.
* Add one or more condition clauses.
* Select the operators (*equals*, *greater than*, *contains*, etc.).
* Reference previous node outputs for dynamic workflow logic.
* Example: Check if `INPUT/priority` *equals* `"High"`.

<Frame>
  <img className="block dark:hidden" src="https://mintcdn.com/stackgrid/oY4hBaRY8pxXJFIw/images/light/workflow/nodes/condition_node/condition_options.png?fit=max&auto=format&n=oY4hBaRY8pxXJFIw&q=85&s=26466f314ea78b70c609b313080ebd9c" alt="Workflow Dume.ai Condition options" title="Dume.ai Workflow Condition options" width="200" data-path="images/light/workflow/nodes/condition_node/condition_options.png" />

  <img className="hidden dark:block" src="https://mintcdn.com/stackgrid/F6GDMY5YwnHIovR6/images/dark/workflow/nodes/condition_node/condition_options.png?fit=max&auto=format&n=F6GDMY5YwnHIovR6&q=85&s=e23e43a32b67ee5b0a35ea48129fede6" alt="Workflow Dume.ai Condition options" title="Dume.ai Workflow Condition options" width="200" data-path="images/dark/workflow/nodes/condition_node/condition_options.png" />
</Frame>

## 3. Combine Multiple Conditions

* Add multiple conditions using **AND**/**OR** logic for complex scenarios.
* Example: (priority == "High" AND department == "Marketing")

## 4. Define Outcomes

* **If path:** What happens if all conditions are true?
* **Else path:** What happens if any condition fails?

## 5. Add Next Steps

* Each branch can link to further action nodes, LLMs, Outputs, APIs, etc.

## Operators & Supported Logic

| **Type** | **Operators**                                                                                      | **Example**                 |
| :------- | :------------------------------------------------------------------------------------------------- | :-------------------------- |
| Text     | equals, does not equal, contains, does not contain, starts with, ends with, is empty, is not empty | `username contains "admin"` |
| Numeric  | equal to, not equal to, greater than, less than, greater than or equal to, less than or equal to   | `balance > 1000`            |
| Boolean  | is true, is false                                                                                  | `is_active is true`         |
| General  | exists, does not exist                                                                             | `orderId exists`            |

## Real-World Example

## Scenario: Task Escalation Workflow

1. **Input Node:** Receives an incoming support ticket with priority and category.
2. **Condition Node Setup:**
   * *Condition 1:* `priority` equals `"High"`
   * *Action - IF path:* Route ticket to Senior Support
   * *Action - ELSE path:* Route ticket to Standard Queue

**Workflow Visualization Example:**

* If `priority` is "High", the ticket is escalated.
* Otherwise, it goes to the default support queue.

## Advanced Usage Tips

* **Multiple Nested Conditions:** You can chain Condition nodes for multi-level decision trees.
* **Dynamic Data:** Use data from LLM output, API responses, or user input.
* **AND/OR Logic:** Build granular business logic matching real-world needs.
* **Documentation:** Use the Note Node alongside Condition nodes to clarify logic for your team.

By mastering the Condition Node, you unlock the ability to build sophisticated, responsive workflows that can adapt to any scenario. This makes your Dume AI automations both smarter and more reliable.
