Skip to main content
The Bool Condition node creates branching logic in your workflow based on conditions. The workflow follows the true or false edge depending on the evaluation result.

Parameters

ParameterTypeRequiredDescription
executionstringYesExecution type: STATIC (UI: “Static”), LLM_VISION (UI: “AI (Screenshot)”), or PROMPT (UI: “AI (Context)“)
comparison_operatorstringNoComparison operator for STATIC execution
comparison_value_1stringNoFirst value to compare (for STATIC execution)
comparison_value_2stringNoSecond value to compare (for STATIC execution, not needed for IS_NULL/IS_NOT_NULL)
promptstringNoNatural language condition for LLM_VISION or PROMPT execution
wait_timenumberNoMaximum time (ms) to wait before evaluation
clear_cookies_on_falsebooleanNoClear cookies if condition evaluates to false

Comparison Operators

For STATIC execution, use these operators:
OperatorDescription
EQUALValues are exactly equal
NOT_EQUALValues are not equal
IS_NULLValue is null or undefined
IS_NOT_NULLValue is not null

Examples

Basic Comparison

Check if a value equals a specific string:
{
  "id": "abc123",
  "name": "Check status",
  "action": "BOOL_CONDITION",
  "parameters": {
    "execution": "STATIC",
    "comparison_operator": "EQUAL",
    "comparison_value_1": "{{context.status}}",
    "comparison_value_2": "active"
  }
}

JSONata Expression

Use complex logic with JSONata:
{
  "id": "abc123",
  "name": "Drug in list?",
  "action": "BOOL_CONDITION",
  "parameters": {
    "execution": "STATIC",
    "comparison_value_1": "{{context.drug in [\"Skyrizi\", \"Tremfya\", \"Botox\"]}}",
    "comparison_value_2": "true",
    "comparison_operator": "EQUAL"
  }
}

LLM_VISION Condition

Use AI to evaluate a visual condition based on a screenshot:
{
  "id": "abc123",
  "name": "Check if modal is visible",
  "action": "BOOL_CONDITION",
  "parameters": {
    "execution": "LLM_VISION",
    "prompt": "Is there a confirmation modal visible on the screen?"
  }
}

PROMPT Condition

Use AI to make a decision based on context data (no screenshot):
{
  "id": "abc123",
  "name": "Check if order qualifies for discount",
  "action": "BOOL_CONDITION",
  "parameters": {
    "execution": "PROMPT",
    "prompt": "Based on the order total {{context.order_total}} and customer status {{context.customer_status}}, does this order qualify for a 10% discount? Orders over $100 from premium customers qualify."
  }
}

Clear Cookies on False

Reset session if condition fails. Relevant for login flows to remove stale browser state:
{
  "id": "abc123",
  "name": "Check session valid",
  "action": "BOOL_CONDITION",
  "parameters": {
    "execution": "STATIC",
    "comparison_operator": "NOT_CONTAINS",
    "comparison_value_1": "{{context.current_url}}",
    "comparison_value_2": "/login",
    "clear_cookies_on_false": true
  }
}

Notes

  • Use STATIC execution with comparison operators for simple, fast evaluations
  • Use LLM_VISION when you need to evaluate visual conditions based on a screenshot
  • Use PROMPT when you need AI reasoning on context data without requiring a screenshot