Condition

Branch your workflow based on logic

The Condition block adds branches so different actions can run depending on data or context. You can combine multiple checks with AND / OR for richer logic.

How conditions work

Evaluate

Inspects data using the operators and rules you configured

True

When the condition passes, execution follows the upper True branch.

False

When the condition fails, execution follows the lower False branch.

Condition types

=

Simple comparisons

Compare values with basic operators

Operators:

equals (==)
not equals (!=)
greater than (>)
less than (<)
greater or equal (>=)
less or equal (<=)

Text operations

Check text content and format

Operators:

contains substring
starts with
ends with
matches regular expression
empty string
text length

Logical operations

Combine conditions with logical operators

Operators:

AND
OR
NOT
grouping with parentheses
multiple conditions
complex logic

Example use cases

Message moderation

Check content for banned words or spam

Workflow:

If the message contains profanity → restrict the user

AI output filtering

Branch based on model output

Workflow:

If the AI reply contains "+" → end the workflow

Smart replies

Different reactions depending on message type

Workflow:

If the message contains "hello" → reply with a greeting

Admin-only commands

Limit actions to privileged users

Workflow:

If the user is not an admin → ignore commands

Tips

  • Use variables produced by earlier blocks
  • Test conditions on sample data before going live
  • Enable case-sensitive matching when text checks must respect letter case