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"
+ }
+]