Skip to main content
Glama

Update Automation

update-automation
Destructive

Change an automation's name, description or settings, or replace its steps and connections (same step types as create-automation). Passing steps or connections replaces the whole graph; the previous steps can't be restored.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "id": "<id>"
    },
    "name": "update-automation"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesAutomation ID (aut_xxx).
nameNo
stepsNo
settingsNo
connectionsNo
descriptionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / steps / items / anyOf
      Previous value: -[
      -  {
      -    "description": "Trigger: starts a run when the event happens. Runs nothing by itself.",
      -    "properties": {
      -      "config": {
      -        "properties": {
      -          "audience_id": {
      -            "description": "Only for this audience (audience events).",
      -            "type": "string"
      -          },
      -          "automation_id": {
      -            "description": "Opens/clicks: only emails sent by this automation.",
      -            "type": "string"
      -          },
      -          "campaign_id": {
      -            "description": "Opens/clicks: only emails of this campaign.",
      -            "type": "string"
      -          },
      -          "date_field": {
      -            "description": "contact.on_date / date_anniversary: custom-field key holding the date.",
      -            "type": "string"
      -          },
      -          "direction": {
      -            "description": "Crossing direction for threshold (default up).",
      -            "enum": [
      -              "up",
      -              "down"
      -            ],
      -            "type": "string"
      -          },
      -          "event_name": {
      -            "description": "Custom event name (contact.on_event), e.g. \"c:purchase\" or \"purchase\".",
      -            "type": "string"
      -          },
      -          "field": {
      -            "description": "contact.updated: only when this field changed, e.g. \"custom_fields.purchased\".",
      -            "type": "string"
      -          },
      -          "filter": {
      -            "description": "Only when the event payload matches (e.g. properties.total greater_than 100).",
      -            "properties": {
      -              "match": {
      -                "description": "Whether all rules or any rule must match.",
      -                "enum": [
      -                  "all",
      -                  "any"
      -                ],
      -                "type": "string"
      -              },
      -              "rules": {
      -                "items": {
      -                  "properties": {
      -                    "field": {
      -                      "description": "Payload field, dot notation for nested values (e.g. \"contact.email\").",
      -                      "minLength": 1,
      -                      "type": "string"
      -                    },
      -                    "operator": {
      -                      "enum": [
      -                        "equals",
      -                        "not_equals",
      -                        "contains",
      -                        "not_contains",
      -                        "greater_than",
      -                        "less_than",
      -                        "is_set",
      -                        "is_not_set",
      -                        "starts_with",
      -                        "ends_with",
      -                        "in",
      -                        "not_in"
      -                      ],
      -                      "type": "string"
      -                    },
      -                    "value": {
      -                      "description": "Required except for is_set and is_not_set."
      -                    }
      -                  },
      -                  "required": [
      -                    "field",
      -                    "operator"
      -                  ],
      -                  "type": "object"
      -                },
      -                "minItems": 1,
      -                "type": "array"
      -              }
      -            },
      -            "required": [
      -              "match",
      -              "rules"
      -            ],
      -            "type": "object"
      -          },
      -          "form_id": {
      -            "description": "Only for this form (form.submitted).",
      -            "type": "string"
      -          },
      -          "link_contains": {
      -            "description": "Clicks: only links whose URL contains this text.",
      -            "type": "string"
      -          },
      -          "offset": {
      -            "description": "Date triggers: fire this long before/after the date.",
      -            "properties": {
      -              "amount": {
      -                "minimum": 0,
      -                "type": "number"
      -              },
      -              "direction": {
      -                "enum": [
      -                  "before",
      -                  "after"
      -                ],
      -                "type": "string"
      -              },
      -              "unit": {
      -                "enum": [
      -                  "days",
      -                  "weeks"
      -                ],
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "amount",
      -              "direction"
      -            ],
      -            "type": "object"
      -          },
      -          "repeat": {
      -            "description": "contact.on_date: yearly makes it an anniversary.",
      -            "enum": [
      -              "once",
      -              "yearly"
      -            ],
      -            "type": "string"
      -          },
      -          "tag": {
      -            "description": "Only this tag (contact.tag_added / contact.tag_removed).",
      -            "type": "string"
      -          },
      -          "threshold": {
      -            "description": "contact.score_changed: only when the score crosses this value.",
      -            "type": "number"
      -          },
      -          "time": {
      -            "description": "Date triggers: time of day HH:MM (default 00:00).",
      -            "type": "string"
      -          },
      -          "timezone": {
      -            "description": "Date triggers: IANA timezone (default UTC).",
      -            "type": "string"
      -          }
      -        },
      -        "type": "object"
      -      },
      -      "key": {
      -        "description": "Unique step key referenced by connections.",
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "trigger": {
      -        "anyOf": [
      -          {
      -            "enum": [
      -              "contact.added_to_audience",
      -              "contact.removed_from_audience",
      -              "contact.created",
      -              "contact.updated",
      -              "contact.tag_added",
      -              "contact.tag_removed",
      -              "contact.score_changed",
      -              "contact.unsubscribed",
      -              "contact.loaded_email",
      -              "contact.clicked_in_email",
      -              "contact.visits_url",
      -              "contact.date_anniversary",
      -              "contact.on_date",
      -              "contact.on_event",
      -              "form.submitted",
      -              "email.received",
      -              "email.delivered",
      -              "email.bounced",
      -              "email.complained",
      -              "email.loaded",
      -              "email.clicked",
      -              "email.failed",
      -              "email.suppressed",
      -              "email.canceled",
      -              "system.manual",
      -              "system.schedule"
      -            ],
      -            "type": "string"
      -          },
      -          {
      -            "pattern": "^event\\.",
      -            "type": "string"
      -          }
      -        ],
      -        "description": "Event that starts a run. Event automations use \"event.<name>\"."
      -      },
      -      "type": {
      -        "const": "trigger",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "key",
      -      "type",
      -      "trigger"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Send a template email to the contact (or \"to\"), like send-email. Templates render with Temple: {{first_name}}, {{cf.plan}}, {{global.webinar_date}}, {{tags}}, {{score}}, {{unsubscribe_url}}. Sends real email and uses credits.",
      -    "properties": {
      -      "action": {
      -        "const": "send_email",
      -        "type": "string"
      -      },
      -      "config": {
      -        "properties": {
      -          "email_type": {
      -            "description": "marketing (default in contact automations): skipped for unsubscribed contacts, adds {{unsubscribe_url}} and List-Unsubscribe headers. transactional: always sent.",
      -            "enum": [
      -              "marketing",
      -              "transactional"
      -            ],
      -            "type": "string"
      -          },
      -          "from": {
      -            "description": "Sender on a verified domain; defaults to the template sender.",
      -            "minLength": 1,
      -            "type": "string"
      -          },
      -          "reply_to": {
      -            "anyOf": [
      -              {
      -                "description": "Email address, or \"Name <address>\".",
      -                "minLength": 1,
      -                "type": "string"
      -              },
      -              {
      -                "items": {
      -                  "description": "Email address, or \"Name <address>\".",
      -                  "minLength": 1,
      -                  "type": "string"
      -                },
      -                "type": "array"
      -              }
      -            ],
      -            "description": "Reply-To address(es); placeholders like {{contact.custom_fields.owner_email}} work."
      -          },
      -          "subject": {
      -            "type": "string"
      -          },
      -          "template_id": {
      -            "description": "Template ID (tem_xxx) or published alias.",
      -            "minLength": 1,
      -            "type": "string"
      -          },
      -          "to": {
      -            "description": "Recipient in email and event automations; contact automations send to the contact.",
      -            "minLength": 1,
      -            "type": "string"
      -          },
      -          "tracking": {
      -            "description": "Override the domain's open/click tracking (needs a verified tracking CNAME).",
      -            "properties": {
      -              "clicks": {
      -                "type": "boolean"
      -              },
      -              "loads": {
      -                "type": "boolean"
      -              }
      -            },
      -            "type": "object"
      -          },
      -          "type": {
      -            "const": "template",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "type",
      -          "template_id"
      -        ],
      -        "type": "object"
      -      },
      -      "key": {
      -        "description": "Unique step key referenced by connections.",
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "type": {
      -        "const": "action",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "key",
      -      "type",
      -      "action",
      -      "config"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Forward the email that started the run, like forward-email. Sends real email and uses credits.",
      -    "properties": {
      -      "action": {
      -        "const": "forward_email",
      -        "type": "string"
      -      },
      -      "config": {
      -        "properties": {
      -          "from": {
      -            "description": "Email address, or \"Name <address>\".",
      -            "minLength": 1,
      -            "type": "string"
      -          },
      -          "subject": {
      -            "type": "string"
      -          },
      -          "to": {
      -            "description": "Recipient of the forwarded email.",
      -            "minLength": 1,
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "to"
      -        ],
      -        "type": "object"
      -      },
      -      "key": {
      -        "description": "Unique step key referenced by connections.",
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "type": {
      -        "const": "action",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "key",
      -      "type",
      -      "action",
      -      "config"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Subscribe the contact to an audience, like add-audience-subscriber. Starts \"added to audience\" automations.",
      -    "properties": {
      -      "action": {
      -        "const": "add_to_audience",
      -        "type": "string"
      -      },
      -      "config": {
      -        "properties": {
      -          "audience_id": {
      -            "minLength": 1,
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "audience_id"
      -        ],
      -        "type": "object"
      -      },
      -      "key": {
      -        "description": "Unique step key referenced by connections.",
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "type": {
      -        "const": "action",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "key",
      -      "type",
      -      "action",
      -      "config"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Remove the contact from an audience, like remove-audience-subscriber.",
      -    "properties": {
      -      "action": {
      -        "const": "remove_from_audience",
      -        "type": "string"
      -      },
      -      "config": {
      -        "properties": {
      -          "audience_id": {
      -            "minLength": 1,
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "audience_id"
      -        ],
      -        "type": "object"
      -      },
      -      "key": {
      -        "description": "Unique step key referenced by connections.",
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "type": {
      -        "const": "action",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "key",
      -      "type",
      -      "action",
      -      "config"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Subscribe or unsubscribe the contact, like bulk-unsubscribe-contacts / bulk-resubscribe-contacts.",
      -    "properties": {
      -      "action": {
      -        "const": "update_subscription",
      -        "type": "string"
      -      },
      -      "config": {
      -        "properties": {
      -          "action": {
      -            "enum": [
      -              "subscribe",
      -              "unsubscribe"
      -            ],
      -            "type": "string"
      -          },
      -          "audience_id": {
      -            "type": "string"
      -          },
      -          "scope": {
      -            "description": "audience (default, needs audience_id), all_audiences (unsubscribe only) or global (the contact's marketing status).",
      -            "enum": [
      -              "audience",
      -              "all_audiences",
      -              "global"
      -            ],
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "action"
      -        ],
      -        "type": "object"
      -      },
      -      "key": {
      -        "description": "Unique step key referenced by connections.",
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "type": {
      -        "const": "action",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "key",
      -      "type",
      -      "action",
      -      "config"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Set, clear or increment contact fields, like update-contact. Starts \"contact updated\" automations.",
      -    "properties": {
      -      "action": {
      -        "const": "edit_contact",
      -        "type": "string"
      -      },
      -      "config": {
      -        "properties": {
      -          "fields": {
      -            "items": {
      -              "properties": {
      -                "key": {
      -                  "description": "email, first_name, last_name, unsubscribed, or a custom-field key.",
      -                  "minLength": 1,
      -                  "type": "string"
      -                },
      -                "operation": {
      -                  "description": "Default set. clear removes the custom field; increment/decrement change a number field by value (default 1).",
      -                  "enum": [
      -                    "set",
      -                    "clear",
      -                    "increment",
      -                    "decrement"
      -                  ],
      -                  "type": "string"
      -                },
      -                "value": {}
      -              },
      -              "required": [
      -                "key"
      -              ],
      -              "type": "object"
      -            },
      -            "minItems": 1,
      -            "type": "array"
      -          }
      -        },
      -        "required": [
      -          "fields"
      -        ],
      -        "type": "object"
      -      },
      -      "key": {
      -        "description": "Unique step key referenced by connections.",
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "type": {
      -        "const": "action",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "key",
      -      "type",
      -      "action",
      -      "config"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Add tags to the contact, like add-contact-tags. Starts \"tag added\" automations.",
      -    "properties": {
      -      "action": {
      -        "const": "add_tag",
      -        "type": "string"
      -      },
      -      "config": {
      -        "properties": {
      -          "tags": {
      -            "items": {
      -              "maxLength": 64,
      -              "minLength": 1,
      -              "type": "string"
      -            },
      -            "minItems": 1,
      -            "type": "array"
      -          }
      -        },
      -        "required": [
      -          "tags"
      -        ],
      -        "type": "object"
      -      },
      -      "key": {
      -        "description": "Unique step key referenced by connections.",
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "type": {
      -        "const": "action",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "key",
      -      "type",
      -      "action",
      -      "config"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Remove tags from the contact, like remove-contact-tags.",
      -    "properties": {
      -      "action": {
      -        "const": "remove_tag",
      -        "type": "string"
      -      },
      -      "config": {
      -        "properties": {
      -          "tags": {
      -            "items": {
      -              "maxLength": 64,
      -              "minLength": 1,
      -              "type": "string"
      -            },
      -            "minItems": 1,
      -            "type": "array"
      -          }
      -        },
      -        "required": [
      -          "tags"
      -        ],
      -        "type": "object"
      -      },
      -      "key": {
      -        "description": "Unique step key referenced by connections.",
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "type": {
      -        "const": "action",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "key",
      -      "type",
      -      "action",
      -      "config"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Change the contact's lead score, like update-contact-score. Starts \"score changed\" automations.",
      -    "properties": {
      -      "action": {
      -        "const": "update_score",
      -        "type": "string"
      -      },
      -      "config": {
      -        "properties": {
      -          "operation": {
      -            "description": "Default add.",
      -            "enum": [
      -              "add",
      -              "subtract",
      -              "set"
      -            ],
      -            "type": "string"
      -          },
      -          "value": {
      -            "maximum": 9007199254740991,
      -            "minimum": -9007199254740991,
      -            "type": "integer"
      -          }
      -        },
      -        "required": [
      -          "value"
      -        ],
      -        "type": "object"
      -      },
      -      "key": {
      -        "description": "Unique step key referenced by connections.",
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "type": {
      -        "const": "action",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "key",
      -      "type",
      -      "action",
      -      "config"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Create the contact (or find it), like create-contact.",
      -    "properties": {
      -      "action": {
      -        "const": "create_contact",
      -        "type": "string"
      -      },
      -      "config": {
      -        "properties": {
      -          "audience_id": {
      -            "description": "Also subscribe the contact to this audience.",
      -            "type": "string"
      -          },
      -          "email": {
      -            "description": "Defaults to the email recipient in email automations.",
      -            "type": "string"
      -          },
      -          "first_name": {
      -            "type": "string"
      -          }
      -        },
      -        "type": "object"
      -      },
      -      "key": {
      -        "description": "Unique step key referenced by connections.",
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "type": {
      -        "const": "action",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "key",
      -      "type",
      -      "action",
      -      "config"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Suppress an address, like create-suppression.",
      -    "properties": {
      -      "action": {
      -        "const": "add_to_suppressions",
      -        "type": "string"
      -      },
      -      "config": {
      -        "properties": {
      -          "email": {
      -            "type": "string"
      -          },
      -          "reason": {
      -            "type": "string"
      -          },
      -          "type": {
      -            "description": "Suppression type (default \"recipient\").",
      -            "type": "string"
      -          }
      -        },
      -        "type": "object"
      -      },
      -      "key": {
      -        "description": "Unique step key referenced by connections.",
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "type": {
      -        "const": "action",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "key",
      -      "type",
      -      "action",
      -      "config"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Remove a suppression, like delete-suppression.",
      -    "properties": {
      -      "action": {
      -        "const": "remove_from_suppressions",
      -        "type": "string"
      -      },
      -      "config": {
      -        "properties": {
      -          "email": {
      -            "type": "string"
      -          }
      -        },
      -        "type": "object"
      -      },
      -      "key": {
      -        "description": "Unique step key referenced by connections.",
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "type": {
      -        "const": "action",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "key",
      -      "type",
      -      "action",
      -      "config"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Wait a fixed time before the next step.",
      -    "properties": {
      -      "action": {
      -        "const": "wait",
      -        "type": "string"
      -      },
      -      "config": {
      -        "properties": {
      -          "seconds": {
      -            "description": "Delay before the next step, up to 30 days.",
      -            "maximum": 2592000,
      -            "minimum": 0,
      -            "type": "number"
      -          }
      -        },
      -        "required": [
      -          "seconds"
      -        ],
      -        "type": "object"
      -      },
      -      "key": {
      -        "description": "Unique step key referenced by connections.",
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "type": {
      -        "const": "action",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "key",
      -      "type",
      -      "action",
      -      "config"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Wait until a date (branches: default, passed), an event (branches: matched, timeout) or a condition (branches: matched, timeout).",
      -    "properties": {
      -      "action": {
      -        "const": "wait_until",
      -        "type": "string"
      -      },
      -      "config": {
      -        "properties": {
      -          "condition": {
      -            "description": "mode condition: wait until the contact matches.",
      -            "properties": {
      -              "match": {
      -                "enum": [
      -                  "all",
      -                  "any"
      -                ],
      -                "type": "string"
      -              },
      -              "rules": {
      -                "items": {
      -                  "anyOf": [
      -                    {
      -                      "properties": {
      -                        "field": {
      -                          "description": "email, first_name, last_name, unsubscribed, created_at, score, tags, subscribed, audience, engagement, custom_fields.<key>, global.<key>, payload.<path>, meta.<path>.",
      -                          "minLength": 1,
      -                          "type": "string"
      -                        },
      -                        "operator": {
      -                          "description": "tags: contains/not_contains/in/not_in/is_set/is_not_set. audience (value = aud_ ID): is_subscribed/is_not_subscribed/is_member/is_not_member. engagement (value = \"run\", \"automation\", { scope: \"step\", step }, { scope: \"any\", days }, { scope: \"campaign\", campaign_id }): opened/not_opened/clicked/not_clicked. Dates: before/after/on/is_past/is_future/within_last/within_next/more_than_ago/more_than_from_now (value = days or { amount, unit }). Numbers: greater_than/less_than/greater_or_equal/less_or_equal. Booleans: is_true/is_false.",
      -                          "enum": [
      -                            "equals",
      -                            "not_equals",
      -                            "contains",
      -                            "not_contains",
      -                            "greater_than",
      -                            "less_than",
      -                            "is_set",
      -                            "is_not_set",
      -                            "starts_with",
      -                            "ends_with",
      -                            "in",
      -                            "not_in",
      -                            "greater_or_equal",
      -                            "less_or_equal",
      -                            "is_true",
      -                            "is_false",
      -                            "before",
      -                            "after",
      -                            "on",
      -                            "is_past",
      -                            "is_future",
      -                            "within_last",
      -                            "within_next",
      -                            "more_than_ago",
      -                            "more_than_from_now",
      -                            "is_subscribed",
      -                            "is_not_subscribed",
      -                            "is_member",
      -                            "is_not_member",
      -                            "opened",
      -                            "not_opened",
      -                            "clicked",
      -                            "not_clicked"
      -                          ],
      -                          "type": "string"
      -                        },
      -                        "value": {}
      -                      },
      -                      "required": [
      -                        "field",
      -                        "operator"
      -                      ],
      -                      "type": "object"
      -                    },
      -                    {
      -                      "properties": {
      -                        "match": {
      -                          "enum": [
      -                            "all",
      -                            "any"
      -                          ],
      -                          "type": "string"
      -                        },
      -                        "rules": {
      -                          "items": {
      -                            "anyOf": [
      -                              {
      -                                "properties": {
      -                                  "field": {
      -                                    "description": "email, first_name, last_name, unsubscribed, created_at, score, tags, subscribed, audience, engagement, custom_fields.<key>, global.<key>, payload.<path>, meta.<path>.",
      -                                    "minLength": 1,
      -                                    "type": "string"
      -                                  },
      -                                  "operator": {
      -                                    "description": "tags: contains/not_contains/in/not_in/is_set/is_not_set. audience (value = aud_ ID): is_subscribed/is_not_subscribed/is_member/is_not_member. engagement (value = \"run\", \"automation\", { scope: \"step\", step }, { scope: \"any\", days }, { scope: \"campaign\", campaign_id }): opened/not_opened/clicked/not_clicked. Dates: before/after/on/is_past/is_future/within_last/within_next/more_than_ago/more_than_from_now (value = days or { amount, unit }). Numbers: greater_than/less_than/greater_or_equal/less_or_equal. Booleans: is_true/is_false.",
      -                                    "enum": [
      -                                      "equals",
      -                                      "not_equals",
      -                                      "contains",
      -                                      "not_contains",
      -                                      "greater_than",
      -                                      "less_than",
      -                                      "is_set",
      -                                      "is_not_set",
      -                                      "starts_with",
      -                                      "ends_with",
      -                                      "in",
      -                                      "not_in",
      -                                      "greater_or_equal",
      -                                      "less_or_equal",
      -                                      "is_true",
      -                                      "is_false",
      -                                      "before",
      -                                      "after",
      -                                      "on",
      -                                      "is_past",
      -                                      "is_future",
      -                                      "within_last",
      -                                      "within_next",
      -                                      "more_than_ago",
      -                                      "more_than_from_now",
      -                                      "is_subscribed",
      -                                      "is_not_subscribed",
      -                                      "is_member",
      -                                      "is_not_member",
      -                                      "opened",
      -                                      "not_opened",
      -                                      "clicked",
      -                                      "not_clicked"
      -                                    ],
      -                                    "type": "string"
      -                                  },
      -                                  "value": {}
      -                                },
      -                                "required": [
      -                                  "field",
      -                                  "operator"
      -                                ],
      -                                "type": "object"
      -                              },
      -                              {
      -                                "properties": {
      -                                  "match": {
      -                                    "enum": [
      -                                      "all",
      -                                      "any"
      -                                    ],
      -                                    "type": "string"
      -                                  },
      -                                  "rules": {
      -                                    "items": {
      -                                      "properties": {
      -                                        "field": {
      -                                          "description": "email, first_name, last_name, unsubscribed, created_at, score, tags, subscribed, audience, engagement, custom_fields.<key>, global.<key>, payload.<path>, meta.<path>.",
      -                                          "minLength": 1,
      -                                          "type": "string"
      -                                        },
      -                                        "operator": {
      -                                          "description": "tags: contains/not_contains/in/not_in/is_set/is_not_set. audience (value = aud_ ID): is_subscribed/is_not_subscribed/is_member/is_not_member. engagement (value = \"run\", \"automation\", { scope: \"step\", step }, { scope: \"any\", days }, { scope: \"campaign\", campaign_id }): opened/not_opened/clicked/not_clicked. Dates: before/after/on/is_past/is_future/within_last/within_next/more_than_ago/more_than_from_now (value = days or { amount, unit }). Numbers: greater_than/less_than/greater_or_equal/less_or_equal. Booleans: is_true/is_false.",
      -                                          "enum": [
      -                                            "equals",
      -                                            "not_equals",
      -                                            "contains",
      -                                            "not_contains",
      -                                            "greater_than",
      -                                            "less_than",
      -                                            "is_set",
      -                                            "is_not_set",
      -                                            "starts_with",
      -                                            "ends_with",
      -                                            "in",
      -                                            "not_in",
      -                                            "greater_or_equal",
      -                                            "less_or_equal",
      -                                            "is_true",
      -                                            "is_false",
      -                                            "before",
      -                                            "after",
      -                                            "on",
      -                                            "is_past",
      -                                            "is_future",
      -                                            "within_last",
      -                                            "within_next",
      -                                            "more_than_ago",
      -                                            "more_than_from_now",
      -                                            "is_subscribed",
      -                                            "is_not_subscribed",
      -                                            "is_member",
      -                                            "is_not_member",
      -                                            "opened",
      -                                            "not_opened",
      -                                            "clicked",
      -                                            "not_clicked"
      -                                          ],
      -                                          "type": "string"
      -                                        },
      -                                        "value": {}
      -                                      },
      -                                      "required": [
      -                                        "field",
      -                                        "operator"
      -                                      ],
      -                                      "type": "object"
      -                                    },
      -                                    "minItems": 1,
      -                                    "type": "array"
      -                                  }
      -                                },
      -                                "required": [
      -                                  "match",
      -                                  "rules"
      -                                ],
      -                                "type": "object"
      -                              }
      -                            ]
      -                          },
      -                          "minItems": 1,
      -                          "type": "array"
      -                        }
      -                      },
      -                      "required": [
      -                        "match",
      -                        "rules"
      -                      ],
      -                      "type": "object"
      -                    }
      -                  ]
      -                },
      -                "minItems": 1,
      -                "type": "array"
      -              }
      -            },
      -            "required": [
      -              "match",
      -              "rules"
      -            ],
      -            "type": "object"
      -          },
      -          "date": {
      -            "description": "mode date: where the date comes from.",
      -            "properties": {
      -              "field": {
      -                "description": "contact: e.g. \"custom_fields.event_date\" or \"created_at\".",
      -                "type": "string"
      -              },
      -              "key": {
      -                "description": "global: the global value key, e.g. \"webinar_date\".",
      -                "type": "string"
      -              },
      -              "path": {
      -                "description": "payload: path in the trigger payload.",
      -                "type": "string"
      -              },
      -              "type": {
      -                "enum": [
      -                  "fixed",
      -                  "contact",
      -                  "global",
      -                  "payload"
      -                ],
      -                "type": "string"
      -              },
      -              "value": {
      -                "description": "fixed: YYYY-MM-DD or ISO 8601 date and time.",
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "type"
      -            ],
      -            "type": "object"
      -          },
      -          "event": {
      -            "description": "mode event: the event to wait for.",
      -            "properties": {
      -              "audience_id": {
      -                "description": "Only for this audience (audience events).",
      -                "type": "string"
      -              },
      -              "automation_id": {
      -                "description": "Opens/clicks: only emails sent by this automation.",
      -                "type": "string"
      -              },
      -              "campaign_id": {
      -                "description": "Opens/clicks: only emails of this campaign.",
      -                "type": "string"
      -              },
      -              "direction": {
      -                "description": "Crossing direction for threshold (default up).",
      -                "enum": [
      -                  "up",
      -                  "down"
      -                ],
      -                "type": "string"
      -              },
      -              "event": {
      -                "description": "Event to listen for.",
      -                "enum": [
      -                  "contact.added_to_audience",
      -                  "contact.removed_from_audience",
      -                  "contact.created",
      -                  "contact.updated",
      -                  "contact.tag_added",
      -                  "contact.tag_removed",
      -                  "contact.score_changed",
      -                  "contact.unsubscribed",
      -                  "contact.loaded_email",
      -                  "contact.clicked_in_email",
      -                  "contact.on_event",
      -                  "form.submitted"
      -                ],
      -                "type": "string"
      -              },
      -              "event_name": {
      -                "description": "Custom event name (contact.on_event), e.g. \"c:purchase\" or \"purchase\".",
      -                "type": "string"
      -              },
      -              "field": {
      -                "description": "contact.updated: only when this field changed, e.g. \"custom_fields.purchased\".",
      -                "type": "string"
      -              },
      -              "filter": {
      -                "description": "Only when the event payload matches (e.g. properties.total greater_than 100).",
      -                "properties": {
      -                  "match": {
      -                    "description": "Whether all rules or any rule must match.",
      -                    "enum": [
      -                      "all",
      -                      "any"
      -                    ],
      -                    "type": "string"
      -                  },
      -                  "rules": {
      -                    "items": {
      -                      "properties": {
      -                        "field": {
      -                          "description": "Payload field, dot notation for nested values (e.g. \"contact.email\").",
      -                          "minLength": 1,
      -                          "type": "string"
      -                        },
      -                        "operator": {
      -                          "enum": [
      -                            "equals",
      -                            "not_equals",
      -                            "contains",
      -                            "not_contains",
      -                            "greater_than",
      -                            "less_than",
      -                            "is_set",
      -                            "is_not_set",
      -                            "starts_with",
      -                            "ends_with",
      -                            "in",
      -                            "not_in"
      -                          ],
      -                          "type": "string"
      -                        },
      -                        "value": {
      -                          "description": "Required except for is_set and is_not_set."
      -                        }
      -                      },
      -                      "required": [
      -                        "field",
      -                        "operator"
      -                      ],
      -                      "type": "object"
      -                    },
      -                    "minItems": 1,
      -                    "type": "array"
      -                  }
      -                },
      -                "required": [
      -                  "match",
      -                  "rules"
      -                ],
      -                "type": "object"
      -              },
      -              "form_id": {
      -                "description": "Only for this form (form.submitted).",
      -                "type": "string"
      -              },
      -              "link_contains": {
      -                "description": "Clicks: only links whose URL contains this text.",
      -                "type": "string"
      -              },
      -              "tag": {
      -                "description": "Only this tag (contact.tag_added / contact.tag_removed).",
      -                "type": "string"
      -              },
      -              "threshold": {
      -                "description": "contact.score_changed: only when the score crosses this value.",
      -                "type": "number"
      -              }
      -            },
      -            "required": [
      -              "event"
      -            ],
      -            "type": "object"
      -          },
      -          "if_passed": {
      -            "description": "mode date: when the date already passed or is empty, continue (default) or take the \"passed\" branch.",
      -            "enum": [
      -              "continue",
      -              "branch"
      -            ],
      -            "type": "string"
      -          },
      -          "mode": {
      -            "enum": [
      -              "date",
      -              "event",
      -              "condition"
      -            ],
      -            "type": "string"
      -          },
      -          "offset": {
      -            "description": "mode date: e.g. 3 days before.",
      -            "properties": {
      -              "amount": {
      -                "minimum": 0,
      -                "type": "number"
      -              },
      -              "direction": {
      -                "enum": [
      -                  "before",
      -                  "after"
      -                ],
      -                "type": "string"
      -              },
      -              "unit": {
      -                "enum": [
      -                  "minutes",
      -                  "hours",
      -                  "days",
      -                  "weeks",
      -                  "months"
      -                ],
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "amount",
      -              "direction"
      -            ],
      -            "type": "object"
      -          },
      -          "time": {
      -            "description": "mode date: time of day HH:MM.",
      -            "type": "string"
      -          },
      -          "timeout": {
      -            "description": "mode event/condition: give up after this long and take the \"timeout\" branch (default and max 365 days).",
      -            "properties": {
      -              "amount": {
      -                "exclusiveMinimum": 0,
      -                "type": "number"
      -              },
      -              "unit": {
      -                "enum": [
      -                  "minutes",
      -                  "hours",
      -                  "days",
      -                  "weeks",
      -                  "months"
      -                ],
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "amount",
      -              "unit"
      -            ],
      -            "type": "object"
      -          },
      -          "timezone": {
      -            "description": "mode date: IANA timezone (default UTC).",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "mode"
      -        ],
      -        "type": "object"
      -      },
      -      "key": {
      -        "description": "Unique step key referenced by connections.",
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "type": {
      -        "const": "action",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "key",
      -      "type",
      -      "action",
      -      "config"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Branch to \"yes\" or \"no\": contact fields, custom fields, tags, audience membership, score, engagement, dates and global values.",
      -    "properties": {
      -      "action": {
      -        "const": "condition",
      -        "type": "string"
      -      },
      -      "config": {
      -        "properties": {
      -          "filter": {
      -            "description": "Rules on the contact, combined with all/any. A rule can itself be a group { match, rules } (up to 3 levels).",
      -            "properties": {
      -              "match": {
      -                "enum": [
      -                  "all",
      -                  "any"
      -                ],
      -                "type": "string"
      -              },
      -              "rules": {
      -                "items": {
      -                  "anyOf": [
      -                    {
      -                      "properties": {
      -                        "field": {
      -                          "description": "email, first_name, last_name, unsubscribed, created_at, score, tags, subscribed, audience, engagement, custom_fields.<key>, global.<key>, payload.<path>, meta.<path>.",
      -                          "minLength": 1,
      -                          "type": "string"
      -                        },
      -                        "operator": {
      -                          "description": "tags: contains/not_contains/in/not_in/is_set/is_not_set. audience (value = aud_ ID): is_subscribed/is_not_subscribed/is_member/is_not_member. engagement (value = \"run\", \"automation\", { scope: \"step\", step }, { scope: \"any\", days }, { scope: \"campaign\", campaign_id }): opened/not_opened/clicked/not_clicked. Dates: before/after/on/is_past/is_future/within_last/within_next/more_than_ago/more_than_from_now (value = days or { amount, unit }). Numbers: greater_than/less_than/greater_or_equal/less_or_equal. Booleans: is_true/is_false.",
      -                          "enum": [
      -                            "equals",
      -                            "not_equals",
      -                            "contains",
      -                            "not_contains",
      -                            "greater_than",
      -                            "less_than",
      -                            "is_set",
      -                            "is_not_set",
      -                            "starts_with",
      -                            "ends_with",
      -                            "in",
      -                            "not_in",
      -                            "greater_or_equal",
      -                            "less_or_equal",
      -                            "is_true",
      -                            "is_false",
      -                            "before",
      -                            "after",
      -                            "on",
      -                            "is_past",
      -                            "is_future",
      -                            "within_last",
      -                            "within_next",
      -                            "more_than_ago",
      -                            "more_than_from_now",
      -                            "is_subscribed",
      -                            "is_not_subscribed",
      -                            "is_member",
      -                            "is_not_member",
      -                            "opened",
      -                            "not_opened",
      -                            "clicked",
      -                            "not_clicked"
      -                          ],
      -                          "type": "string"
      -                        },
      -                        "value": {}
      -                      },
      -                      "required": [
      -                        "field",
      -                        "operator"
      -                      ],
      -                      "type": "object"
      -                    },
      -                    {
      -                      "properties": {
      -                        "match": {
      -                          "enum": [
      -                            "all",
      -                            "any"
      -                          ],
      -                          "type": "string"
      -                        },
      -                        "rules": {
      -                          "items": {
      -                            "anyOf": [
      -                              {
      -                                "properties": {
      -                                  "field": {
      -                                    "description": "email, first_name, last_name, unsubscribed, created_at, score, tags, subscribed, audience, engagement, custom_fields.<key>, global.<key>, payload.<path>, meta.<path>.",
      -                                    "minLength": 1,
      -                                    "type": "string"
      -                                  },
      -                                  "operator": {
      -                                    "description": "tags: contains/not_contains/in/not_in/is_set/is_not_set. audience (value = aud_ ID): is_subscribed/is_not_subscribed/is_member/is_not_member. engagement (value = \"run\", \"automation\", { scope: \"step\", step }, { scope: \"any\", days }, { scope: \"campaign\", campaign_id }): opened/not_opened/clicked/not_clicked. Dates: before/after/on/is_past/is_future/within_last/within_next/more_than_ago/more_than_from_now (value = days or { amount, unit }). Numbers: greater_than/less_than/greater_or_equal/less_or_equal. Booleans: is_true/is_false.",
      -                                    "enum": [
      -                                      "equals",
      -                                      "not_equals",
      -                                      "contains",
      -                                      "not_contains",
      -                                      "greater_than",
      -                                      "less_than",
      -                                      "is_set",
      -                                      "is_not_set",
      -                                      "starts_with",
      -                                      "ends_with",
      -                                      "in",
      -                                      "not_in",
      -                                      "greater_or_equal",
      -                                      "less_or_equal",
      -                                      "is_true",
      -                                      "is_false",
      -                                      "before",
      -                                      "after",
      -                                      "on",
      -                                      "is_past",
      -                                      "is_future",
      -                                      "within_last",
      -                                      "within_next",
      -                                      "more_than_ago",
      -                                      "more_than_from_now",
      -                                      "is_subscribed",
      -                                      "is_not_subscribed",
      -                                      "is_member",
      -                                      "is_not_member",
      -                                      "opened",
      -                                      "not_opened",
      -                                      "clicked",
      -                                      "not_clicked"
      -                                    ],
      -                                    "type": "string"
      -                                  },
      -                                  "value": {}
      -                                },
      -                                "required": [
      -                                  "field",
      -                                  "operator"
      -                                ],
      -                                "type": "object"
      -                              },
      -                              {
      -                                "properties": {
      -                                  "match": {
      -                                    "enum": [
      -                                      "all",
      -                                      "any"
      -                                    ],
      -                                    "type": "string"
      -                                  },
      -                                  "rules": {
      -                                    "items": {
      -                                      "properties": {
      -                                        "field": {
      -                                          "description": "email, first_name, last_name, unsubscribed, created_at, score, tags, subscribed, audience, engagement, custom_fields.<key>, global.<key>, payload.<path>, meta.<path>.",
      -                                          "minLength": 1,
      -                                          "type": "string"
      -                                        },
      -                                        "operator": {
      -                                          "description": "tags: contains/not_contains/in/not_in/is_set/is_not_set. audience (value = aud_ ID): is_subscribed/is_not_subscribed/is_member/is_not_member. engagement (value = \"run\", \"automation\", { scope: \"step\", step }, { scope: \"any\", days }, { scope: \"campaign\", campaign_id }): opened/not_opened/clicked/not_clicked. Dates: before/after/on/is_past/is_future/within_last/within_next/more_than_ago/more_than_from_now (value = days or { amount, unit }). Numbers: greater_than/less_than/greater_or_equal/less_or_equal. Booleans: is_true/is_false.",
      -                                          "enum": [
      -                                            "equals",
      -                                            "not_equals",
      -                                            "contains",
      -                                            "not_contains",
      -                                            "greater_than",
      -                                            "less_than",
      -                                            "is_set",
      -                                            "is_not_set",
      -                                            "starts_with",
      -                                            "ends_with",
      -                                            "in",
      -                                            "not_in",
      -                                            "greater_or_equal",
      -                                            "less_or_equal",
      -                                            "is_true",
      -                                            "is_false",
      -                                            "before",
      -                                            "after",
      -                                            "on",
      -                                            "is_past",
      -                                            "is_future",
      -                                            "within_last",
      -                                            "within_next",
      -                                            "more_than_ago",
      -                                            "more_than_from_now",
      -                                            "is_subscribed",
      -                                            "is_not_subscribed",
      -                                            "is_member",
      -                                            "is_not_member",
      -                                            "opened",
      -                                            "not_opened",
      -                                            "clicked",
      -                                            "not_clicked"
      -                                          ],
      -                                          "type": "string"
      -                                        },
      -                                        "value": {}
      -                                      },
      -                                      "required": [
      -                                        "field",
      -                                        "operator"
      -                                      ],
      -                                      "type": "object"
      -                                    },
      -                                    "minItems": 1,
      -                                    "type": "array"
      -                                  }
      -                                },
      -                                "required": [
      -                                  "match",
      -                                  "rules"
      -                                ],
      -                                "type": "object"
      -                              }
      -                            ]
      -                          },
      -                          "minItems": 1,
      -                          "type": "array"
      -                        }
      -                      },
      -                      "required": [
      -                        "match",
      -                        "rules"
      -                      ],
      -                      "type": "object"
      -                    }
      -                  ]
      -                },
      -                "minItems": 1,
      -                "type": "array"
      -              }
      -            },
      -            "required": [
      -              "match",
      -              "rules"
      -            ],
      -            "type": "object"
      -          }
      -        },
      -        "required": [
      -          "filter"
      -        ],
      -        "type": "object"
      -      },
      -      "key": {
      -        "description": "Unique step key referenced by connections.",
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "type": {
      -        "const": "action",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "key",
      -      "type",
      -      "action",
      -      "config"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Goal: as soon as the contact meets it, the run jumps here from wherever it is and continues after it.",
      -    "properties": {
      -      "action": {
      -        "const": "goal",
      -        "type": "string"
      -      },
      -      "config": {
      -        "properties": {
      -          "condition": {
      -            "description": "Reached when the contact matches (checked on every contact change).",
      -            "properties": {
      -              "match": {
      -                "enum": [
      -                  "all",
      -                  "any"
      -                ],
      -                "type": "string"
      -              },
      -              "rules": {
      -                "items": {
      -                  "anyOf": [
      -                    {
      -                      "properties": {
      -                        "field": {
      -                          "description": "email, first_name, last_name, unsubscribed, created_at, score, tags, subscribed, audience, engagement, custom_fields.<key>, global.<key>, payload.<path>, meta.<path>.",
      -                          "minLength": 1,
      -                          "type": "string"
      -                        },
      -                        "operator": {
      -                          "description": "tags: contains/not_contains/in/not_in/is_set/is_not_set. audience (value = aud_ ID): is_subscribed/is_not_subscribed/is_member/is_not_member. engagement (value = \"run\", \"automation\", { scope: \"step\", step }, { scope: \"any\", days }, { scope: \"campaign\", campaign_id }): opened/not_opened/clicked/not_clicked. Dates: before/after/on/is_past/is_future/within_last/within_next/more_than_ago/more_than_from_now (value = days or { amount, unit }). Numbers: greater_than/less_than/greater_or_equal/less_or_equal. Booleans: is_true/is_false.",
      -                          "enum": [
      -                            "equals",
      -                            "not_equals",
      -                            "contains",
      -                            "not_contains",
      -                            "greater_than",
      -                            "less_than",
      -                            "is_set",
      -                            "is_not_set",
      -                            "starts_with",
      -                            "ends_with",
      -                            "in",
      -                            "not_in",
      -                            "greater_or_equal",
      -                            "less_or_equal",
      -                            "is_true",
      -                            "is_false",
      -                            "before",
      -                            "after",
      -                            "on",
      -                            "is_past",
      -                            "is_future",
      -                            "within_last",
      -                            "within_next",
      -                            "more_than_ago",
      -                            "more_than_from_now",
      -                            "is_subscribed",
      -                            "is_not_subscribed",
      -                            "is_member",
      -                            "is_not_member",
      -                            "opened",
      -                            "not_opened",
      -                            "clicked",
      -                            "not_clicked"
      -                          ],
      -                          "type": "string"
      -                        },
      -                        "value": {}
      -                      },
      -                      "required": [
      -                        "field",
      -                        "operator"
      -                      ],
      -                      "type": "object"
      -                    },
      -                    {
      -                      "properties": {
      -                        "match": {
      -                          "enum": [
      -                            "all",
      -                            "any"
      -                          ],
      -                          "type": "string"
      -                        },
      -                        "rules": {
      -                          "items": {
      -                            "anyOf": [
      -                              {
      -                                "properties": {
      -                                  "field": {
      -                                    "description": "email, first_name, last_name, unsubscribed, created_at, score, tags, subscribed, audience, engagement, custom_fields.<key>, global.<key>, payload.<path>, meta.<path>.",
      -                                    "minLength": 1,
      -                                    "type": "string"
      -                                  },
      -                                  "operator": {
      -                                    "description": "tags: contains/not_contains/in/not_in/is_set/is_not_set. audience (value = aud_ ID): is_subscribed/is_not_subscribed/is_member/is_not_member. engagement (value = \"run\", \"automation\", { scope: \"step\", step }, { scope: \"any\", days }, { scope: \"campaign\", campaign_id }): opened/not_opened/clicked/not_clicked. Dates: before/after/on/is_past/is_future/within_last/within_next/more_than_ago/more_than_from_now (value = days or { amount, unit }). Numbers: greater_than/less_than/greater_or_equal/less_or_equal. Booleans: is_true/is_false.",
      -                                    "enum": [
      -                                      "equals",
      -                                      "not_equals",
      -                                      "contains",
      -                                      "not_contains",
      -                                      "greater_than",
      -                                      "less_than",
      -                                      "is_set",
      -                                      "is_not_set",
      -                                      "starts_with",
      -                                      "ends_with",
      -                                      "in",
      -                                      "not_in",
      -                                      "greater_or_equal",
      -                                      "less_or_equal",
      -                                      "is_true",
      -                                      "is_false",
      -                                      "before",
      -                                      "after",
      -                                      "on",
      -                                      "is_past",
      -                                      "is_future",
      -                                      "within_last",
      -                                      "within_next",
      -                                      "more_than_ago",
      -                                      "more_than_from_now",
      -                                      "is_subscribed",
      -                                      "is_not_subscribed",
      -                                      "is_member",
      -                                      "is_not_member",
      -                                      "opened",
      -                                      "not_opened",
      -                                      "clicked",
      -                                      "not_clicked"
      -                                    ],
      -                                    "type": "string"
      -                                  },
      -                                  "value": {}
      -                                },
      -                                "required": [
      -                                  "field",
      -                                  "operator"
      -                                ],
      -                                "type": "object"
      -                              },
      -                              {
      -                                "properties": {
      -                                  "match": {
      -                                    "enum": [
      -                                      "all",
      -                                      "any"
      -                                    ],
      -                                    "type": "string"
      -                                  },
      -                                  "rules": {
      -                                    "items": {
      -                                      "properties": {
      -                                        "field": {
      -                                          "description": "email, first_name, last_name, unsubscribed, created_at, score, tags, subscribed, audience, engagement, custom_fields.<key>, global.<key>, payload.<path>, meta.<path>.",
      -                                          "minLength": 1,
      -                                          "type": "string"
      -                                        },
      -                                        "operator": {
      -                                          "description": "tags: contains/not_contains/in/not_in/is_set/is_not_set. audience (value = aud_ ID): is_subscribed/is_not_subscribed/is_member/is_not_member. engagement (value = \"run\", \"automation\", { scope: \"step\", step }, { scope: \"any\", days }, { scope: \"campaign\", campaign_id }): opened/not_opened/clicked/not_clicked. Dates: before/after/on/is_past/is_future/within_last/within_next/more_than_ago/more_than_from_now (value = days or { amount, unit }). Numbers: greater_than/less_than/greater_or_equal/less_or_equal. Booleans: is_true/is_false.",
      -                                          "enum": [
      -                                            "equals",
      -                                            "not_equals",
      -                                            "contains",
      -                                            "not_contains",
      -                                            "greater_than",
      -                                            "less_than",
      -                                            "is_set",
      -                                            "is_not_set",
      -                                            "starts_with",
      -                                            "ends_with",
      -                                            "in",
      -                                            "not_in",
      -                                            "greater_or_equal",
      -                                            "less_or_equal",
      -                                            "is_true",
      -                                            "is_false",
      -                                            "before",
      -                                            "after",
      -                                            "on",
      -                                            "is_past",
      -                                            "is_future",
      -                                            "within_last",
      -                                            "within_next",
      -                                            "more_than_ago",
      -                                            "more_than_from_now",
      -                                            "is_subscribed",
      -                                            "is_not_subscribed",
      -                                            "is_member",
      -                                            "is_not_member",
      -                                            "opened",
      -                                            "not_opened",
      -                                            "clicked",
      -                                            "not_clicked"
      -                                          ],
      -                                          "type": "string"
      -                                        },
      -                                        "value": {}
      -                                      },
      -                                      "required": [
      -                                        "field",
      -                                        "operator"
      -                                      ],
      -                                      "type": "object"
      -                                    },
      -                                    "minItems": 1,
      -                                    "type": "array"
      -                                  }
      -                                },
      -                                "required": [
      -                                  "match",
      -                                  "rules"
      -                                ],
      -                                "type": "object"
      -                              }
      -                            ]
      -                          },
      -                          "minItems": 1,
      -                          "type": "array"
      -                        }
      -                      },
      -                      "required": [
      -                        "match",
      -                        "rules"
      -                      ],
      -                      "type": "object"
      -                    }
      -                  ]
      -                },
      -                "minItems": 1,
      -                "type": "array"
      -              }
      -            },
      -            "required": [
      -              "match",
      -              "rules"
      -            ],
      -            "type": "object"
      -          },
      -          "event": {
      -            "description": "Reached when this event happens for the contact.",
      -            "properties": {
      -              "audience_id": {
      -                "description": "Only for this audience (audience events).",
      -                "type": "string"
      -              },
      -              "automation_id": {
      -                "description": "Opens/clicks: only emails sent by this automation.",
      -                "type": "string"
      -              },
      -              "campaign_id": {
      -                "description": "Opens/clicks: only emails of this campaign.",
      -                "type": "string"
      -              },
      -              "direction": {
      -                "description": "Crossing direction for threshold (default up).",
      -                "enum": [
      -                  "up",
      -                  "down"
      -                ],
      -                "type": "string"
      -              },
      -              "event": {
      -                "description": "Event to listen for.",
      -                "enum": [
      -                  "contact.added_to_audience",
      -                  "contact.removed_from_audience",
      -                  "contact.created",
      -                  "contact.updated",
      -                  "contact.tag_added",
      -                  "contact.tag_removed",
      -                  "contact.score_changed",
      -                  "contact.unsubscribed",
      -                  "contact.loaded_email",
      -                  "contact.clicked_in_email",
      -                  "contact.on_event",
      -                  "form.submitted"
      -                ],
      -                "type": "string"
      -              },
      -              "event_name": {
      -                "description": "Custom event name (contact.on_event), e.g. \"c:purchase\" or \"purchase\".",
      -                "type": "string"
      -              },
      -              "field": {
      -                "description": "contact.updated: only when this field changed, e.g. \"custom_fields.purchased\".",
      -                "type": "string"
      -              },
      -              "filter": {
      -                "description": "Only when the event payload matches (e.g. properties.total greater_than 100).",
      -                "properties": {
      -                  "match": {
      -                    "description": "Whether all rules or any rule must match.",
      -                    "enum": [
      -                      "all",
      -                      "any"
      -                    ],
      -                    "type": "string"
      -                  },
      -                  "rules": {
      -                    "items": {
      -                      "properties": {
      -                        "field": {
      -                          "description": "Payload field, dot notation for nested values (e.g. \"contact.email\").",
      -                          "minLength": 1,
      -                          "type": "string"
      -                        },
      -                        "operator": {
      -                          "enum": [
      -                            "equals",
      -                            "not_equals",
      -                            "contains",
      -                            "not_contains",
      -                            "greater_than",
      -                            "less_than",
      -                            "is_set",
      -                            "is_not_set",
      -                            "starts_with",
      -                            "ends_with",
      -                            "in",
      -                            "not_in"
      -                          ],
      -                          "type": "string"
      -                        },
      -                        "value": {
      -                          "description": "Required except for is_set and is_not_set."
      -                        }
      -                      },
      -                      "required": [
      -                        "field",
      -                        "operator"
      -                      ],
      -                      "type": "object"
      -                    },
      -                    "minItems": 1,
      -                    "type": "array"
      -                  }
      -                },
      -                "required": [
      -                  "match",
      -                  "rules"
      -                ],
      -                "type": "object"
      -              },
      -              "form_id": {
      -                "description": "Only for this form (form.submitted).",
      -                "type": "string"
      -              },
      -              "link_contains": {
      -                "description": "Clicks: only links whose URL contains this text.",
      -                "type": "string"
      -              },
      -              "tag": {
      -                "description": "Only this tag (contact.tag_added / contact.tag_removed).",
      -                "type": "string"
      -              },
      -              "threshold": {
      -                "description": "contact.score_changed: only when the score crosses this value.",
      -                "type": "number"
      -              }
      -            },
      -            "required": [
      -              "event"
      -            ],
      -            "type": "object"
      -          },
      -          "if_not_met": {
      -            "description": "When a run gets to the goal before meeting it: continue (default), wait until it is met, or end the run.",
      -            "enum": [
      -              "continue",
      -              "wait",
      -              "end"
      -            ],
      -            "type": "string"
      -          }
      -        },
      -        "type": "object"
      -      },
      -      "key": {
      -        "description": "Unique step key referenced by connections.",
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "type": {
      -        "const": "action",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "key",
      -      "type",
      -      "action",
      -      "config"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Pick a branch at random by weight.",
      -    "properties": {
      -      "action": {
      -        "const": "experiment",
      -        "type": "string"
      -      },
      -      "config": {
      -        "properties": {
      -          "control": {
      -            "properties": {
      -              "key": {
      -                "minLength": 1,
      -                "type": "string"
      -              },
      -              "weight": {
      -                "minimum": 0,
      -                "type": "number"
      -              }
      -            },
      -            "required": [
      -              "key",
      -              "weight"
      -            ],
      -            "type": "object"
      -          },
      -          "variants": {
      -            "items": {
      -              "properties": {
      -                "key": {
      -                  "minLength": 1,
      -                  "type": "string"
      -                },
      -                "weight": {
      -                  "minimum": 0,
      -                  "type": "number"
      -                }
      -              },
      -              "required": [
      -                "key",
      -                "weight"
      -              ],
      -              "type": "object"
      -            },
      -            "minItems": 1,
      -            "type": "array"
      -          }
      -        },
      -        "required": [
      -          "variants"
      -        ],
      -        "type": "object"
      -      },
      -      "key": {
      -        "description": "Unique step key referenced by connections.",
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "type": {
      -        "const": "action",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "key",
      -      "type",
      -      "action",
      -      "config"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Start a run of another running automation for the same contact.",
      -    "properties": {
      -      "action": {
      -        "const": "run_automation",
      -        "type": "string"
      -      },
      -      "config": {
      -        "properties": {
      -          "automation_id": {
      -            "minLength": 1,
      -            "type": "string"
      -          },
      -          "exit_current": {
      -            "description": "Move the contact: end this run after starting the other automation.",
      -            "type": "boolean"
      -          }
      -        },
      -        "required": [
      -          "automation_id"
      -        ],
      -        "type": "object"
      -      },
      -      "key": {
      -        "description": "Unique step key referenced by connections.",
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "type": {
      -        "const": "action",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "key",
      -      "type",
      -      "action",
      -      "config"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Stop the contact's runs in other automations, like remove-contact-from-automation.",
      -    "properties": {
      -      "action": {
      -        "const": "exit_automation",
      -        "type": "string"
      -      },
      -      "config": {
      -        "properties": {
      -          "all": {
      -            "description": "Every other automation.",
      -            "type": "boolean"
      -          },
      -          "automation_ids": {
      -            "items": {
      -              "minLength": 1,
      -              "type": "string"
      -            },
      -            "type": "array"
      -          }
      -        },
      -        "type": "object"
      -      },
      -      "key": {
      -        "description": "Unique step key referenced by connections.",
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "type": {
      -        "const": "action",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "key",
      -      "type",
      -      "action",
      -      "config"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "End the run for this contact (all branches).",
      -    "properties": {
      -      "action": {
      -        "const": "end_run",
      -        "type": "string"
      -      },
      -      "config": {
      -        "properties": {},
      -        "type": "object"
      -      },
      -      "key": {
      -        "description": "Unique step key referenced by connections.",
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "type": {
      -        "const": "action",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "key",
      -      "type",
      -      "action"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "End this branch.",
      -    "properties": {
      -      "action": {
      -        "const": "end",
      -        "type": "string"
      -      },
      -      "config": {
      -        "properties": {},
      -        "type": "object"
      -      },
      -      "key": {
      -        "description": "Unique step key referenced by connections.",
      -        "minLength": 1,
      -        "type": "string"
      -      },
      -      "type": {
      -        "const": "action",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "key",
      -      "type",
      -      "action"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "description": "Trigger: starts a run when the event happens. Runs nothing by itself.",
      +    "properties": {
      +      "config": {
      +        "properties": {
      +          "audience_id": {
      +            "description": "Only for this audience (audience events).",
      +            "type": "string"
      +          },
      +          "automation_id": {
      +            "description": "Opens/clicks: only emails sent by this automation.",
      +            "type": "string"
      +          },
      +          "campaign_id": {
      +            "description": "Opens/clicks: only emails of this campaign.",
      +            "type": "string"
      +          },
      +          "date_field": {
      +            "description": "contact.on_date / date_anniversary: custom-field key holding the date.",
      +            "type": "string"
      +          },
      +          "direction": {
      +            "description": "Crossing direction for threshold (default up).",
      +            "enum": [
      +              "up",
      +              "down"
      +            ],
      +            "type": "string"
      +          },
      +          "event_name": {
      +            "description": "Custom event name (contact.on_event), e.g. \"c:purchase\" or \"purchase\".",
      +            "type": "string"
      +          },
      +          "field": {
      +            "description": "contact.updated: only when this field changed, e.g. \"custom_fields.purchased\".",
      +            "type": "string"
      +          },
      +          "filter": {
      +            "description": "Only when the event payload matches (e.g. properties.total greater_than 100).",
      +            "properties": {
      +              "match": {
      +                "description": "Whether all rules or any rule must match.",
      +                "enum": [
      +                  "all",
      +                  "any"
      +                ],
      +                "type": "string"
      +              },
      +              "rules": {
      +                "items": {
      +                  "properties": {
      +                    "field": {
      +                      "description": "Payload field, dot notation for nested values (e.g. \"contact.email\").",
      +                      "minLength": 1,
      +                      "type": "string"
      +                    },
      +                    "operator": {
      +                      "enum": [
      +                        "equals",
      +                        "not_equals",
      +                        "contains",
      +                        "not_contains",
      +                        "greater_than",
      +                        "less_than",
      +                        "is_set",
      +                        "is_not_set",
      +                        "starts_with",
      +                        "ends_with",
      +                        "in",
      +                        "not_in"
      +                      ],
      +                      "type": "string"
      +                    },
      +                    "value": {
      +                      "description": "Required except for is_set and is_not_set."
      +                    }
      +                  },
      +                  "required": [
      +                    "field",
      +                    "operator"
      +                  ],
      +                  "type": "object"
      +                },
      +                "minItems": 1,
      +                "type": "array"
      +              }
      +            },
      +            "required": [
      +              "match",
      +              "rules"
      +            ],
      +            "type": "object"
      +          },
      +          "form_id": {
      +            "description": "Only for this form (form.submitted).",
      +            "type": "string"
      +          },
      +          "link_contains": {
      +            "description": "Clicks: only links whose URL contains this text.",
      +            "type": "string"
      +          },
      +          "offset": {
      +            "description": "Date triggers: fire this long before/after the date.",
      +            "properties": {
      +              "amount": {
      +                "minimum": 0,
      +                "type": "number"
      +              },
      +              "direction": {
      +                "enum": [
      +                  "before",
      +                  "after"
      +                ],
      +                "type": "string"
      +              },
      +              "unit": {
      +                "enum": [
      +                  "days",
      +                  "weeks"
      +                ],
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "amount",
      +              "direction"
      +            ],
      +            "type": "object"
      +          },
      +          "repeat": {
      +            "description": "contact.on_date: yearly makes it an anniversary.",
      +            "enum": [
      +              "once",
      +              "yearly"
      +            ],
      +            "type": "string"
      +          },
      +          "tag": {
      +            "description": "Only this tag (contact.tag_added / contact.tag_removed).",
      +            "type": "string"
      +          },
      +          "threshold": {
      +            "description": "contact.score_changed: only when the score crosses this value.",
      +            "type": "number"
      +          },
      +          "time": {
      +            "description": "Date triggers: time of day HH:MM (default 00:00).",
      +            "type": "string"
      +          },
      +          "timezone": {
      +            "description": "Date triggers: IANA timezone (default UTC).",
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "key": {
      +        "description": "Unique step key referenced by connections.",
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "trigger": {
      +        "anyOf": [
      +          {
      +            "enum": [
      +              "contact.added_to_audience",
      +              "contact.removed_from_audience",
      +              "contact.created",
      +              "contact.updated",
      +              "contact.tag_added",
      +              "contact.tag_removed",
      +              "contact.score_changed",
      +              "contact.unsubscribed",
      +              "contact.loaded_email",
      +              "contact.clicked_in_email",
      +              "contact.visits_url",
      +              "contact.date_anniversary",
      +              "contact.on_date",
      +              "contact.on_event",
      +              "form.submitted",
      +              "email.received",
      +              "email.delivered",
      +              "email.bounced",
      +              "email.complained",
      +              "email.loaded",
      +              "email.clicked",
      +              "email.failed",
      +              "email.suppressed",
      +              "email.canceled",
      +              "system.manual",
      +              "system.schedule"
      +            ],
      +            "type": "string"
      +          },
      +          {
      +            "pattern": "^event\\.",
      +            "type": "string"
      +          }
      +        ],
      +        "description": "Event that starts a run. Event automations use \"event.<name>\"."
      +      },
      +      "type": {
      +        "const": "trigger",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "key",
      +      "type",
      +      "trigger"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Send a template email to the contact (or \"to\"), like send-email. Templates render with Temple: {{first_name}}, {{cf.plan}}, {{global.webinar_date}}, {{tags}}, {{score}}, {{unsubscribe_url}}. Sends real email and uses credits.",
      +    "properties": {
      +      "action": {
      +        "const": "send_email",
      +        "type": "string"
      +      },
      +      "config": {
      +        "properties": {
      +          "email_type": {
      +            "description": "marketing (default in contact automations): skipped for unsubscribed contacts, adds {{unsubscribe_url}} and List-Unsubscribe headers. transactional: always sent.",
      +            "enum": [
      +              "marketing",
      +              "transactional"
      +            ],
      +            "type": "string"
      +          },
      +          "from": {
      +            "description": "Sender on a verified domain; defaults to the template sender.",
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "from_name": {
      +            "description": "Sender name shown in the inbox, e.g. your business name. Applies to \"from\" or the template sender and replaces any name they carry.",
      +            "maxLength": 200,
      +            "type": "string"
      +          },
      +          "reply_to": {
      +            "anyOf": [
      +              {
      +                "description": "Email address, or \"Name <address>\".",
      +                "minLength": 1,
      +                "type": "string"
      +              },
      +              {
      +                "items": {
      +                  "description": "Email address, or \"Name <address>\".",
      +                  "minLength": 1,
      +                  "type": "string"
      +                },
      +                "type": "array"
      +              }
      +            ],
      +            "description": "Reply-To address(es); placeholders like {{contact.custom_fields.owner_email}} work."
      +          },
      +          "subject": {
      +            "type": "string"
      +          },
      +          "template_id": {
      +            "description": "Template ID (tem_xxx) or published alias.",
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "to": {
      +            "description": "Recipient in email and event automations; contact automations send to the contact.",
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "tracking": {
      +            "description": "Override the domain's open/click tracking (needs a verified tracking CNAME).",
      +            "properties": {
      +              "clicks": {
      +                "type": "boolean"
      +              },
      +              "loads": {
      +                "type": "boolean"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "type": {
      +            "const": "template",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "type",
      +          "template_id"
      +        ],
      +        "type": "object"
      +      },
      +      "key": {
      +        "description": "Unique step key referenced by connections.",
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "action",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "key",
      +      "type",
      +      "action",
      +      "config"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Forward the email that started the run, like forward-email. Sends real email and uses credits.",
      +    "properties": {
      +      "action": {
      +        "const": "forward_email",
      +        "type": "string"
      +      },
      +      "config": {
      +        "properties": {
      +          "from": {
      +            "description": "Email address, or \"Name <address>\".",
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "subject": {
      +            "type": "string"
      +          },
      +          "to": {
      +            "description": "Recipient of the forwarded email.",
      +            "minLength": 1,
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "to"
      +        ],
      +        "type": "object"
      +      },
      +      "key": {
      +        "description": "Unique step key referenced by connections.",
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "action",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "key",
      +      "type",
      +      "action",
      +      "config"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Subscribe the contact to an audience, like add-audience-subscriber. Starts \"added to audience\" automations.",
      +    "properties": {
      +      "action": {
      +        "const": "add_to_audience",
      +        "type": "string"
      +      },
      +      "config": {
      +        "properties": {
      +          "audience_id": {
      +            "minLength": 1,
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "audience_id"
      +        ],
      +        "type": "object"
      +      },
      +      "key": {
      +        "description": "Unique step key referenced by connections.",
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "action",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "key",
      +      "type",
      +      "action",
      +      "config"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Remove the contact from an audience, like remove-audience-subscriber.",
      +    "properties": {
      +      "action": {
      +        "const": "remove_from_audience",
      +        "type": "string"
      +      },
      +      "config": {
      +        "properties": {
      +          "audience_id": {
      +            "minLength": 1,
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "audience_id"
      +        ],
      +        "type": "object"
      +      },
      +      "key": {
      +        "description": "Unique step key referenced by connections.",
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "action",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "key",
      +      "type",
      +      "action",
      +      "config"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Subscribe or unsubscribe the contact, like bulk-unsubscribe-contacts / bulk-resubscribe-contacts.",
      +    "properties": {
      +      "action": {
      +        "const": "update_subscription",
      +        "type": "string"
      +      },
      +      "config": {
      +        "properties": {
      +          "action": {
      +            "enum": [
      +              "subscribe",
      +              "unsubscribe"
      +            ],
      +            "type": "string"
      +          },
      +          "audience_id": {
      +            "type": "string"
      +          },
      +          "scope": {
      +            "description": "audience (default, needs audience_id), all_audiences (unsubscribe only) or global (the contact's marketing status).",
      +            "enum": [
      +              "audience",
      +              "all_audiences",
      +              "global"
      +            ],
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "action"
      +        ],
      +        "type": "object"
      +      },
      +      "key": {
      +        "description": "Unique step key referenced by connections.",
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "action",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "key",
      +      "type",
      +      "action",
      +      "config"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Set, clear or increment contact fields, like update-contact. Starts \"contact updated\" automations.",
      +    "properties": {
      +      "action": {
      +        "const": "edit_contact",
      +        "type": "string"
      +      },
      +      "config": {
      +        "properties": {
      +          "fields": {
      +            "items": {
      +              "properties": {
      +                "key": {
      +                  "description": "email, first_name, last_name, unsubscribed, or a custom-field key.",
      +                  "minLength": 1,
      +                  "type": "string"
      +                },
      +                "operation": {
      +                  "description": "Default set. clear removes the custom field; increment/decrement change a number field by value (default 1).",
      +                  "enum": [
      +                    "set",
      +                    "clear",
      +                    "increment",
      +                    "decrement"
      +                  ],
      +                  "type": "string"
      +                },
      +                "value": {}
      +              },
      +              "required": [
      +                "key"
      +              ],
      +              "type": "object"
      +            },
      +            "minItems": 1,
      +            "type": "array"
      +          }
      +        },
      +        "required": [
      +          "fields"
      +        ],
      +        "type": "object"
      +      },
      +      "key": {
      +        "description": "Unique step key referenced by connections.",
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "action",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "key",
      +      "type",
      +      "action",
      +      "config"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Add tags to the contact, like add-contact-tags. Starts \"tag added\" automations.",
      +    "properties": {
      +      "action": {
      +        "const": "add_tag",
      +        "type": "string"
      +      },
      +      "config": {
      +        "properties": {
      +          "tags": {
      +            "items": {
      +              "maxLength": 64,
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "minItems": 1,
      +            "type": "array"
      +          }
      +        },
      +        "required": [
      +          "tags"
      +        ],
      +        "type": "object"
      +      },
      +      "key": {
      +        "description": "Unique step key referenced by connections.",
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "action",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "key",
      +      "type",
      +      "action",
      +      "config"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Remove tags from the contact, like remove-contact-tags.",
      +    "properties": {
      +      "action": {
      +        "const": "remove_tag",
      +        "type": "string"
      +      },
      +      "config": {
      +        "properties": {
      +          "tags": {
      +            "items": {
      +              "maxLength": 64,
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "minItems": 1,
      +            "type": "array"
      +          }
      +        },
      +        "required": [
      +          "tags"
      +        ],
      +        "type": "object"
      +      },
      +      "key": {
      +        "description": "Unique step key referenced by connections.",
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "action",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "key",
      +      "type",
      +      "action",
      +      "config"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Change the contact's lead score, like update-contact-score. Starts \"score changed\" automations.",
      +    "properties": {
      +      "action": {
      +        "const": "update_score",
      +        "type": "string"
      +      },
      +      "config": {
      +        "properties": {
      +          "operation": {
      +            "description": "Default add.",
      +            "enum": [
      +              "add",
      +              "subtract",
      +              "set"
      +            ],
      +            "type": "string"
      +          },
      +          "value": {
      +            "maximum": 9007199254740991,
      +            "minimum": -9007199254740991,
      +            "type": "integer"
      +          }
      +        },
      +        "required": [
      +          "value"
      +        ],
      +        "type": "object"
      +      },
      +      "key": {
      +        "description": "Unique step key referenced by connections.",
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "action",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "key",
      +      "type",
      +      "action",
      +      "config"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Create the contact (or find it), like create-contact.",
      +    "properties": {
      +      "action": {
      +        "const": "create_contact",
      +        "type": "string"
      +      },
      +      "config": {
      +        "properties": {
      +          "audience_id": {
      +            "description": "Also subscribe the contact to this audience.",
      +            "type": "string"
      +          },
      +          "email": {
      +            "description": "Defaults to the email recipient in email automations.",
      +            "type": "string"
      +          },
      +          "first_name": {
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "key": {
      +        "description": "Unique step key referenced by connections.",
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "action",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "key",
      +      "type",
      +      "action",
      +      "config"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Suppress an address, like create-suppression.",
      +    "properties": {
      +      "action": {
      +        "const": "add_to_suppressions",
      +        "type": "string"
      +      },
      +      "config": {
      +        "properties": {
      +          "email": {
      +            "type": "string"
      +          },
      +          "reason": {
      +            "type": "string"
      +          },
      +          "type": {
      +            "description": "Suppression type (default \"recipient\").",
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "key": {
      +        "description": "Unique step key referenced by connections.",
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "action",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "key",
      +      "type",
      +      "action",
      +      "config"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Remove a suppression, like delete-suppression.",
      +    "properties": {
      +      "action": {
      +        "const": "remove_from_suppressions",
      +        "type": "string"
      +      },
      +      "config": {
      +        "properties": {
      +          "email": {
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "key": {
      +        "description": "Unique step key referenced by connections.",
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "action",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "key",
      +      "type",
      +      "action",
      +      "config"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Wait a fixed time before the next step.",
      +    "properties": {
      +      "action": {
      +        "const": "wait",
      +        "type": "string"
      +      },
      +      "config": {
      +        "properties": {
      +          "seconds": {
      +            "description": "Delay before the next step, up to 30 days.",
      +            "maximum": 2592000,
      +            "minimum": 0,
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "seconds"
      +        ],
      +        "type": "object"
      +      },
      +      "key": {
      +        "description": "Unique step key referenced by connections.",
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "action",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "key",
      +      "type",
      +      "action",
      +      "config"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Wait until a date (branches: default, passed), an event (branches: matched, timeout) or a condition (branches: matched, timeout).",
      +    "properties": {
      +      "action": {
      +        "const": "wait_until",
      +        "type": "string"
      +      },
      +      "config": {
      +        "properties": {
      +          "condition": {
      +            "description": "mode condition: wait until the contact matches.",
      +            "properties": {
      +              "match": {
      +                "enum": [
      +                  "all",
      +                  "any"
      +                ],
      +                "type": "string"
      +              },
      +              "rules": {
      +                "items": {
      +                  "anyOf": [
      +                    {
      +                      "properties": {
      +                        "field": {
      +                          "description": "email, first_name, last_name, unsubscribed, created_at, score, tags, subscribed, audience, engagement, custom_fields.<key>, global.<key>, payload.<path>, meta.<path>.",
      +                          "minLength": 1,
      +                          "type": "string"
      +                        },
      +                        "operator": {
      +                          "description": "tags: contains/not_contains/in/not_in/is_set/is_not_set. audience (value = aud_ ID): is_subscribed/is_not_subscribed/is_member/is_not_member. engagement (value = \"run\", \"automation\", { scope: \"step\", step }, { scope: \"any\", days }, { scope: \"campaign\", campaign_id }): opened/not_opened/clicked/not_clicked. Dates: before/after/on/is_past/is_future/within_last/within_next/more_than_ago/more_than_from_now (value = days or { amount, unit }). Numbers: greater_than/less_than/greater_or_equal/less_or_equal. Booleans: is_true/is_false.",
      +                          "enum": [
      +                            "equals",
      +                            "not_equals",
      +                            "contains",
      +                            "not_contains",
      +                            "greater_than",
      +                            "less_than",
      +                            "is_set",
      +                            "is_not_set",
      +                            "starts_with",
      +                            "ends_with",
      +                            "in",
      +                            "not_in",
      +                            "greater_or_equal",
      +                            "less_or_equal",
      +                            "is_true",
      +                            "is_false",
      +                            "before",
      +                            "after",
      +                            "on",
      +                            "is_past",
      +                            "is_future",
      +                            "within_last",
      +                            "within_next",
      +                            "more_than_ago",
      +                            "more_than_from_now",
      +                            "is_subscribed",
      +                            "is_not_subscribed",
      +                            "is_member",
      +                            "is_not_member",
      +                            "opened",
      +                            "not_opened",
      +                            "clicked",
      +                            "not_clicked"
      +                          ],
      +                          "type": "string"
      +                        },
      +                        "value": {}
      +                      },
      +                      "required": [
      +                        "field",
      +                        "operator"
      +                      ],
      +                      "type": "object"
      +                    },
      +                    {
      +                      "properties": {
      +                        "match": {
      +                          "enum": [
      +                            "all",
      +                            "any"
      +                          ],
      +                          "type": "string"
      +                        },
      +                        "rules": {
      +                          "items": {
      +                            "anyOf": [
      +                              {
      +                                "properties": {
      +                                  "field": {
      +                                    "description": "email, first_name, last_name, unsubscribed, created_at, score, tags, subscribed, audience, engagement, custom_fields.<key>, global.<key>, payload.<path>, meta.<path>.",
      +                                    "minLength": 1,
      +                                    "type": "string"
      +                                  },
      +                                  "operator": {
      +                                    "description": "tags: contains/not_contains/in/not_in/is_set/is_not_set. audience (value = aud_ ID): is_subscribed/is_not_subscribed/is_member/is_not_member. engagement (value = \"run\", \"automation\", { scope: \"step\", step }, { scope: \"any\", days }, { scope: \"campaign\", campaign_id }): opened/not_opened/clicked/not_clicked. Dates: before/after/on/is_past/is_future/within_last/within_next/more_than_ago/more_than_from_now (value = days or { amount, unit }). Numbers: greater_than/less_than/greater_or_equal/less_or_equal. Booleans: is_true/is_false.",
      +                                    "enum": [
      +                                      "equals",
      +                                      "not_equals",
      +                                      "contains",
      +                                      "not_contains",
      +                                      "greater_than",
      +                                      "less_than",
      +                                      "is_set",
      +                                      "is_not_set",
      +                                      "starts_with",
      +                                      "ends_with",
      +                                      "in",
      +                                      "not_in",
      +                                      "greater_or_equal",
      +                                      "less_or_equal",
      +                                      "is_true",
      +                                      "is_false",
      +                                      "before",
      +                                      "after",
      +                                      "on",
      +                                      "is_past",
      +                                      "is_future",
      +                                      "within_last",
      +                                      "within_next",
      +                                      "more_than_ago",
      +                                      "more_than_from_now",
      +                                      "is_subscribed",
      +                                      "is_not_subscribed",
      +                                      "is_member",
      +                                      "is_not_member",
      +                                      "opened",
      +                                      "not_opened",
      +                                      "clicked",
      +                                      "not_clicked"
      +                                    ],
      +                                    "type": "string"
      +                                  },
      +                                  "value": {}
      +                                },
      +                                "required": [
      +                                  "field",
      +                                  "operator"
      +                                ],
      +                                "type": "object"
      +                              },
      +                              {
      +                                "properties": {
      +                                  "match": {
      +                                    "enum": [
      +                                      "all",
      +                                      "any"
      +                                    ],
      +                                    "type": "string"
      +                                  },
      +                                  "rules": {
      +                                    "items": {
      +                                      "properties": {
      +                                        "field": {
      +                                          "description": "email, first_name, last_name, unsubscribed, created_at, score, tags, subscribed, audience, engagement, custom_fields.<key>, global.<key>, payload.<path>, meta.<path>.",
      +                                          "minLength": 1,
      +                                          "type": "string"
      +                                        },
      +                                        "operator": {
      +                                          "description": "tags: contains/not_contains/in/not_in/is_set/is_not_set. audience (value = aud_ ID): is_subscribed/is_not_subscribed/is_member/is_not_member. engagement (value = \"run\", \"automation\", { scope: \"step\", step }, { scope: \"any\", days }, { scope: \"campaign\", campaign_id }): opened/not_opened/clicked/not_clicked. Dates: before/after/on/is_past/is_future/within_last/within_next/more_than_ago/more_than_from_now (value = days or { amount, unit }). Numbers: greater_than/less_than/greater_or_equal/less_or_equal. Booleans: is_true/is_false.",
      +                                          "enum": [
      +                                            "equals",
      +                                            "not_equals",
      +                                            "contains",
      +                                            "not_contains",
      +                                            "greater_than",
      +                                            "less_than",
      +                                            "is_set",
      +                                            "is_not_set",
      +                                            "starts_with",
      +                                            "ends_with",
      +                                            "in",
      +                                            "not_in",
      +                                            "greater_or_equal",
      +                                            "less_or_equal",
      +                                            "is_true",
      +                                            "is_false",
      +                                            "before",
      +                                            "after",
      +                                            "on",
      +                                            "is_past",
      +                                            "is_future",
      +                                            "within_last",
      +                                            "within_next",
      +                                            "more_than_ago",
      +                                            "more_than_from_now",
      +                                            "is_subscribed",
      +                                            "is_not_subscribed",
      +                                            "is_member",
      +                                            "is_not_member",
      +                                            "opened",
      +                                            "not_opened",
      +                                            "clicked",
      +                                            "not_clicked"
      +                                          ],
      +                                          "type": "string"
      +                                        },
      +                                        "value": {}
      +                                      },
      +                                      "required": [
      +                                        "field",
      +                                        "operator"
      +                                      ],
      +                                      "type": "object"
      +                                    },
      +                                    "minItems": 1,
      +                                    "type": "array"
      +                                  }
      +                                },
      +                                "required": [
      +                                  "match",
      +                                  "rules"
      +                                ],
      +                                "type": "object"
      +                              }
      +                            ]
      +                          },
      +                          "minItems": 1,
      +                          "type": "array"
      +                        }
      +                      },
      +                      "required": [
      +                        "match",
      +                        "rules"
      +                      ],
      +                      "type": "object"
      +                    }
      +                  ]
      +                },
      +                "minItems": 1,
      +                "type": "array"
      +              }
      +            },
      +            "required": [
      +              "match",
      +              "rules"
      +            ],
      +            "type": "object"
      +          },
      +          "date": {
      +            "description": "mode date: where the date comes from.",
      +            "properties": {
      +              "field": {
      +                "description": "contact: e.g. \"custom_fields.event_date\" or \"created_at\".",
      +                "type": "string"
      +              },
      +              "key": {
      +                "description": "global: the global value key, e.g. \"webinar_date\".",
      +                "type": "string"
      +              },
      +              "path": {
      +                "description": "payload: path in the trigger payload.",
      +                "type": "string"
      +              },
      +              "type": {
      +                "enum": [
      +                  "fixed",
      +                  "contact",
      +                  "global",
      +                  "payload"
      +                ],
      +                "type": "string"
      +              },
      +              "value": {
      +                "description": "fixed: YYYY-MM-DD or ISO 8601 date and time.",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "type"
      +            ],
      +            "type": "object"
      +          },
      +          "event": {
      +            "description": "mode event: the event to wait for.",
      +            "properties": {
      +              "audience_id": {
      +                "description": "Only for this audience (audience events).",
      +                "type": "string"
      +              },
      +              "automation_id": {
      +                "description": "Opens/clicks: only emails sent by this automation.",
      +                "type": "string"
      +              },
      +              "campaign_id": {
      +                "description": "Opens/clicks: only emails of this campaign.",
      +                "type": "string"
      +              },
      +              "direction": {
      +                "description": "Crossing direction for threshold (default up).",
      +                "enum": [
      +                  "up",
      +                  "down"
      +                ],
      +                "type": "string"
      +              },
      +              "event": {
      +                "description": "Event to listen for.",
      +                "enum": [
      +                  "contact.added_to_audience",
      +                  "contact.removed_from_audience",
      +                  "contact.created",
      +                  "contact.updated",
      +                  "contact.tag_added",
      +                  "contact.tag_removed",
      +                  "contact.score_changed",
      +                  "contact.unsubscribed",
      +                  "contact.loaded_email",
      +                  "contact.clicked_in_email",
      +                  "contact.on_event",
      +                  "form.submitted"
      +                ],
      +                "type": "string"
      +              },
      +              "event_name": {
      +                "description": "Custom event name (contact.on_event), e.g. \"c:purchase\" or \"purchase\".",
      +                "type": "string"
      +              },
      +              "field": {
      +                "description": "contact.updated: only when this field changed, e.g. \"custom_fields.purchased\".",
      +                "type": "string"
      +              },
      +              "filter": {
      +                "description": "Only when the event payload matches (e.g. properties.total greater_than 100).",
      +                "properties": {
      +                  "match": {
      +                    "description": "Whether all rules or any rule must match.",
      +                    "enum": [
      +                      "all",
      +                      "any"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  "rules": {
      +                    "items": {
      +                      "properties": {
      +                        "field": {
      +                          "description": "Payload field, dot notation for nested values (e.g. \"contact.email\").",
      +                          "minLength": 1,
      +                          "type": "string"
      +                        },
      +                        "operator": {
      +                          "enum": [
      +                            "equals",
      +                            "not_equals",
      +                            "contains",
      +                            "not_contains",
      +                            "greater_than",
      +                            "less_than",
      +                            "is_set",
      +                            "is_not_set",
      +                            "starts_with",
      +                            "ends_with",
      +                            "in",
      +                            "not_in"
      +                          ],
      +                          "type": "string"
      +                        },
      +                        "value": {
      +                          "description": "Required except for is_set and is_not_set."
      +                        }
      +                      },
      +                      "required": [
      +                        "field",
      +                        "operator"
      +                      ],
      +                      "type": "object"
      +                    },
      +                    "minItems": 1,
      +                    "type": "array"
      +                  }
      +                },
      +                "required": [
      +                  "match",
      +                  "rules"
      +                ],
      +                "type": "object"
      +              },
      +              "form_id": {
      +                "description": "Only for this form (form.submitted).",
      +                "type": "string"
      +              },
      +              "link_contains": {
      +                "description": "Clicks: only links whose URL contains this text.",
      +                "type": "string"
      +              },
      +              "tag": {
      +                "description": "Only this tag (contact.tag_added / contact.tag_removed).",
      +                "type": "string"
      +              },
      +              "threshold": {
      +                "description": "contact.score_changed: only when the score crosses this value.",
      +                "type": "number"
      +              }
      +            },
      +            "required": [
      +              "event"
      +            ],
      +            "type": "object"
      +          },
      +          "if_passed": {
      +            "description": "mode date: when the date already passed or is empty, continue (default) or take the \"passed\" branch.",
      +            "enum": [
      +              "continue",
      +              "branch"
      +            ],
      +            "type": "string"
      +          },
      +          "mode": {
      +            "enum": [
      +              "date",
      +              "event",
      +              "condition"
      +            ],
      +            "type": "string"
      +          },
      +          "offset": {
      +            "description": "mode date: e.g. 3 days before.",
      +            "properties": {
      +              "amount": {
      +                "minimum": 0,
      +                "type": "number"
      +              },
      +              "direction": {
      +                "enum": [
      +                  "before",
      +                  "after"
      +                ],
      +                "type": "string"
      +              },
      +              "unit": {
      +                "enum": [
      +                  "minutes",
      +                  "hours",
      +                  "days",
      +                  "weeks",
      +                  "months"
      +                ],
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "amount",
      +              "direction"
      +            ],
      +            "type": "object"
      +          },
      +          "time": {
      +            "description": "mode date: time of day HH:MM.",
      +            "type": "string"
      +          },
      +          "timeout": {
      +            "description": "mode event/condition: give up after this long and take the \"timeout\" branch (default and max 365 days).",
      +            "properties": {
      +              "amount": {
      +                "exclusiveMinimum": 0,
      +                "type": "number"
      +              },
      +              "unit": {
      +                "enum": [
      +                  "minutes",
      +                  "hours",
      +                  "days",
      +                  "weeks",
      +                  "months"
      +                ],
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "amount",
      +              "unit"
      +            ],
      +            "type": "object"
      +          },
      +          "timezone": {
      +            "description": "mode date: IANA timezone (default UTC).",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "mode"
      +        ],
      +        "type": "object"
      +      },
      +      "key": {
      +        "description": "Unique step key referenced by connections.",
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "action",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "key",
      +      "type",
      +      "action",
      +      "config"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Branch to \"yes\" or \"no\": contact fields, custom fields, tags, audience membership, score, engagement, dates and global values.",
      +    "properties": {
      +      "action": {
      +        "const": "condition",
      +        "type": "string"
      +      },
      +      "config": {
      +        "properties": {
      +          "filter": {
      +            "description": "Rules on the contact, combined with all/any. A rule can itself be a group { match, rules } (up to 3 levels).",
      +            "properties": {
      +              "match": {
      +                "enum": [
      +                  "all",
      +                  "any"
      +                ],
      +                "type": "string"
      +              },
      +              "rules": {
      +                "items": {
      +                  "anyOf": [
      +                    {
      +                      "properties": {
      +                        "field": {
      +                          "description": "email, first_name, last_name, unsubscribed, created_at, score, tags, subscribed, audience, engagement, custom_fields.<key>, global.<key>, payload.<path>, meta.<path>.",
      +                          "minLength": 1,
      +                          "type": "string"
      +                        },
      +                        "operator": {
      +                          "description": "tags: contains/not_contains/in/not_in/is_set/is_not_set. audience (value = aud_ ID): is_subscribed/is_not_subscribed/is_member/is_not_member. engagement (value = \"run\", \"automation\", { scope: \"step\", step }, { scope: \"any\", days }, { scope: \"campaign\", campaign_id }): opened/not_opened/clicked/not_clicked. Dates: before/after/on/is_past/is_future/within_last/within_next/more_than_ago/more_than_from_now (value = days or { amount, unit }). Numbers: greater_than/less_than/greater_or_equal/less_or_equal. Booleans: is_true/is_false.",
      +                          "enum": [
      +                            "equals",
      +                            "not_equals",
      +                            "contains",
      +                            "not_contains",
      +                            "greater_than",
      +                            "less_than",
      +                            "is_set",
      +                            "is_not_set",
      +                            "starts_with",
      +                            "ends_with",
      +                            "in",
      +                            "not_in",
      +                            "greater_or_equal",
      +                            "less_or_equal",
      +                            "is_true",
      +                            "is_false",
      +                            "before",
      +                            "after",
      +                            "on",
      +                            "is_past",
      +                            "is_future",
      +                            "within_last",
      +                            "within_next",
      +                            "more_than_ago",
      +                            "more_than_from_now",
      +                            "is_subscribed",
      +                            "is_not_subscribed",
      +                            "is_member",
      +                            "is_not_member",
      +                            "opened",
      +                            "not_opened",
      +                            "clicked",
      +                            "not_clicked"
      +                          ],
      +                          "type": "string"
      +                        },
      +                        "value": {}
      +                      },
      +                      "required": [
      +                        "field",
      +                        "operator"
      +                      ],
      +                      "type": "object"
      +                    },
      +                    {
      +                      "properties": {
      +                        "match": {
      +                          "enum": [
      +                            "all",
      +                            "any"
      +                          ],
      +                          "type": "string"
      +                        },
      +                        "rules": {
      +                          "items": {
      +                            "anyOf": [
      +                              {
      +                                "properties": {
      +                                  "field": {
      +                                    "description": "email, first_name, last_name, unsubscribed, created_at, score, tags, subscribed, audience, engagement, custom_fields.<key>, global.<key>, payload.<path>, meta.<path>.",
      +                                    "minLength": 1,
      +                                    "type": "string"
      +                                  },
      +                                  "operator": {
      +                                    "description": "tags: contains/not_contains/in/not_in/is_set/is_not_set. audience (value = aud_ ID): is_subscribed/is_not_subscribed/is_member/is_not_member. engagement (value = \"run\", \"automation\", { scope: \"step\", step }, { scope: \"any\", days }, { scope: \"campaign\", campaign_id }): opened/not_opened/clicked/not_clicked. Dates: before/after/on/is_past/is_future/within_last/within_next/more_than_ago/more_than_from_now (value = days or { amount, unit }). Numbers: greater_than/less_than/greater_or_equal/less_or_equal. Booleans: is_true/is_false.",
      +                                    "enum": [
      +                                      "equals",
      +                                      "not_equals",
      +                                      "contains",
      +                                      "not_contains",
      +                                      "greater_than",
      +                                      "less_than",
      +                                      "is_set",
      +                                      "is_not_set",
      +                                      "starts_with",
      +                                      "ends_with",
      +                                      "in",
      +                                      "not_in",
      +                                      "greater_or_equal",
      +                                      "less_or_equal",
      +                                      "is_true",
      +                                      "is_false",
      +                                      "before",
      +                                      "after",
      +                                      "on",
      +                                      "is_past",
      +                                      "is_future",
      +                                      "within_last",
      +                                      "within_next",
      +                                      "more_than_ago",
      +                                      "more_than_from_now",
      +                                      "is_subscribed",
      +                                      "is_not_subscribed",
      +                                      "is_member",
      +                                      "is_not_member",
      +                                      "opened",
      +                                      "not_opened",
      +                                      "clicked",
      +                                      "not_clicked"
      +                                    ],
      +                                    "type": "string"
      +                                  },
      +                                  "value": {}
      +                                },
      +                                "required": [
      +                                  "field",
      +                                  "operator"
      +                                ],
      +                                "type": "object"
      +                              },
      +                              {
      +                                "properties": {
      +                                  "match": {
      +                                    "enum": [
      +                                      "all",
      +                                      "any"
      +                                    ],
      +                                    "type": "string"
      +                                  },
      +                                  "rules": {
      +                                    "items": {
      +                                      "properties": {
      +                                        "field": {
      +                                          "description": "email, first_name, last_name, unsubscribed, created_at, score, tags, subscribed, audience, engagement, custom_fields.<key>, global.<key>, payload.<path>, meta.<path>.",
      +                                          "minLength": 1,
      +                                          "type": "string"
      +                                        },
      +                                        "operator": {
      +                                          "description": "tags: contains/not_contains/in/not_in/is_set/is_not_set. audience (value = aud_ ID): is_subscribed/is_not_subscribed/is_member/is_not_member. engagement (value = \"run\", \"automation\", { scope: \"step\", step }, { scope: \"any\", days }, { scope: \"campaign\", campaign_id }): opened/not_opened/clicked/not_clicked. Dates: before/after/on/is_past/is_future/within_last/within_next/more_than_ago/more_than_from_now (value = days or { amount, unit }). Numbers: greater_than/less_than/greater_or_equal/less_or_equal. Booleans: is_true/is_false.",
      +                                          "enum": [
      +                                            "equals",
      +                                            "not_equals",
      +                                            "contains",
      +                                            "not_contains",
      +                                            "greater_than",
      +                                            "less_than",
      +                                            "is_set",
      +                                            "is_not_set",
      +                                            "starts_with",
      +                                            "ends_with",
      +                                            "in",
      +                                            "not_in",
      +                                            "greater_or_equal",
      +                                            "less_or_equal",
      +                                            "is_true",
      +                                            "is_false",
      +                                            "before",
      +                                            "after",
      +                                            "on",
      +                                            "is_past",
      +                                            "is_future",
      +                                            "within_last",
      +                                            "within_next",
      +                                            "more_than_ago",
      +                                            "more_than_from_now",
      +                                            "is_subscribed",
      +                                            "is_not_subscribed",
      +                                            "is_member",
      +                                            "is_not_member",
      +                                            "opened",
      +                                            "not_opened",
      +                                            "clicked",
      +                                            "not_clicked"
      +                                          ],
      +                                          "type": "string"
      +                                        },
      +                                        "value": {}
      +                                      },
      +                                      "required": [
      +                                        "field",
      +                                        "operator"
      +                                      ],
      +                                      "type": "object"
      +                                    },
      +                                    "minItems": 1,
      +                                    "type": "array"
      +                                  }
      +                                },
      +                                "required": [
      +                                  "match",
      +                                  "rules"
      +                                ],
      +                                "type": "object"
      +                              }
      +                            ]
      +                          },
      +                          "minItems": 1,
      +                          "type": "array"
      +                        }
      +                      },
      +                      "required": [
      +                        "match",
      +                        "rules"
      +                      ],
      +                      "type": "object"
      +                    }
      +                  ]
      +                },
      +                "minItems": 1,
      +                "type": "array"
      +              }
      +            },
      +            "required": [
      +              "match",
      +              "rules"
      +            ],
      +            "type": "object"
      +          }
      +        },
      +        "required": [
      +          "filter"
      +        ],
      +        "type": "object"
      +      },
      +      "key": {
      +        "description": "Unique step key referenced by connections.",
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "action",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "key",
      +      "type",
      +      "action",
      +      "config"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Goal: as soon as the contact meets it, the run jumps here from wherever it is and continues after it.",
      +    "properties": {
      +      "action": {
      +        "const": "goal",
      +        "type": "string"
      +      },
      +      "config": {
      +        "properties": {
      +          "condition": {
      +            "description": "Reached when the contact matches (checked on every contact change).",
      +            "properties": {
      +              "match": {
      +                "enum": [
      +                  "all",
      +                  "any"
      +                ],
      +                "type": "string"
      +              },
      +              "rules": {
      +                "items": {
      +                  "anyOf": [
      +                    {
      +                      "properties": {
      +                        "field": {
      +                          "description": "email, first_name, last_name, unsubscribed, created_at, score, tags, subscribed, audience, engagement, custom_fields.<key>, global.<key>, payload.<path>, meta.<path>.",
      +                          "minLength": 1,
      +                          "type": "string"
      +                        },
      +                        "operator": {
      +                          "description": "tags: contains/not_contains/in/not_in/is_set/is_not_set. audience (value = aud_ ID): is_subscribed/is_not_subscribed/is_member/is_not_member. engagement (value = \"run\", \"automation\", { scope: \"step\", step }, { scope: \"any\", days }, { scope: \"campaign\", campaign_id }): opened/not_opened/clicked/not_clicked. Dates: before/after/on/is_past/is_future/within_last/within_next/more_than_ago/more_than_from_now (value = days or { amount, unit }). Numbers: greater_than/less_than/greater_or_equal/less_or_equal. Booleans: is_true/is_false.",
      +                          "enum": [
      +                            "equals",
      +                            "not_equals",
      +                            "contains",
      +                            "not_contains",
      +                            "greater_than",
      +                            "less_than",
      +                            "is_set",
      +                            "is_not_set",
      +                            "starts_with",
      +                            "ends_with",
      +                            "in",
      +                            "not_in",
      +                            "greater_or_equal",
      +                            "less_or_equal",
      +                            "is_true",
      +                            "is_false",
      +                            "before",
      +                            "after",
      +                            "on",
      +                            "is_past",
      +                            "is_future",
      +                            "within_last",
      +                            "within_next",
      +                            "more_than_ago",
      +                            "more_than_from_now",
      +                            "is_subscribed",
      +                            "is_not_subscribed",
      +                            "is_member",
      +                            "is_not_member",
      +                            "opened",
      +                            "not_opened",
      +                            "clicked",
      +                            "not_clicked"
      +                          ],
      +                          "type": "string"
      +                        },
      +                        "value": {}
      +                      },
      +                      "required": [
      +                        "field",
      +                        "operator"
      +                      ],
      +                      "type": "object"
      +                    },
      +                    {
      +                      "properties": {
      +                        "match": {
      +                          "enum": [
      +                            "all",
      +                            "any"
      +                          ],
      +                          "type": "string"
      +                        },
      +                        "rules": {
      +                          "items": {
      +                            "anyOf": [
      +                              {
      +                                "properties": {
      +                                  "field": {
      +                                    "description": "email, first_name, last_name, unsubscribed, created_at, score, tags, subscribed, audience, engagement, custom_fields.<key>, global.<key>, payload.<path>, meta.<path>.",
      +                                    "minLength": 1,
      +                                    "type": "string"
      +                                  },
      +                                  "operator": {
      +                                    "description": "tags: contains/not_contains/in/not_in/is_set/is_not_set. audience (value = aud_ ID): is_subscribed/is_not_subscribed/is_member/is_not_member. engagement (value = \"run\", \"automation\", { scope: \"step\", step }, { scope: \"any\", days }, { scope: \"campaign\", campaign_id }): opened/not_opened/clicked/not_clicked. Dates: before/after/on/is_past/is_future/within_last/within_next/more_than_ago/more_than_from_now (value = days or { amount, unit }). Numbers: greater_than/less_than/greater_or_equal/less_or_equal. Booleans: is_true/is_false.",
      +                                    "enum": [
      +                                      "equals",
      +                                      "not_equals",
      +                                      "contains",
      +                                      "not_contains",
      +                                      "greater_than",
      +                                      "less_than",
      +                                      "is_set",
      +                                      "is_not_set",
      +                                      "starts_with",
      +                                      "ends_with",
      +                                      "in",
      +                                      "not_in",
      +                                      "greater_or_equal",
      +                                      "less_or_equal",
      +                                      "is_true",
      +                                      "is_false",
      +                                      "before",
      +                                      "after",
      +                                      "on",
      +                                      "is_past",
      +                                      "is_future",
      +                                      "within_last",
      +                                      "within_next",
      +                                      "more_than_ago",
      +                                      "more_than_from_now",
      +                                      "is_subscribed",
      +                                      "is_not_subscribed",
      +                                      "is_member",
      +                                      "is_not_member",
      +                                      "opened",
      +                                      "not_opened",
      +                                      "clicked",
      +                                      "not_clicked"
      +                                    ],
      +                                    "type": "string"
      +                                  },
      +                                  "value": {}
      +                                },
      +                                "required": [
      +                                  "field",
      +                                  "operator"
      +                                ],
      +                                "type": "object"
      +                              },
      +                              {
      +                                "properties": {
      +                                  "match": {
      +                                    "enum": [
      +                                      "all",
      +                                      "any"
      +                                    ],
      +                                    "type": "string"
      +                                  },
      +                                  "rules": {
      +                                    "items": {
      +                                      "properties": {
      +                                        "field": {
      +                                          "description": "email, first_name, last_name, unsubscribed, created_at, score, tags, subscribed, audience, engagement, custom_fields.<key>, global.<key>, payload.<path>, meta.<path>.",
      +                                          "minLength": 1,
      +                                          "type": "string"
      +                                        },
      +                                        "operator": {
      +                                          "description": "tags: contains/not_contains/in/not_in/is_set/is_not_set. audience (value = aud_ ID): is_subscribed/is_not_subscribed/is_member/is_not_member. engagement (value = \"run\", \"automation\", { scope: \"step\", step }, { scope: \"any\", days }, { scope: \"campaign\", campaign_id }): opened/not_opened/clicked/not_clicked. Dates: before/after/on/is_past/is_future/within_last/within_next/more_than_ago/more_than_from_now (value = days or { amount, unit }). Numbers: greater_than/less_than/greater_or_equal/less_or_equal. Booleans: is_true/is_false.",
      +                                          "enum": [
      +                                            "equals",
      +                                            "not_equals",
      +                                            "contains",
      +                                            "not_contains",
      +                                            "greater_than",
      +                                            "less_than",
      +                                            "is_set",
      +                                            "is_not_set",
      +                                            "starts_with",
      +                                            "ends_with",
      +                                            "in",
      +                                            "not_in",
      +                                            "greater_or_equal",
      +                                            "less_or_equal",
      +                                            "is_true",
      +                                            "is_false",
      +                                            "before",
      +                                            "after",
      +                                            "on",
      +                                            "is_past",
      +                                            "is_future",
      +                                            "within_last",
      +                                            "within_next",
      +                                            "more_than_ago",
      +                                            "more_than_from_now",
      +                                            "is_subscribed",
      +                                            "is_not_subscribed",
      +                                            "is_member",
      +                                            "is_not_member",
      +                                            "opened",
      +                                            "not_opened",
      +                                            "clicked",
      +                                            "not_clicked"
      +                                          ],
      +                                          "type": "string"
      +                                        },
      +                                        "value": {}
      +                                      },
      +                                      "required": [
      +                                        "field",
      +                                        "operator"
      +                                      ],
      +                                      "type": "object"
      +                                    },
      +                                    "minItems": 1,
      +                                    "type": "array"
      +                                  }
      +                                },
      +                                "required": [
      +                                  "match",
      +                                  "rules"
      +                                ],
      +                                "type": "object"
      +                              }
      +                            ]
      +                          },
      +                          "minItems": 1,
      +                          "type": "array"
      +                        }
      +                      },
      +                      "required": [
      +                        "match",
      +                        "rules"
      +                      ],
      +                      "type": "object"
      +                    }
      +                  ]
      +                },
      +                "minItems": 1,
      +                "type": "array"
      +              }
      +            },
      +            "required": [
      +              "match",
      +              "rules"
      +            ],
      +            "type": "object"
      +          },
      +          "event": {
      +            "description": "Reached when this event happens for the contact.",
      +            "properties": {
      +              "audience_id": {
      +                "description": "Only for this audience (audience events).",
      +                "type": "string"
      +              },
      +              "automation_id": {
      +                "description": "Opens/clicks: only emails sent by this automation.",
      +                "type": "string"
      +              },
      +              "campaign_id": {
      +                "description": "Opens/clicks: only emails of this campaign.",
      +                "type": "string"
      +              },
      +              "direction": {
      +                "description": "Crossing direction for threshold (default up).",
      +                "enum": [
      +                  "up",
      +                  "down"
      +                ],
      +                "type": "string"
      +              },
      +              "event": {
      +                "description": "Event to listen for.",
      +                "enum": [
      +                  "contact.added_to_audience",
      +                  "contact.removed_from_audience",
      +                  "contact.created",
      +                  "contact.updated",
      +                  "contact.tag_added",
      +                  "contact.tag_removed",
      +                  "contact.score_changed",
      +                  "contact.unsubscribed",
      +                  "contact.loaded_email",
      +                  "contact.clicked_in_email",
      +                  "contact.on_event",
      +                  "form.submitted"
      +                ],
      +                "type": "string"
      +              },
      +              "event_name": {
      +                "description": "Custom event name (contact.on_event), e.g. \"c:purchase\" or \"purchase\".",
      +                "type": "string"
      +              },
      +              "field": {
      +                "description": "contact.updated: only when this field changed, e.g. \"custom_fields.purchased\".",
      +                "type": "string"
      +              },
      +              "filter": {
      +                "description": "Only when the event payload matches (e.g. properties.total greater_than 100).",
      +                "properties": {
      +                  "match": {
      +                    "description": "Whether all rules or any rule must match.",
      +                    "enum": [
      +                      "all",
      +                      "any"
      +                    ],
      +                    "type": "string"
      +                  },
      +                  "rules": {
      +                    "items": {
      +                      "properties": {
      +                        "field": {
      +                          "description": "Payload field, dot notation for nested values (e.g. \"contact.email\").",
      +                          "minLength": 1,
      +                          "type": "string"
      +                        },
      +                        "operator": {
      +                          "enum": [
      +                            "equals",
      +                            "not_equals",
      +                            "contains",
      +                            "not_contains",
      +                            "greater_than",
      +                            "less_than",
      +                            "is_set",
      +                            "is_not_set",
      +                            "starts_with",
      +                            "ends_with",
      +                            "in",
      +                            "not_in"
      +                          ],
      +                          "type": "string"
      +                        },
      +                        "value": {
      +                          "description": "Required except for is_set and is_not_set."
      +                        }
      +                      },
      +                      "required": [
      +                        "field",
      +                        "operator"
      +                      ],
      +                      "type": "object"
      +                    },
      +                    "minItems": 1,
      +                    "type": "array"
      +                  }
      +                },
      +                "required": [
      +                  "match",
      +                  "rules"
      +                ],
      +                "type": "object"
      +              },
      +              "form_id": {
      +                "description": "Only for this form (form.submitted).",
      +                "type": "string"
      +              },
      +              "link_contains": {
      +                "description": "Clicks: only links whose URL contains this text.",
      +                "type": "string"
      +              },
      +              "tag": {
      +                "description": "Only this tag (contact.tag_added / contact.tag_removed).",
      +                "type": "string"
      +              },
      +              "threshold": {
      +                "description": "contact.score_changed: only when the score crosses this value.",
      +                "type": "number"
      +              }
      +            },
      +            "required": [
      +              "event"
      +            ],
      +            "type": "object"
      +          },
      +          "if_not_met": {
      +            "description": "When a run gets to the goal before meeting it: continue (default), wait until it is met, or end the run.",
      +            "enum": [
      +              "continue",
      +              "wait",
      +              "end"
      +            ],
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "key": {
      +        "description": "Unique step key referenced by connections.",
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "action",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "key",
      +      "type",
      +      "action",
      +      "config"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Pick a branch at random by weight.",
      +    "properties": {
      +      "action": {
      +        "const": "experiment",
      +        "type": "string"
      +      },
      +      "config": {
      +        "properties": {
      +          "control": {
      +            "properties": {
      +              "key": {
      +                "minLength": 1,
      +                "type": "string"
      +              },
      +              "weight": {
      +                "minimum": 0,
      +                "type": "number"
      +              }
      +            },
      +            "required": [
      +              "key",
      +              "weight"
      +            ],
      +            "type": "object"
      +          },
      +          "variants": {
      +            "items": {
      +              "properties": {
      +                "key": {
      +                  "minLength": 1,
      +                  "type": "string"
      +                },
      +                "weight": {
      +                  "minimum": 0,
      +                  "type": "number"
      +                }
      +              },
      +              "required": [
      +                "key",
      +                "weight"
      +              ],
      +              "type": "object"
      +            },
      +            "minItems": 1,
      +            "type": "array"
      +          }
      +        },
      +        "required": [
      +          "variants"
      +        ],
      +        "type": "object"
      +      },
      +      "key": {
      +        "description": "Unique step key referenced by connections.",
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "action",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "key",
      +      "type",
      +      "action",
      +      "config"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Start a run of another running automation for the same contact.",
      +    "properties": {
      +      "action": {
      +        "const": "run_automation",
      +        "type": "string"
      +      },
      +      "config": {
      +        "properties": {
      +          "automation_id": {
      +            "minLength": 1,
      +            "type": "string"
      +          },
      +          "exit_current": {
      +            "description": "Move the contact: end this run after starting the other automation.",
      +            "type": "boolean"
      +          }
      +        },
      +        "required": [
      +          "automation_id"
      +        ],
      +        "type": "object"
      +      },
      +      "key": {
      +        "description": "Unique step key referenced by connections.",
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "action",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "key",
      +      "type",
      +      "action",
      +      "config"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Stop the contact's runs in other automations, like remove-contact-from-automation.",
      +    "properties": {
      +      "action": {
      +        "const": "exit_automation",
      +        "type": "string"
      +      },
      +      "config": {
      +        "properties": {
      +          "all": {
      +            "description": "Every other automation.",
      +            "type": "boolean"
      +          },
      +          "automation_ids": {
      +            "items": {
      +              "minLength": 1,
      +              "type": "string"
      +            },
      +            "type": "array"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "key": {
      +        "description": "Unique step key referenced by connections.",
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "action",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "key",
      +      "type",
      +      "action",
      +      "config"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "End the run for this contact (all branches).",
      +    "properties": {
      +      "action": {
      +        "const": "end_run",
      +        "type": "string"
      +      },
      +      "config": {
      +        "properties": {},
      +        "type": "object"
      +      },
      +      "key": {
      +        "description": "Unique step key referenced by connections.",
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "action",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "key",
      +      "type",
      +      "action"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "End this branch.",
      +    "properties": {
      +      "action": {
      +        "const": "end",
      +        "type": "string"
      +      },
      +      "config": {
      +        "properties": {},
      +        "type": "object"
      +      },
      +      "key": {
      +        "description": "Unique step key referenced by connections.",
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "action",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "key",
      +      "type",
      +      "action"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. First observed

TDQS

A3.8/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare destructiveHint=true and idempotentHint=false, so the safety profile is covered. The description still adds real value beyond them by disclosing the replace-the-whole-graph semantics and that previous steps can't be restored, which is the key behavioral risk an agent must know before passing steps or connections.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tight sentences, front-loaded with the field list, followed by the destructive replace warning. No filler and no repetition of annotation-provided information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutation tool with no output schema, the description covers the essential facts: what can change, that steps/connections are all-or-nothing, and that the old graph is unrecoverable. Only minor gaps remain, such as whether omitted name/settings leave existing values untouched.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is low (17%), so the description must compensate. It does name the five mutable top-level parameters and clarifies the replace-versus-patch distinction for steps/connections, but it adds no guidance on the 'id' required parameter or the shape of settings beyond what the schema already carries. This is adequate but not deep.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb ('Change') plus the concrete resource ('an automation') and enumerates the mutable fields (name, description, settings, steps, connections). It differentiates itself from create-automation by pointing to that sibling for step types, so an agent can tell the two apart without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It implies this is the tool for modifying an existing automation and references create-automation as the source of valid step types, but never states explicit when-to-use/when-not-to-use conditions or prerequisites (e.g. permissions, whether the automation must be stopped first).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.