Skip to Content
sesameSend

Automations

Event-driven sequences of steps that send mail and update contacts.

An automation is a graph of steps joined by connections. A custom event starts a run for a contact.

Events

Create an event with POST /events (names cannot start with resend:). Fire it for a contact with POST /events/send. Automations whose trigger matches the event start a run.

Steps

TypeDoes
triggerStarts the automation. It cannot have incoming connections.
send_emailSends an email, usually from a template
delayWaits for a duration
wait_for_eventWaits for another event or a timeout
conditionBranches on a rule
contact_updateEdits the contact
contact_deleteDeletes the contact
add_to_segmentAdds the contact to a segment

Connections are default, condition_met, condition_not_met, timeout and event_received. A condition step needs exactly one condition_met and one condition_not_met connection. A wait_for_event step can use default, event_received and timeout.

Manage

  • Create with POST /automations. Enabling checks that referenced segments exist.
  • POST /automations/{id}/stop stops it. POST .../duplicate copies it.
  • Runs: GET /automations/{id}/runs and GET /automations/{id}/runs/{run_id}. Run status is running, completed, failed or cancelled; an individual step can also be skipped.

Runs advance from /internal/automations/run, so they need your background jobs. An import from Resend fires no automations.

On this page