Automations

Email people step by step after they sign up, buy, change plan, miss a payment, start a course or go quiet, with waits, tags, access, notes to the admins and if/otherwise branches; keep segments of people for newsletter sends and automations; and get a weekly report, a note whenever someone publishes and a weekly site audit, by email, in Slack or at a webhook.

Updated · 15 min read

Admin → Automations has three tabs. For people holds automations that take each person through steps of your own: emails, waits, tags, access, notes to the admins and branches that take people one way or another, started by something they did. Segments holds groups of people by rules (their plan, tags and purchases), for a newsletter post or an automation to use. Reports and notices holds ready-made recipes that tell your team how the site is doing. Everything is off until an admin turns it on. Only admins can change automations; viewers can look, with people's names and addresses hidden.

Automations

Automations for people

An automation is a trigger, optional conditions and a list of steps. When someone sets off the trigger and meets the conditions, they start at the first step and go down the list, one step at a time.

New automation starts a blank one. Starters are ready-made ones; Use this makes a draft from one for you to read and change before turning it on:

StarterTriggerWhat it does
Welcome to ProStarts a paid plan: ProA welcome email, then tips 3 days later. Anyone no longer on Pro leaves.
Welcome to TeamStarts a paid plan: TeamA welcome email and a note to the admins, then a reminder to invite the team 5 days later.
Win back a cancelled customerCancels a paid planA note to the admins, then two emails a week apart. Anyone who comes back to a paid plan leaves. It repeats, so a second cancellation starts them again.
Nudge an unfinished courseEnrols in a courseTwo nudges a week apart while the course is unfinished. Finishing it takes them out.
Recover a failed paymentA payment failsAn email asking them to update their card, then three days later, if the payment is still overdue, a second email and a note to the admins.

Triggers

TriggerWho starts
Signs upEach new account, once its address is confirmed (straight away for accounts made through Google and the like). Confirming a changed address doesn't start it again.
Subscribes to the newsletterEach address that confirms its subscription
Buys from the storeEach paid store order, for any product or one you pick
Starts a paid planThe owners of the organisation, for any paid plan or one you pick. A move from Pro to Team starts automations for Team only.
Cancels a paid planThe owners of the organisation, for any plan or one you pick
Changes planThe owners of the organisation, when it moves from one plan to another: from any plan or one you pick, to any plan or one you pick. Free counts, so Free to Pro is a change, and so is Team to Free. A change of seats alone isn't.
A payment failsThe owners of the organisation, each time Stripe can't take a payment, retries included. Someone already in the automation isn't started again.
Enrols in a course, Finishes a courseEach student, for any course or one you pick
Attends an eventEveryone who said they were going, when the event ends
Gets a tagEach person a tag step tags
Goes quietEach member whose last visit or sign-in was the number of days you pick ago (looked for once an hour)

Only what happens after you turn an automation on starts anyone, and only people whose address is confirmed: an account made before it was on doesn't start when it's confirmed later. Each person goes through an automation once, unless you tick Let someone go through it again each time it's set off; even then, nobody is in the same automation twice at once.

Conditions

