# Build an automation
Send emails on their own after a trigger, such as a signup or a first order. Start from a recipe or build a sequence or automation step by step.
An automation sends emails by itself when something happens, such as a new signup or a first order. Set it up once, and it runs for every person who matches.
```video walkthroughs/f09-email-automations
title: Automate emails with flows
caption: Start from a recipe, check the trigger and steps, and publish.
```
Crate has two kinds:
| Kind | How it works | Good for |
| --- | --- | --- |
| **Sequence** | A timed series: email 1 on day 0, email 2 on day 3, and so on. | Welcome emails, onboarding, a short course by email. |
| **Automation** | A path of steps: emails, waits, conditions, tags and lists. | Cart reminders, thank-you emails, win-back offers. |
## Step 1: Start from a recipe or from blank
The quickest way is a recipe: a ready-made automation with its emails written.
1. Go to **Marketing → Campaigns**.
2. Click **Create email**, then **Start from a recipe**.
3. Next to the recipe you want, click **Use**. Crate creates it as a draft and opens it.
To start from blank, choose **Sequence** or **Automation** in the **Create email** menu instead. In **Create email flow**, enter a **Name**, check the **Flow type** and click **Create draft**.
```screenshot email-marketing/build-an-email-automation/01-recipes
alt: The Recipes panel listing Welcome series, Abandoned cart, Post-purchase, Back in stock, Win-back and other recipes, each with a Use button
caption: A recipe creates a draft you can read and change before it sends.
```
| Recipe | What it sends |
| --- | --- |
| Welcome series | Three emails over the first week after someone signs up. |
| Abandoned cart | Reminders at 1 hour, 1 day and 3 days. Stops when the cart is paid. |
| Post-purchase | A thank-you after the first order, then a feedback request a week later. |
| Back in stock | Tells people who asked when an item returns, then reminds them once. |
| Win-back | Two emails to customers who haven't ordered in 60 days. |
| Lead magnet | Delivers a download when someone joins your list, then follows up twice. |
| Course onboarding | Welcomes a new student, then checks in on day 3 and day 7. |
| Course completed | Congratulates a student who finishes a course and tags them. |
## Step 2: Check the trigger
The **Trigger** row says, in one sentence, when people start. For example: "When someone joins list Newsletter".
Click the highlighted words to change the trigger or its details, such as which list or product. See [Automation triggers and conditions](/docs/email-marketing/triggers-delays-and-conditions) for every trigger.
```screenshot email-marketing/build-an-email-automation/02-builder
alt: The automation builder with the Name, From, Trigger and Stop when rows, and a rail of steps below with an email, a wait and a condition
caption: Every setting is a row at the top. The steps are below.
1: 1440=35,22 Trigger
2: 1440=35,28 Stop when
3: 1440=50,60 The step rail
```
## Step 3: Add the emails and steps
**In a sequence:** click **Add email**. Each email has a day and a time, such as "Day 3, 9:00 AM", counted from when the person entered. A sequence can send up to 2 emails per day.
**In an automation:** click **+** on the rail where the step should go, then choose one:
| Step | What it does |
| --- | --- |
| **Send email** | Sends an email. Crate creates a draft and opens it for you to write. |
| **Wait** | Pauses for a number of minutes, hours or days. |
| **Condition** | Splits the path in two, such as "if they are a customer" or "if they have a tag". |
| **Add tag** / **Remove tag** | Changes the person's tags. |
| **Add to list** / **Remove from list** | Changes the person's lists. |
| **Start sequence** / **Stop sequence** | Moves the person into or out of a sequence. |
| **Add to segment** | Adds the person to a manual customer group. |
Write each email the same way as a broadcast. See [Send an email campaign](/docs/email-marketing/create-and-review-email-campaign). In a sequence, click **Publish** on each email when it's ready. Draft emails don't send.
## Step 4: Set when it stops (optional)
Use **Stop when** to end the automation early for someone, for example when they place any order or unsubscribe. An abandoned cart automation should stop when the cart is completed.
Automations also have:
- **Quiet hours**: choose a start and end hour. Emails due in that window wait until it ends.
- **Re-entry**: lets someone start the automation again after they finish it.
Sequences have a **Time zone**, which sets the clock for each email's send time.
## Step 5: Publish
1. Send yourself a test of each email: open the email and choose **Send preview** from its menu.
2. Click **Publish** at the top right.
3. Confirm. New people who match the trigger start receiving emails.
The status changes from **Draft** to **Active**. Nothing sends before you publish.
> [!NOTE]
> Each email an automation sends uses one email credit, like a broadcast. Keep an eye on your balance in **Settings → Email credits**.
## Troubleshooting
If **Publish** is greyed out, hover over it to see why.
- **"Add a step.":** an automation needs at least one step after its trigger.
- **"Add an email.":** a sequence needs at least one email.
- **"Publish at least one email.":** open an email in the sequence and click **Publish**.
- **"Choose a tag." or "Choose a segment.":** the trigger needs a tag or segment. Click the trigger sentence and pick one.
- **"That template is not available.":** some recipes in the list can't be used yet in your store. Pick another recipe, or build from blank.
- **"This trigger is not available yet. Choose another trigger.":** pick another trigger from the list.
