Automations
Email sequences that send themselves: build a flow on a canvas, start it from a list, an event in your app, a contact date or by hand.
An automation is a sequence that sends itself: a welcome series, trial reminders, a nudge for people who didn't open. You build it once on a canvas, turn it on, and each contact moves through it on their own schedule.
Build a welcome series for the Newsletter list: a welcome email, wait 2 days, then a tips email to people who opened it and a resend to people who didn't.
When someone starts a trial in my app, tell Maillayer: email [email protected], event trial_started, plan pro.
Which automations are on, and how many people are in each?
Build automations on the canvas, or have your agent design them. Your app starts them with events.
Build the flow#
Click New automation under Automations. The canvas opens with a small welcome sequence to start from. Drag to move around, scroll or pinch to zoom, and click any card to edit it in the side panel. Hover a line and click + to add a step there. Everything saves as you go.
What starts it
| Trigger | Who starts the flow |
|---|---|
| Added to a list | Anyone added to the list after you turn it on, from the dashboard, a CSV, the API, MCP or an integration. When you turn it on you can include the people already on it. |
| An event happens | Anyone your app sends the event for, like trial_started. See events. |
| Added by hand | People you add from Contacts or from the flow, or your app adds with the API. |
| A contact date | Days before or after a date stored on the contact, like trial_ends_at, at an hour you pick (UTC). |
Steps
- Send email: subject, preview text and body in the same editor as campaigns, or start from a template. Use
{{ first_name }}and any contact property. Each email gets your postal address and an unsubscribe link, like campaigns. - Wait: minutes, hours or days.
- If opened or clicked: splits into Yes and No by whether they opened or clicked an earlier email in the flow. Put a wait before it, so they have time to open.
- If condition: splits by a list, a contact property, their country or status.
- Add to list and Remove from list.
- Exit: ends that path. The end of every path also ends it.
Under Settings (the slider icon), set who it's from and whether someone can go through it more than once. Send yourself a test of any email from its panel.
Turn it on#
- Fix anything the canvas marks in amber: a missing subject, list or sender.
- Click Turn on. The From address needs a verified domain, and your account has to be approved.
- For a list trigger, choose whether the people already on the list go through it too.
You can edit the flow while it runs. People already in it carry on from where they are; anyone on a step you delete leaves the flow. Pause stops everyone where they are, and Resume picks up again, including people added to a list while it was paused.
Let your agent build it#
With the MCP server connected, an AI agent can design the whole flow: create_automation saves it as a draft with its trigger, emails, waits and branches, and returns anything still missing. Open it in the dashboard to see it on the canvas. The agent turns it on with activate_automation once you agree, and can change it later with get_automation and update_automation. The same is in the API: see Create an automation.
Events from your app#
Send an event when something happens in your product. If the contact is new, it's created. Every automation that's on and listening for that event starts for them. Event names are letters, numbers, dots, dashes and underscores, and match whatever the case.
The event's properties are available in its emails: send "properties": { "plan": "pro" } and write Your {{ event.plan }} trial has started. With an AI agent, use the track_event tool. Full details are in the API reference.
Add people by hand#
- From Contacts: tick people (or select all that match a filter) and click Add to automation.
- From the flow: click the trigger card and use Add people now to start it for a whole list.
- From your app or agent:
POST /api/v1/automations/:id/enrollor theenroll_in_automationtool.
This works for any automation that's on, whatever its trigger. Anyone already in it, or who went through it before (unless re-entry is on), is skipped.
See how it's doing#
Once it's on, each card shows its numbers: how many started and are in it now, emails sent with open and click rates, the Yes and No split of each branch, and how many are waiting. Click in it in the top bar to see everyone: who is in it and what's next for them, who finished and who left and why. You can remove someone from there; their emails still waiting are cancelled.
Emails and limits#
Each automation email uses one email from your plan when it's queued, and comes back if it can't be sent. If your plan runs out, people wait on that email and it goes out once you have emails again. Automation emails go out at the same steady pace as campaigns, but don't count toward the daily campaign limit, so a big campaign never holds up a welcome email.