Conditions are checked when someone would start and again before every step, so someone who stops matching leaves, with why. You can ask for a plan (Free, Pro or Team), a tag they have or don't have, a newsletter subscription, something they bought or haven't bought (a product or anything, ever or in the last so many days), a segment they're in, a payment that's overdue (Stripe couldn't take it and is still trying, or gave up) on the organisation that started them, or on one they own, or a course they haven't finished (the one that started them, or one you pick).

Steps

  • Wait a number of hours or days. A wait counts from when they reached it.
  • Send an email to them, with a subject, a preview line and words in Markdown. {{first_name}} is their first name, or "there". Only its letters go in (and dashes and apostrophes), so a name can't add a link or formatting to your email. Send me a test sends the saved email to you, marked as a test.
  • Add or remove a tag. Tags are short words joined by dashes, like vip. Adding a tag starts the automations that wait for it. When tags have started three automations in a row (one tags, which starts another that tags, and so on), the next tag still goes on but starts nothing, and the step says so: two automations that tag each other can't go round for ever.
  • Give or take access: give months of a paid plan, or take back what an automation gave. It goes to their organisation (the one that set it off, or the first they own) as a prepaid term, like a store purchase that includes a plan. It never changes a Stripe subscription. Someone with no organisation of their own passes the step.
  • Tell the admins: an email to every admin, naming who and which automation, with a link to it.
  • If, otherwise: a condition, then two short lists of steps. If yes is for people it's true of, Otherwise for everyone else, and either can be empty. After their path, everyone carries on with the step after the branch. A branch can ask anything a condition can, or whether they opened an email earlier in the same automation. It decides once: someone picked up again after a restart takes the same path. Each path holds up to 10 steps, a path can't hold another branch, and an automation has 40 steps at most, paths included.

Opens are counted when someone's mail app loads a small invisible picture in the email. Security scanners that fetch it as the email arrives don't count. Some mail apps load every picture to protect privacy, and some never do, so treat an open as a hint, not proof: a branch on "opened" is good for choosing which email comes next, not for taking anything away.

Steps run within a minute of being due, and a restart or a second server never sends one twice. If a server stops while an email is with the provider, it's sent again only when the provider can tell it's the same email (Resend can); with SMTP it's passed instead, saying it may have gone.

Emails

Emails go out through the newsletter's sending provider, from the newsletter's sender, with your postal address and a one-click unsubscribe. They aren't sent to anyone who bounced or complained, unsubscribed from the newsletter, or unsubscribed from automation emails. The link in each email opens a page that stops automation emails to that address, and keeps working after the automation is deleted; the newsletter is separate. When the newsletter can't send (no provider set up, or sending paused), each email is passed with the reason and people carry on through their steps. An email the provider was too busy for is tried again, three times in all. Nobody gets more than five automation emails in a day, from all your automations together: the sixth waits until the first is a day old, then goes.

Turning it on and off

Turn on needs the automation saved and complete: at least one step that does something, and every email with a subject and words. A change to one that's on has to be complete in the same way, and takes effect at once for the people it touches: anyone on a removed step moves to the next one; anyone on a step you moved into a branch, to its other path or out of it goes back to the branch, which keeps the path they took and skips what they've done; and anyone on a wait you made longer or shorter is due that long after they reached it. Everyone else keeps their place and their time, so saving doesn't send a rush of emails. Turn off asks what happens to the people in it now: let them finish their steps, or take everyone out now. Either way, nobody new starts. An automation that's on can't be deleted; turn it off first.

What you see

The list shows each automation with how many people are in it, finished and left early. Open one to see, for each step, how many are on it now, done, passed and failed; for a branch, how many went each way; for emails, how many were sent, opened (a hint, as above) and unsubscribed, and what they Earned: payments (store orders and paid invoices) from the people who got that email in the 7 days after, each payment credited once, to the latest automation email before it. The People tab lists everyone who's been through it, by step and status, with when their next step is due or why they left. Activity lists what the steps did lately.

When an account is deleted, it leaves every automation, and the record of its steps (the emails it got and what they earned) and its tags go with it. Its unsubscribe is kept, so the address still gets no automation emails.

Agents can read automations and segments and write drafts, branches included, with the list_automations, get_automation, list_segments, draft_automation and update_automation tools, like every tool that writes off until an admin turns it on. An agent never turns an automation on, and can't change one that's on, or one that people are still going through after it was turned off: an admin takes them out, or they finish first. Turn on turns on what you see: if someone saved it since you opened it, you're asked to check it again. See Agents and the API.

Segments

A segment is a group of people by rules: all of these or any of these, from up to 10 rules about each person by email address. A rule can ask for their plan (their best across their organisations), a tag they have or don't have, something they bought or haven't bought (a product or anything, ever or in the last so many days; refunded orders don't count), or a newsletter subscription. Someone who subscribes but has no account can still match tags, purchases and the subscription.

Who it matches now counts newsletter subscribers and accounts that match, as you edit the rules, before you save. A segment is read fresh every time it's used, so it's never out of date.

  • Newsletter: under a post's audience, Only people in a segment sends it only to the subscribers in it (on top of the audience and topics you picked). The count in the send dialog uses the same rules, so it's who gets it.
  • Automations: a condition or a branch can ask "They're in the segment".

Each segment says what uses it. One that an automation or an unsent post uses (including a send that's paused before it started) can't be deleted; change those first. If a segment is gone by the time a post sends, the post goes to nobody rather than everyone. Viewers can read segments but not change them.

The recipes

RecipeWhen it runsWhat it sends
Weekly reportOnce a week, on the day and hour you pick (Monday at 08:00 UTC unless you change it)Visitors, your top 5 pages, form answers, sign-ups and revenue for the last 7 days, each against the 7 days before
Publish notificationWithin a minute of a publishWho published which page, the header or the footer, with a link to it
Site auditOnce a week, on the day and hour you pick, or whenever you press Run nowBroken links (on your site and to other sites), images without alt text, missing or long descriptions and slow pages on the live site, and the pages nobody has changed in a while

The weekly report covers the last 7 whole days in UTC, ending the day before it's sent. The page shows the numbers it would send right now, so you know what to expect. A change of "New" means the week before had none. Revenue is what paid invoices brought in, less tax, before refunds, in each currency you charge in. It counts invoices paid from the day automations arrived, so it starts at zero.

Publishes in the same minute go as one message, and a page published twice shows once with "2 times". Links go to the live page; the header and footer link to your home page.

The site audit

The site audit reads everything visitors can see: every published page and translation, your answers and their translations, and the header, footer (in each language you offer), not-found page and overlays. It looks for:

  • Broken links: a link to an address with no page, to a page that isn't published, or to an overlay that isn't live, whether it opens on the same page or on another (/pricing#overlay-newsletter). A link that one of your redirects catches lands; redirects match capitals exactly, as the site does, so /Old-Page and /old-page are different addresses. Links to your docs (/docs/…) need a doc that exists; links to files in Admin → Media need the file, and it must be public; referral links (/r/…) need an approved affiliate with that code or short link, or visitors land on the home page instead.
  • Links to other sites that are broken: each address is visited once per run, the way a browser would open it but without your cookies, and one that answers "not found" (404 or 410) is a broken link. Redirects count as landing.
  • Links to other sites that couldn't be reached: one that didn't answer within 5 seconds, refused the connection, has an invalid security certificate or answered with an error is listed apart under Couldn't reach, as it may be the other site's bad day: open it to see. Addresses that don't lead to a public site (on a private network, say) are never visited and are listed here too.
  • Anchors that land nowhere: a link like #pricing with nothing on the page by that name, or /about#team when the About page has no "team". A # link in the header, footer or an overlay is checked on every page it shows on, and the problem says on how many it misses ("2 of the 14 pages it's shown on"). Each one says how to fix it: link to a heading in an Article block (## Getting started is #getting-started) or to an FAQ list's Anchor id, set in its Style panel; when the target is on another page, put that page in the link (/about#team).
  • Images without alt text, which screen readers can't describe. An image block with no alt of its own is fine when its file has alt text in Admin → Media: the site shows that. Images in article text show only their own alt. Background images and video posters are decorative and don't count.
  • Descriptions: a page with no meta description, or one over 160 characters, where search results cut it off. Pages behind a password and pages hidden from search engines don't need one.
  • Slow pages: pages whose real visitors had a poor loading time, responsiveness or layout shift over the last 28 days, as Admin → Analytics shows under Speed. A page needs at least 50 speed readings from real visitors before it can count as slow, and it's listed once, with each number that's poor.
  • Pages that couldn't be checked: if a page's published copy can't be read, it's listed so you can open it and publish it again, and the rest of the site is still checked.
  • Pages to refresh: published pages nobody has changed in 6 months. Pick another span (from 30 days to 2 years) under the recipe. Prices, dates, names and screenshots go stale, so these are worth a read.

Press Run now to check the site straight away. It takes a few seconds on most sites, and up to a few minutes when they link to many other sites; it shows how far it has got and who started it. Only one audit runs at a time: if another admin, or the weekly run, has already started one, Run now says who and shows its progress. What it finds is grouped by page, in plain words, with the block it's in as the editor's Layers panel names it and a few words of its text. Open in editor goes straight to the block on the page (or the translation), selected and scrolled into view, at a width that shows it: a block hidden on desktop opens at phone width. The counts at the top filter the list, and the filter is in the address so you can share it. When there's nothing to fix, the page says so.

Run now, and the weekly run when the recipe is on, also sends to the channels that are on: the counts, the pages with the most problems and the pages to refresh, with a link back to the full list.

A run checks the first 300 addresses on other sites, four at a time. When there are more, or the run's time runs short, the page and the messages say how many weren't checked and why.

Connected agents can read the latest audit with the get_site_audit tool and propose fixes, typos included, for an admin to accept. See Agents and the API.

Where it sends

Turn on any of three channels for each recipe. Switching one off keeps its choice for next time.

  • Email goes to the admins you tick, in the notice email. If email isn't set up on the server, the page says what's missing and runs skip email until it is.
  • Slack posts to the channel you saved in Admin → Alerts. If that's a plain webhook rather than Slack, it gets JSON.
  • Webhook posts to one endpoint from Admin → Integrations, signed with that endpoint's secret the same way as every other webhook. Its type is automation.weekly_report, automation.pages_published or automation.site_audit (with the full audit).

Send a test now runs the recipe straight away on the channels that are on, marked as a test, and shows what each channel did. The publish test uses your latest publish, or a sample page if nothing has been published yet. The site audit has Run now instead, which is a real run.

The run log

Each recipe lists its runs, newest first: when, whether it was scheduled, a publish, a test or a Run now (and who sent it), a one-line summary and a status. Open a run to see each channel's result (sent, failed with the reason, or skipped with why) and exactly what went out. The last 200 runs of each recipe are kept.

Each send is tried once. If a channel fails, fix what the run log says and send a test.

Good to know

  • Turning the weekly report on never sends last week's report late: the first one goes at the next time you picked. A report more than a day late (say the server was down) is skipped, and two reports are never sent within four days, even if you move the day.
  • Turning the publish notification on never sends publishes from before.
  • The site audit follows the same schedule rules: it never runs late for a week before you turned it on.
  • If an audit stops before it finishes, nothing is sent, and the page says so with the time. Run it again. An audit stops after 10 minutes, and one that stops answering (say the server restarted mid-run) is marked as stopped after 15.
  • Connected agents get the first 25 pages and 150 problems of the latest audit, with counts of the rest.
  • Changing a recipe, sending a test and pressing Run now are recorded in the audit log, like other admin changes. So are making, saving, turning on or off, deleting and testing an automation for people, and making, saving and deleting a segment.

Something unclear or missing? Ask us and we'll answer, then fix the page.

Was this page helpful?

Built with Overlays