---
title: "Automation triggers"
description: "What can start an automation: a custom event, a contact change, a segment or topic, email activity or a manual enrollment, and who can enter again by default."
url: https://www.unitpost.com/guides/automations-triggers
section: Guides
updated: 2026-11-29
---
# Automation triggers

## Automation triggers

> What can start an automation: a custom event, a contact change, a segment or topic, email activity or a manual enrollment, and who can enter again by default.

Every automation has exactly one trigger. A run starts for the contact the event is about. Publishing doesn't enroll people who already match: only events after it goes live, or a manual enroll, start runs. A segment or topic automation can also start for the people already in it when you publish with `backfill_count` (see Test and publish an automation (/guides/automations-testing)).

| Trigger | Starts when | Who can enter again (default) |
| --- | --- | --- |
| Contact created `trigger.contact.created` | Starts when a new contact is added to the workspace, including one added automatically because a marketing email was sent to a new address. Imports and migrations don't start it. | Only once ever |
| Contact updated `trigger.contact.updated` | Starts when a contact's fields change (optionally only specific fields). A save that changes nothing starts nothing. `unsubscribed` changes from every cause: the person's own unsubscribe (link, one-click, preference page), a bounce, a complaint, a teammate, the API or an automation step; the event's `source` says which (user, bounce, complaint, manual, api, automation). Imports and migrations don't start it. | Every time |
| Joined segment `trigger.segment.joined` | Starts when a contact is added to a static segment (by hand, the API or an automation step). Imports and migrations don't start it. A rule-based segment has no join moment: start from Contact updated with a filter instead. | Once every 30 days |
| Left segment `trigger.segment.left` | Starts when a contact is removed from a static segment. A rule-based segment has no leave moment: start from Contact updated with a filter instead. | Once every 30 days |
| Subscribed to topic `trigger.topic.subscribed` | Starts when a contact subscribes to the topic. Imports and migrations don't start it. | Once every 30 days |
| Unsubscribed from topic `trigger.topic.unsubscribed` | Starts when a contact unsubscribes from the topic, or unsubscribes from everything while on it (the event's `scope` is "all"; a bounce or complaint opt-out does not count). | Once every 30 days |
| Email activity `trigger.email.event` | Starts on email events (opened, clicked, bounced, …), optionally scoped to a campaign or template. For an email received, a sender who isn't one of your contacts starts a run with no contact: a send to the contact skips for them (an email to a fixed address still goes). | Every time |
| Text received `trigger.sms.received` | Starts when someone texts one of your numbers, optionally only for a keyword (JOIN) or text that contains a word. STOP and HELP texts never start a run. | Every time |
| Custom event `trigger.event.custom` | Starts when your backend sends a named event via POST /v1/events (e.g. cart.updated). By default one run per person at a time: an event for someone already in it starts nothing. A journey whose Wait for event, goal or exit rule matches the run's own event data ({{event.data.<key>}}), or that waits for a date in it, starts a run for each event instead, up to 10 at once per person. Set maxConcurrentRunsPerSubject to choose. | Every time |
| Manual enrollment `trigger.automation.manual` | Starts only when explicitly enrolled via the UI, API, or Unit AI. | Every time |

Set `reEntry` in the policy only to change that: `never`, `always`, or `once_per_interval` with a `reEntryInterval` such as `P7D`. Whatever the rule: a contact has one live run of an automation at a time by default, so an event for someone already in it starts nothing. On a custom-event trigger whose Wait for event, goal or exit rule matches the run's own event data (`{{event.data.<key>}}`), or that waits for a date in it, each event starts its own run instead, up to 10 at once (`maxConcurrentRunsPerSubject`, 1 to 10, sets it; readiness asks for it on a custom event, `runs_per_person`). Past that, a trigger that fires again while the person is mid-journey starts nothing; the automation's stats count it as held back by limits.

### Custom events

Your backend starts these with `POST /v1/events`. Names, payloads and the contact link are on Automation events and webhooks (/guides/automations-events).

By default a person is in a journey once at a time. Example: an `order.completed` journey waits 7 days, then asks for a review. A customer who orders twice that week gets one ask: the second order starts nothing while they wait (counted under Stats as held back by limits). For a run per order, set Runs per person at once (`maxConcurrentRunsPerSubject`, up to 10) and match a Wait for event or the goal to the run's own order (`{{event.data.order_id}}`), so one run doesn't move another. A journey that already matches its waits, goal or exit rule to the event's own data, or waits for a date in it (an appointment reminder), starts a run per event by default. Until you set it, the readiness check asks which you want (`runs_per_person`).

Coming from Resend: there, every event that triggers an automation starts its own run, and you cancel a duplicate by hand. Here a custom-event journey runs once per person at a time by default, unless it matches the event's own data as above. For a run per event, set `maxConcurrentRunsPerSubject` (up to 10).

### Only some events

All triggers except Manual enrollment take an optional `filter`: `{ match: "all" | "any", conditions: [{ field, operator, value }] }` over the contact and the event (data paths (/guides/automations-data)). Operators: `eq`, `neq`, `contains`, `not_contains`, `starts_with`, `ends_with`, `gt`, `gte`, `lt`, `lte`, `is_set`, `is_not_set`, `within_last_days`, `more_than_days_ago`, `within_next_days`, `before_now`, `after_now`.

## Related

- [Automation blocks](https://www.unitpost.com/guides/automations-blocks): Every automation block with its settings, the paths out of it and the data it leaves for later blocks: sends, waits, branches, updates and webhooks.
- [Automation data and variables](https://www.unitpost.com/guides/automations-data): The data paths conditions and template variables read in an automation: the contact, the trigger event, earlier blocks' outputs and the run itself.
- [Automation safety and limits](https://www.unitpost.com/guides/automations-safety): The guards every automation runs with: loop guards, frequency caps, re-entry, wait and run limits, live-run ceilings and the permissions each step needs.
