An event from your app or a schedule starts a run. From there it sends, waits and decides by itself, and every person keeps their own place.
Welcome to Acme
Sent
14 kinds of step
Emails, waits, conditions and changes to a contact.
200 steps a flow
Paths split and meet again.
365 days
The longest one step can wait.
Every minute
Runs that are due move on, 50 at a time.
Send an event with the address of one person. Every active automation that listens for it starts a run for them.
Event
Schedule
Date
By hand
The console has 10 starters. Our tests create and publish every one, so each is a flow the API accepts.
Each time a person enters, a run is made for them. It keeps the data that started it and what every step did.
Waiting
At a wait, with the time it goes on.
Completed
Reached the end of its path.
Left early
An exit step, an exit event, or the person unsubscribed.
Failed
A step failed and says why. Fix it, then try the run again from that step.
You always edit a copy. Publishing makes it the next version, and a run finishes on the version it entered on.
Once
A step that sends is done once, even when the schedule runs twice.
Holds itself
When a sender, a template or an audience breaks, it pauses and keeps everyone in place.
Test first
A test walks the copy you edit for one address, with [Test] before each subject.
Respects a no
By default an unsubscribed contact does not enter, and a run ends when its contact unsubscribes.
import { OpenSend } from '@open-send/opensend' const opensend = new OpenSend() export async function welcomeByPlan(from: string) { const flow = await opensend.automations.create({ name: 'Welcome by plan', trigger: { kind: 'event', event: 'plan.chosen' }, steps: [ { id: 'plan', kind: 'branch', branches: [ { name: 'Pro', conditions: [{ kind: 'data', field: 'plan', operator: 'equals', value: 'pro' }], to: 'pro', }, { name: 'Team', conditions: [{ kind: 'data', field: 'plan', operator: 'equals', value: 'team' }], to: 'team', }, ], no: 'free', }, { id: 'pro', kind: 'send_email', from, subject: 'Welcome to Pro', text: 'Pro is on.', next: null }, { id: 'team', kind: 'send_email', from, subject: 'Welcome to Team', text: 'Your team has its space.', next: null }, { id: 'free', kind: 'send_email', from, subject: 'Welcome', text: 'You are on the free plan.', next: null }, ], }) await opensend.automations.publish(flow.id) console.log(flow.steps.length) return flow.id}Declared once: a REST endpoint, an SDK call, a CLI command and, wherever a program may use it, an MCP tool.
Short answers about automations.
An event you send from your app, a built-in event such as a contact joining an audience, a schedule, a date on each contact, or your own call for one person.
No. You edit a copy, and it runs only after you publish it. A person finishes on the version they entered on.
No. Each send of a run carries a key of its own, so a step that is done twice sends once.
That run stops as failed and says why, such as a value that was missing. Once it is fixed you try the run again, and it goes on from the step that failed.
Up to 365 days. A step can also wait for a time of day, for a date, or for an event about the person, with a way on when the event does not arrive.
A step that asks a model, loops, and a limit on how often one person is written to. The email of a step is written as HTML or taken from a template.
Create a key and send, or clone the repository and run it yourself.