DAICISION
    FeaturesModulesAgentsMarketplacePricingDocs
    LoginGet Started Free
    sidebar.title
    • Creating and Managing Flows
    • Node Types Reference
    • Triggers
    • Logic Nodes
    • Tool Nodes
    • Testing and Debugging
    • Templates and Marketplace
    ⌘K
    breadcrumb.docsflowsLogic Nodes
    roleBadge.developer

    Logic Nodes

    8 min read2026-02-24

    Control flow execution with conditional branches, loops, parallel execution, merge, approval gates, guardrails, subflows, and error handlers.

    Logic Nodes

    Logic nodes control the execution path through your flow. They enable conditional branching, iteration, parallel execution, human-in-the-loop approvals, and error recovery. Logic nodes appear in amber on the canvas and use the logic: prefix.

    All Logic Nodes

    | Node Type | Purpose | | -------------------- | ---------------------------------------------------- | | logic:if | Two-way conditional branch (true/false) | | logic:switch | Multi-way branch by value matching | | logic:loop | Iterate over an array | | logic:subflow | Invoke another flow as a reusable subroutine | | logic:parallel | Execute multiple branches concurrently | | logic:merge | Wait for and combine parallel branch results | | logic:approval | Pause until a human approves or rejects | | logic:guardrail | Validate data against rules before proceeding | | logic:error-handler| Catch errors and define recovery logic |

    If Node (logic:if)

    The If node evaluates a set of conditions and routes execution to one of two branches: true or false. It is the most common way to add decision-making to a flow.

    Condition Structure

    Conditions are built using the visual Condition Builder or by writing JSON directly. Each condition consists of a field, operator, and value.

    Available Operators

    | Operator | Label | Example | | -------------- | ----------------- | ------------------------------------ | | === | equals | input.status === "active" | | !== | not equals | input.type !== "internal" | | > | greater than | input.amount > 1000 | | >= | greater or equal | input.score >= 80 | | < | less than | input.priority < 3 | | <= | less or equal | input.age <= 65 | | includes | contains | input.tags includes "vip" | | !includes | does not contain | input.email !includes "test" | | startsWith | starts with | input.name startsWith "A" | | endsWith | ends with | input.domain endsWith ".com" | | == null | is empty | input.phone == null | | != null | is not empty | input.assignedTo != null |

    Condition Groups

    Conditions can be combined with AND or OR logic:

    {
      "logic": "AND",
      "rules": [
        { "field": "input.status", "operator": "===", "value": "active" },
        { "field": "input.amount", "operator": ">", "value": "1000" }
      ]
    }
    

    This means: proceed on the true branch only if the status is "active" AND the amount is greater than 1000.

    Common Fields for Autocomplete

    The Condition Builder provides autocomplete for frequently used field paths:

    • input.id -- Record identifier from the previous node
    • input.status -- Status field
    • input.type -- Type or category field
    • input.amount -- Numeric amount
    • input.priority -- Priority level
    • input.ownerId -- Assigned owner
    • input.createdAt -- Creation timestamp
    • trigger.params.id -- ID passed in trigger data
    • previousResults -- Aggregated results from upstream nodes

    Example: Route by Deal Stage

    {
      "logic": "OR",
      "rules": [
        { "field": "input.stage", "operator": "===", "value": "negotiation" },
        { "field": "input.stage", "operator": "===", "value": "closed-won" }
      ]
    }
    

    True branch: Send notification to sales manager. False branch: Update CRM record with "no action needed" note.

    Switch Node (logic:switch)

    The Switch node evaluates a single expression against multiple cases. Unlike the If node (which has two branches), the Switch node can have an arbitrary number of output branches plus a default branch.

    Configuration

    • Expression -- The value to evaluate, e.g., {{nodes.connector-1.output.status}}
    • Cases -- An ordered list of value-to-branch mappings
    • Default -- The branch to take if no case matches
    {
      "expression": "{{nodes.trigger-1.output.category}}",
      "cases": [
        { "value": "billing", "label": "Billing Team" },
        { "value": "technical", "label": "Engineering Team" },
        { "value": "sales", "label": "Sales Team" }
      ],
      "defaultLabel": "General Queue"
    }
    

    Each case creates a separate output edge on the canvas. Use Switch instead of chaining multiple If nodes when you have three or more distinct outcomes based on the same field.

    Loop Node (logic:loop)

    The Loop node iterates over an array, executing all downstream nodes once per item. It is the equivalent of a forEach loop in code.

    Configuration

    | Field | Description | | ----------------- | --------------------------------------------------- | | Array expression | JSON path to the array, e.g., input.contacts | | Item variable | Name for the current item (default: item) | | Index variable | Name for the current index (default: index) | | Concurrency | Parallel iterations (default: 1, sequential) |

    Example: Process Each CSV Row

    trigger:manual
      -> parser:csv (parse uploaded file)
        -> logic:loop (iterate over rows)
          -> transform:mapper (map CSV columns to CRM fields)
            -> connector:salesforce (create contact)
    

    Inside the loop body, access the current item with {{loop.item.firstName}} and the index with {{loop.index}}.

    Batching and Rate Limiting

    For large arrays, set concurrency to a value greater than 1 to process items in parallel batches. Place a utility:delay node inside the loop body to implement rate limiting when calling external APIs.

    Subflow Node (logic:subflow)

    The Subflow node invokes another flow as a reusable routine. The called flow must have a trigger:callable trigger. This enables modular flow design -- build a data enrichment routine once and call it from multiple parent flows.

    Configuration

    • Flow ID -- Select the callable flow from a dropdown
    • Input mapping -- Map parent flow data to the subflow's expected input parameters
    • Timeout -- Maximum wait time for the subflow to complete (default: 30 seconds)

    The subflow receives input data, executes its own node graph, and returns its final output to the parent flow. Access the output with {{nodes.subflow-1.output}}.

    Parallel Node (logic:parallel)

    The Parallel node splits execution into multiple concurrent branches. Each branch executes independently.

    Configuration

    • Branches -- Define 2 or more named branches
    • Failure mode -- fail-fast (stop all branches on first error) or settle (wait for all branches regardless of errors)

    Example: Enrich from Multiple Sources

    logic:parallel
      |-- Branch A: connector:clearbit (company enrichment)
      |-- Branch B: connector:hunter (email verification)
      |-- Branch C: connector:linkedin (social profile)
    logic:merge -> transform:mapper (combine all results)
    

    Always pair logic:parallel with a downstream logic:merge to recombine the results.

    Merge Node (logic:merge)

    The Merge node waits for all incoming branches to complete and combines their results into a single output object. It is typically used after a logic:parallel node.

    Output Structure

    The merge output is an object keyed by the source node IDs:

    {
      "branch-a-node-id": { "company": "Acme Corp", "employees": 500 },
      "branch-b-node-id": { "emailValid": true, "deliverability": "high" },
      "branch-c-node-id": { "profileUrl": "https://linkedin.com/in/jane" }
    }
    

    When to Use

    • After a logic:parallel to combine results from concurrent branches
    • After an logic:if where both branches converge on the same follow-up step
    • To collect results from a fan-out pattern

    Approval Node (logic:approval)

    The Approval node pauses flow execution and waits for a human to approve or reject. This is essential for workflows that require oversight -- expense approvals, content publishing, or record deletion.

    Configuration

    • Approvers -- User IDs or roles that can approve
    • Timeout -- Maximum wait time before auto-rejection (optional)
    • Message -- Description shown to the approver
    • Approval URL -- Auto-generated link for email-based approvals

    When the flow reaches an Approval node, execution pauses with status AWAITING_APPROVAL. The designated approvers receive a notification. The flow resumes on the approved or rejected branch based on the decision.

    Guardrail Node (logic:guardrail)

    The Guardrail node validates data against a set of rules before allowing it to proceed. Think of it as a pre-condition check that prevents invalid or unsafe data from reaching downstream nodes.

    Use Cases

    • Validate that AI-generated content meets quality standards
    • Check that financial amounts are within acceptable ranges
    • Ensure PII has been properly redacted before sending to external systems

    Configuration

    Define validation rules similar to If node conditions. If any rule fails, execution is routed to the fail branch where you can log the violation, send an alert, or halt the flow.

    Error Handler Node (logic:error-handler)

    The Error Handler node catches errors from upstream nodes and defines recovery logic. Place it on a separate branch connected to nodes that might fail.

    Configuration

    • Catch from -- Specify which upstream nodes this handler covers (default: all upstream nodes)
    • Retry strategy -- Optionally retry the failed node before entering the error handler
    • Error output -- The caught error is available as {{nodes.error-handler-1.output.error}}

    Example: Graceful Degradation

    connector:salesforce (may fail)
      -> [error edge] -> logic:error-handler
        -> utility:log (record the error)
          -> connector:slack (notify the team)
    

    If the Salesforce connector fails, the error handler catches the exception, logs it, and sends a Slack notification instead of stopping the entire flow.

    Nesting Logic Nodes

    Logic nodes can be nested. A Loop can contain an If, which can contain a Switch. Keep nesting to a maximum of three levels for readability. If you need deeper nesting, consider extracting a section into a subflow using logic:subflow.

    Next Steps

    • Connect your logic branches to external systems with Tool Nodes
    • Test and debug your logic step by step
    • See all available nodes in the Node Types Reference
    pager.previous
    Managing Credentials
    pager.next
    Your First Flow

    toc.title

    All Logic NodesIf Node (logic:if)Condition StructureAvailable OperatorsCondition GroupsCommon Fields for AutocompleteExample: Route by Deal StageSwitch Node (logic:switch)ConfigurationLoop Node (logic:loop)ConfigurationExample: Process Each CSV RowBatching and Rate LimitingSubflow Node (logic:subflow)ConfigurationParallel Node (logic:parallel)ConfigurationExample: Enrich from Multiple SourcesMerge Node (logic:merge)Output StructureWhen to UseApproval Node (logic:approval)ConfigurationGuardrail Node (logic:guardrail)Use CasesConfigurationError Handler Node (logic:error-handler)ConfigurationExample: Graceful DegradationNesting Logic NodesNext Steps

    Product

    • Features
    • AI Agents
    • Marketplace
    • Pricing
    • Connectors
    • Security
    • Changelog

    Resources

    • Documentation
    • API Reference
    • Guides
    • Blog
    • Community

    Company

    • About
    • Careers
    • Contact
    • Partners

    Legal

    • Privacy Policy
    • Terms of Service
    • DPA
    • SLA
    • AI Transparency
    DAICISION© 2026 DAICISION. All rights reserved.

    Built by DAICISION s.r.o., Bratislava, Slovakia