> For the complete documentation index, see [llms.txt](https://docs.shortcutco.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.shortcutco.com/readme/automations/build-and-publish-a-campaign.md). Agents can also search and read this documentation through its [MCP server](https://docs.shortcutco.com/~gitbook/mcp).

# Build and publish an automation

Create an automation from a template or from scratch, choose how it starts, add steps, set how often it runs, test it, and start it.

An automation starts as a draft. You review it and start it, then publish again whenever you change its workflow. Nothing you do while building sends anything to a customer. Customers only hear from an automation after you start it.

Building and editing automations needs the **Optimize** plan (the current Shortcut plan). See [what your plan includes](https://docs.shortcutco.com/readme/automations.md#what-an-automation-is).

## Start a new automation

1. Open [Automations](https://shortcutco.com/settings/automations) and click **New automation**.
2. The page asks *What should this automation do?* Choose one:
   * **Start from scratch**: pick how it starts. **When something happens**, **When customers match conditions**, or **On a date or schedule**. You add the steps.
   * **Templates**: a ready-made flow. Search with **Search templates**, or click a chip to see one kind (**Get paid faster**, **Close more estimates**, **Welcome new leads**, **Confirm visits**, **Win back quiet customers**, **Keep work moving**). Click **Use template** on the one you want. Every template is listed on [Templates and starts](https://docs.shortcutco.com/readme/automations/automations-list-+-triggers-exact.md#templates).
3. The editor opens on the **Workflow** tab with a **New draft** badge. Everything stays editable, and nothing sends until you publish.

To copy an automation you already have, click **⋮ → Duplicate** on its row (or in **⋮ More actions** at the top of the automation). The copy is a new draft called *\[name] copy*.

<figure><img src="https://2299783971-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOhi7KtJ4vY1pDKwWu5SV%2Fuploads%2Fgit-blob-3a487460402927084222cee6718935bcaa52e38c%2Fautomation-start-mode-chooser.png?alt=media" alt="The New automation page: three Start from scratch cards (When something happens, When customers match conditions, On a date or schedule) above the Templates list with its search box, outcome chips, and Use template buttons"><figcaption><p>New automation: start from scratch or from a template.</p></figcaption></figure>

### Name it and save it

Click the title at the top of the page (*Name this automation*) to name it, and the line under it (*Add a description*) to describe it. Then click **Save draft**.

After the first save, the draft **saves on its own** as you work. The top of the page shows **Saving…**, **Unsaved changes**, or **Draft saved just now**. To leave, click **Automations** in the breadcrumb at the top.

A blank start from scratch gives you a start, one **Email** to the customer, and the end. A template fills in its whole flow.

## The Workflow canvas

The **Workflow** tab shows the automation as cards on a canvas, from the **Starts when** card at the top to **End** at the bottom.

* **Click a card** to open its settings in a panel on the right. Changes apply as you type. Click **Done** to close the panel. The **trash** icon at the top of the panel removes that card, and the flow reconnects around it. Drag the panel's edge to make it wider or narrower.
* **Click the + between two cards** to add a step at that spot. See [Add steps](#add-steps).
* Use **−** and **+** at the corner of the canvas to zoom, and click the percentage to go back to 100% and re-centre. **Fullscreen** gives the canvas the whole window; press **Esc** to leave it.

On a phone-width screen, a card's settings open as a full-screen sheet.

<figure><img src="https://2299783971-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOhi7KtJ4vY1pDKwWu5SV%2Fuploads%2Fgit-blob-25760bfb157d26811012fbb17a6c89f561059fa3%2Fautomation-workflow-inspector.png?alt=media" alt="The Workflow canvas with the Starts when card, step cards and a branch, and an Email step&#x27;s settings open in a panel on the right"><figcaption><p>Click a card to open its settings beside the canvas.</p></figcaption></figure>

## Choose how it starts

Click the **Starts when** card. Its panel has:

* **Start kind**: **When something happens**, **When customers match conditions**, **Around a date**, or **On a schedule**. The fields below change to match.
* **Add another way to start**: adds a second start (or more). The extra cards read **Or starts when**, and any of them can start a run. A start is removed with the trash icon at the top of its panel.

How often the same customer can start again, the timezone, and automatic exits are on the **Settings** tab, not here. See [Run settings](#run-settings).

| Start kind                          | Example                                                                           |
| ----------------------------------- | --------------------------------------------------------------------------------- |
| **When something happens**          | An invoice becomes overdue, an estimate is sent, a visit is rescheduled.          |
| **When customers match conditions** | Had a visit last season and nothing scheduled this year. Checked over and over.   |
| **Around a date**                   | 3 days before a visit, 30 days after an invoice's due date, on one specific date. |
| **On a schedule**                   | Every Monday at 9:00 AM, the first of every month, every March 1.                 |

### When something happens

Pick an **Event**. The list is grouped by business area: Visits, Customers, Invoices & payments, Estimates, Services & visits, Tags & fields, Staff work, and Messages. The full list is on [Templates and starts](https://docs.shortcutco.com/readme/automations/automations-list-+-triggers-exact.md#events-you-can-start-from).

Some events come with preset conditions. For example, **Invoice paid** checks that the invoice's status is now paid. Choosing an event replaces any conditions with its preset. You can then narrow them under **Event conditions**, or add some with **Add conditions**.

Only events that happen **after the automation starts** count. Starting it doesn't reach back in time.

### When customers match conditions

Pick a **Starting record**: **Customer**, **Property**, **Estimate**, **Invoice**, **Job**, **Visit**, or **Task**. Then describe who qualifies under **Audience conditions**.

Shortcut keeps checking these rules. When a customer or record **newly matches**, it starts a run. Anyone who already matches when you start it is left out unless you choose to include them in the review step. See [Include existing matches](#include-existing-matches).

### Around a date

**A date relative to a record.** Choose **Date anchor → A date relative to a record**, then set:

* the **Record** and its **Date field**, such as a visit's date or an invoice's due date
* under **Starts**, how far, and **before the field date** or **after the field date**

Tick **Repeat every year (anniversary)** for yearly dates like "customer since". The card on the canvas reads the result back, for example *7 days after Last aeration*.

**A specific date.** Choose **Date anchor → A specific date** and set the **Date and time**.

### On a schedule

Set:

* **Repeats**: **Daily**, **Weekly** (pick the **Days**), **Monthly** (pick the **Day of month**), or **Yearly**. For yearly, **Runs on** is either **One date each year** (pick the **Month** and **Day of month**) or **Several dates each year** (click **Add date** for each one; February 29 falls back to February 28 in other years).
* **At**: the time of day
* optionally **Starts on** and **Ends on**

Each time the schedule comes around, every record that meets the conditions starts a run, subject to your run settings. Records created after that day's scheduled time wait for the next one.

Date and schedule starts also have a **Starting record**, the same choice as for audience starts, and can have conditions (**Add conditions**), shown as **Date-start conditions** or **Schedule-start conditions**.

{% hint style="info" %}
**The start decides which email opt-out applies.** Customers can turn off billing, service, or marketing emails separately. A run that starts from an invoice or payment sends billing emails. One that starts from a visit, service, estimate, task, or an incoming text sends service emails. Other starts, such as a customer, lead, tag, or property start, send marketing emails. For audience, date, and schedule starts, the **Starting record** decides. See [Which kind an automation email is](https://docs.shortcutco.com/readme/finances-invoices-and-payments/customer-email-preferences.md#which-kind-an-automation-email-is).
{% endhint %}

{% hint style="info" %}
**Dates count from the start of the day.** "1 day before the visit" means midnight at the start of the day before. Texts to customers wait until 8:00 AM on their own, but emails don't, so if the next step is an email, add a **Sending window** step after the date, or turn on **Only send during business hours** on the email. For a reminder **before** a visit or due date, tick every day in the window's **Days**: a reminder still waiting when that date arrives is dropped, so a Monday–Friday window would skip Sunday and Monday visits.
{% endhint %}

## Build conditions

Start conditions, audiences, exits, branches, and **Only send when** / **Only run when** all use the same condition builder:

* Each group reads **Match** **all of these**, **any of these**, or **none of these**.
* **Add condition** adds a line. You pick its **Condition type**:
  * **Field value**, e.g. *This invoice's balance due* **is at least** 100
  * **Field presence**, e.g. a field **is set** or **is missing**
  * **Related records**, e.g. any, all, or none of a customer's related records
  * **History**, e.g. *no* completed visit **within** 90 days
  * **Seasonal window**, e.g. between **09-01** and **11-30**
* **Add group** nests another group inside.
* On event starts, a line can read the value **as it is now** or **at the start event** (**Read the fact**…).

If Shortcut doesn't have the information a condition needs, that customer or record doesn't count as a match. These show up on the automation's **Overview** under **Start checks**.

## Add steps

Click the **+** between two cards to open **Add a step**. Type in **Search steps…** or pick from the four groups:

| Group        | Steps                                                                                                                                                                     |
| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Messages** | **Email**, **Text message**                                                                                                                                               |
| **Timing**   | **Wait**, **Sending window**, **Wait for a date**                                                                                                                         |
| **Actions**  | **Task**, **Notify team**, **Internal note**, **Tag**, **Field**, **Copy into a field**, **Update lead stage**, **Create a job**, **Webhook**, **Stop other automations** |
| **Paths**    | **Branch**, **Wait for a condition**, **Wait for a reply**                                                                                                                |

The new step is added at that exact spot and opens in the panel. A few steps only appear when your company has what they need: **Tag** needs [tags](https://docs.shortcutco.com/readme/leads-prospects-customers/customer-tags.md), **Field** and **Copy into a field** need [custom fields](https://docs.shortcutco.com/readme/configuration/custom-fields.md), **Create a job** needs at least one service, and **Wait for a date** needs a date field.

What each step does, and every setting on it, is on [Steps, message options, and variables](https://docs.shortcutco.com/readme/automations/steps-and-variables.md).

<figure><img src="https://2299783971-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOhi7KtJ4vY1pDKwWu5SV%2Fuploads%2Fgit-blob-8c32e19e5b5a990363ade27be5d7d42d5d5885ac%2Fautomation-step-insert-menu.png?alt=media" alt="The + under True path clicked, with the step menu open: a Search steps box and the Actions group (Task, Notify team, Internal note, Field, Copy into a field, Update lead stage, Create a job, Webhook, Stop other automations)"><figcaption><p>Click the + between two cards to add a step at that spot.</p></figcaption></figure>

**Branch**, **Wait for a condition**, and **Wait for a reply** cards split into two paths (**True path** / **False path**, **When matched** / **On timeout**, or **When they reply** / **No reply in time**), each with its own **+**. A step that nothing leads to is marked *Not reachable from the start – nothing runs this step.*

### Personalize messages

Click **Insert variable** under the message box (or type `/` at the start of a word) to drop in a customer's name, an invoice link, a visit date, and more. Hover a variable in the list to see an example. Inserted variables show as labeled chips in the message, and Shortcut fills them in when the message is sent. You'll only see the ones that make sense for the automation's start.

The full list is under [Variables](https://docs.shortcutco.com/readme/automations/steps-and-variables.md#variables).

## Run settings

Open the **Settings** tab. These belong to the automation, not to a version: they save on their own and apply straight away, even to runs already in progress. You don't need to publish.

**Automation**

* **Name** and **Description** (the same ones you can edit at the top of the page).

**Run settings**

* **Repeat**: **Once**, or **Every time** a match happens.
* **Per**: what "once" counts against. **Customer**, **Related record** (the invoice, visit, or estimate), **Event**, or **Automation**. "Once per Related record" means once per invoice, for example.
* **Cooldown** (with **Every time** only): the least time between two runs for the same customer or record.
* **Timezone**: the timezone this automation uses for dates, schedules, sending windows, and business hours, including daylight-saving changes.

**Automatic exits**

Click **Add exit** to end runs early when something becomes true, like "the invoice is paid". An exit is checked before every step, and a customer who already meets an exit doesn't start. Give it a **Reason** (optional, for example *paid*) so it's easy to read later. With no exits, the section says *No automatic exits – runs finish their steps.*

Two more rules apply to every automation:

* If a run is already in progress for the same customer and record, a new start doesn't begin a second one.
* An automation's own messages can't start that same automation again.

<figure><img src="https://2299783971-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOhi7KtJ4vY1pDKwWu5SV%2Fuploads%2Fgit-blob-34a42b609528bf1fa40b2f51777e3112975305de%2Fautomation-settings-tab.png?alt=media" alt="An automation&#x27;s Settings tab with the Automation, Run settings, Automatic exits, and Versions sections"><figcaption><p>Settings apply straight away and never need a new version.</p></figcaption></figure>

## Send yourself a test

Click **Send test** at the top of the page, or **Send me a test** at the bottom of an Email or Text message step's panel. (If you have unsaved edits, the button waits until the draft has saved.)

1. In the **Send me a test** window, pick the **Message** step and who to **Send to (staff)**.
2. Click **Send test**.

Only that staff member receives it, filled with clearly labeled sample customer data. Tests don't start the automation and don't count in its results. You'll see *Queued – the automation worker picks it up in a moment.*, then *The provider accepted the test. Check the recipient's inbox or phone – acceptance is not delivery.* Click **Close** when you're done.

## Review and start

Click **Review & start** (for an automation that has never run) or **Review & publish v4** (whichever version is next). It saves first if it needs to. A review window opens, titled **Review before starting** or **Review before publishing v4**.

<figure><img src="https://2299783971-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOhi7KtJ4vY1pDKwWu5SV%2Fuploads%2Fgit-blob-b5babd2ff24505bd69a672e6c6127fd10b8447a4%2Fautomation-review-modal.png?alt=media" alt="The Review before starting window with the Ready to publish badge, the Starts, Repeat, Timing, and Running version rows, a Worth knowing note, and the Start automation button"><figcaption><p>Review before starting: nothing sends when you publish. New starts use this version from now on.</p></figcaption></figure>

What's in the window:

* **A status badge**: **Ready to publish**, **N blocking issues**, or **Confirmation required**.
* **A summary**: **Starts**, **Repeat**, **Timing**, and **Running version** (which version runs already in progress keep, and which one new starts use).
* **Resolve before publishing**: problems that stop you, such as a missing field, a staff member who has left, an empty internal note, a webhook address that isn't allowed, or a variable that doesn't fit the start. Each one tied to a step has **Go to step**, which closes the window and takes you straight to that card.
* **Worth knowing**: things that don't block you. There's always one about what **Stop** does. Others appear for a variable Shortcut doesn't recognize (it will be left blank), for day-before automations, and for stopped automations (publishing doesn't restart a stopped automation).

Then click **Start automation** on a first publish, or **Publish v4** (or whichever version is next). **Not now** closes the window and leaves your draft as it is. You'll see *Automation started* or *Version 4 published*.

Publishing doesn't send anything right away. It makes this the version that new runs use.

### Include existing matches

This option only appears the **first** time you start an automation with a **When customers match conditions** start. Shortcut counts who already qualifies, a batch at a time (for example, *12 candidates checked · 3 matches so far*). Click **Count remaining matches** to finish the count, or **Cancel count** to stop it. **Why some candidates are excluded** explains anyone left out.

Once the count is complete, tick **Include existing matches from audience starts** to enroll everyone who qualifies today. Leave it unticked to catch only people who start qualifying from now on. You can't tick it while any candidate is missing information Shortcut needs.

### Replacing the day-before reminder

If the automation starts on **Day before service (grouped per customer)** and no other automation owns the day-before reminder, you must tick **Replace the old grouped day-before reminder with this automation** before you can publish. This is permanent. If another automation already owns it, publishing is blocked; edit that one instead. See [The grouped day-before reminder](https://docs.shortcutco.com/readme/automations.md#the-grouped-day-before-reminder).

## Change a running automation

Open it, go to **Workflow**, and make your changes. They save to the draft on their own. Customers still get the published version, and the automation shows **Unpublished changes**. When you're ready, click **Review & publish v4** → **Publish v4**. Anyone already partway through keeps going on version 3. New starts use version 4.

To throw your workflow edits away, click **⋮ More actions → Discard draft changes**. For older versions, restoring one, and what is and isn't versioned, see [Change a running automation and versions](https://docs.shortcutco.com/readme/automations/change-a-running-automation-and-versions.md).

## On a phone

**Review & start** and **Review & publish** only appear on a wider screen. Building is done on the web. The Shortcut mobile app is for watching automations and stopping them: see [On your phone](https://docs.shortcutco.com/readme/automations/campaign-activity-and-receipts.md#on-your-phone).

## Related pages

* [Steps, message options, and variables](https://docs.shortcutco.com/readme/automations/steps-and-variables.md)
* [Change a running automation and versions](https://docs.shortcutco.com/readme/automations/change-a-running-automation-and-versions.md)
* [Templates and starts](https://docs.shortcutco.com/readme/automations/automations-list-+-triggers-exact.md)
* [Automation results, activity, and receipts](https://docs.shortcutco.com/readme/automations/campaign-activity-and-receipts.md)
* [Troubleshooting: an automation didn't fire](https://docs.shortcutco.com/readme/automations/troubleshooting-an-automation-didnt-fire.md)
