Automations

Conditions

Build automated workflows and business logic.

Conditions let you filter when automations should run. Define rules using field operators and combine them with AND/OR logic for precise targeting.

Condition Structure

{
  "conditions": {
    "match": "all",
    "rules": [
      {
        "field": "status",
        "operator": "equals",
        "value": "new"
      },
      {
        "field": "lead_source",
        "operator": "is_not_empty"
      },
      {
        "field": "email",
        "operator": "contains",
        "value": "@"
      }
    ]
  }
}

Available Operators

OperatorDescription
equalsExact match
not_equalsNot an exact match
containsContains the value (text)
not_containsDoes not contain the value
starts_withStarts with the value
ends_withEnds with the value
is_emptyField has no value
is_not_emptyField has a value
greater_thanGreater than (numbers/dates)
less_thanLess than (numbers/dates)
inValue is in a list
not_inValue is not in a list

AND vs OR Logic

Use "match": "all" for AND logic (every condition must be true), or "match": "any" for OR logic (at least one condition must be true).

Combining Logic

For complex scenarios, use nested condition groups. For example, match ALL of: status is "new" AND (source is "website" OR source is "referral").

AND Example

{
  "match": "all",
  "rules": [
    { "field": "status", "operator": "equals", "value": "new" },
    { "field": "estimated_value", "operator": "greater_than", "value": 5000 }
  ]
}

Both conditions must be true: the record must be new AND have a value over 5000.

OR Example

{
  "match": "any",
  "rules": [
    { "field": "source", "operator": "equals", "value": "website" },
    { "field": "source", "operator": "equals", "value": "referral" },
    { "field": "source", "operator": "equals", "value": "event" }
  ]
}

At least one condition must be true: the source is website, referral, or event.

Next Steps

    Conditions - Automations | Kantos Docs