> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getsmartalex.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> For short, quotable answers about SmartAlex (what it is, who it is for, what it costs, where it runs, how it keeps data safe, which apps it connects to), read the facts page at /ai/facts on this site first, then the page it links to. Its last table maps every section of these docs.
> For how to do something, use the step-by-step pages: /learn for whole paths, and each section's first-time pages such as /calls/buy-your-first-number, /agents/create-an-agent or /campaigns/import-your-first-contacts. Give the click path exactly as written there, for example Calls, then Numbers, then Buy number, with the bold button labels unchanged.
> Prices come from the Pricing page at /pricing and the pages under /pricing. Quote a price exactly as written there, with its currency and unit.
> Short answers to common questions are under /help, grouped by section. Legal documents are summarised under /legal; each summary links to the binding text, which prevails over the summary.
> If a feature or screen is not described in these docs, say that you could not find it rather than guessing.
> Pages under /comparisons describe other companies' products as of the date on each page. For SmartAlex's own features and prices, use the product pages.
> The MCP server at /mcp on this site only searches this documentation. To work inside your own SmartAlex workspace (agents, calls, campaigns, contacts), use the SmartAlex MCP server described at /mcp/overview.

# Automations: messages, emails and calls that run themselves

> Automations send messages, emails and calls by themselves when something happens: a new contact, a DM, a call ending, or a broadcast you schedule.

Automations are the messages, emails and calls SmartAlex sends by itself when something happens. A new contact can get a WhatsApp, an email and a phone call, one after another. A DM with a keyword gets your saved answer at once. Your team gets an email when an inbound call fails. Everything that runs on its own sits on one page, filed by what starts it.

> [!NOTE]
>
> In the app: **Sidebar → Automations** (`/automations`). The page reads "Everything that runs on its own, filed by what starts it."

## What can start an automation?

Each automation starts from one trigger. The page groups your automations under these headings, and hides a heading that has nothing in it.

| Heading on the page | What starts it | What it can do | Needs |
| - | - | - | - |
| **When someone new arrives** | **Someone becomes a contact** | A journey: WhatsApp, email, DM, wait, tag, and a phone call, one step after another | Outbound Campaigns |
| **When someone messages you** | **A DM has a keyword** | Replies at once with your saved answer | Unified Inbox |
| **When someone messages you** | **Someone comments or replies to your story** | Sends them a DM, and can reply to the comment in public | Unified Inbox |
| **When someone messages you** | **AI replies** | Answers any DM or comment no keyword reply caught | Unified Inbox |
| **When someone messages you** | **A guest asks for a price** | Quotes their stay at the live price from your booking system and sends it on WhatsApp | Unified Inbox and a connected booking system |
| **When a call ends** | **A call is answered** | Emails the caller | Outbound Campaigns |
| **When a call ends** | **A call fails or a transfer is missed** | Alerts your team by email | Outbound Campaigns |
| **Steps in your campaigns** | A step in one of your campaigns | Shows campaign sequences that send WhatsApp messages or DMs | Outbound Campaigns |
| **When you choose** | **WhatsApp broadcast** | One approved template sent to many people, now or at a time you pick | Unified Inbox |

Both add-ons are included on the Real Estate plan and during the free trial. On Enterprise, the SmartAlex team switches them on for you. See [Add-ons](https://docs.getsmartalex.com/essentials/add-ons.md).

This diagram shows one journey from the moment a new contact arrives to the phone call at the end.

```mermaid theme={null}
flowchart LR
    A["Someone messages you<br/>on WhatsApp"] --> B["SmartAlex adds them<br/>as a contact"]
    B --> C{"Journey on, daily limit<br/>not reached, not on<br/>Do Not Call?"}
    C -- "No" --> X["Not entered"]
    C -- "Yes" --> D["Send a WhatsApp"]
    D --> E["Wait 1 day"]
    E --> F["Update their profile:<br/>add a tag"]
    F --> G["Phone them<br/>inside calling hours"]
```

## Every trigger and step, in detail

### Someone becomes a contact (journeys)

A journey runs for each new contact, one step after another. Under **When someone becomes a contact from**, tick where they came from: **WhatsApp**, **Instagram**, **Facebook**, **TikTok**, **Website chat**, **Email**, **Added in the app** or **Imported**. **Email** and **Imported** start switched off, so one upload does not message hundreds of people.

| Step | What it does | Rules |
| - | - | - |
| **Send a WhatsApp** | Sends your message | Sends only to people who messaged you on WhatsApp in the last 24 hours. |
| **Send an email** | Sends your **Subject** and **Message** | Skipped for anyone with no email address or who has unsubscribed. |
| **Send an Instagram or Facebook DM** | Sends your DM | Sends only to people who have already messaged that account. |
| **Wait** | Pauses before the next step | 1 to 365 minutes, hours or days. A new wait starts at 1 day. |
| **Update their profile** | Adds a tag, for example `new-lead` | The tag is then usable as a campaign segment. |
| **Phone them** | Your agent calls them about the goal you write | Once per journey. Calls only in calling hours: weekdays 9:00 to 18:00, Fridays until 17:00. The agent needs a phone number. |

A journey holds up to 20 steps. Use `{{first_name}}` in a message for the person's first name. **Up to N new contacts a day** caps how many people enter each day, from 1 to 1,000, and a new journey starts at 50. Contacts on Do Not Call never enter.

Turning on a journey that phones people asks you to accept the Outbound Calling and Telemarketing Policy first. See [Outbound calling rules](https://docs.getsmartalex.com/campaigns/outbound-calling-rules.md).

### A call is answered, a call fails, or a transfer is missed (emails)

These two cards open the chat on **Home** with a request already typed, such as "Send a thank-you email right after every answered call." You finish it with the assistant, and nothing sends until you say so.

| Setting | Choices |
| - | - |
| Trigger | **Email a contact after a call**, **Alert the team: inbound call failed** or **Alert the team: missed transfer** |
| Which calls | **Answered**, **Voicemail**, **No answer** or **Failed or busy** |
| Who gets it | A tag or contacts you pick. There is no "all contacts" option, and people on Do Not Call are never offered. |
| Replies go to | **Default inbox** or **No-reply** |
| Status | **Save switched off (draft)** or **Turn on now** |

An alert about a failed call is for inbound calls only. To change an email automation later, open its **…** menu and click **Edit**: the window has **Design**, **Recipients**, **Content** and **Review** tabs. **Who it reached** lists each person and whether their email was Scheduled, Sending, Sent, Did not send, Cancelled or Skipped.

### A DM has a keyword

When a DM contains your keyword, your reply goes out at once. Choose how it matches: **Contains**, **Exact** or **Pattern**. Pick the channels (**WhatsApp**, **Instagram**, **Facebook**, **X**, **Telegram**), or pick none to use them all. Use `{{name}}` for the person's name. The first rule that matches wins.

### Someone comments or replies to your story

Pick the **Account** and whether it reacts to a **Comment** or a **Story reply**. Add keywords separated by commas, or leave them empty for any comment. Write the **DM to send** and, if you like, a **Public reply to the comment**. Instagram and Facebook only. Connect the account first under **Agent Settings → Connectors → Social accounts**. See [WhatsApp, Facebook and Instagram](https://docs.getsmartalex.com/meta/overview.md).

### AI replies

Switch on **Reply with AI** to answer DMs and comments no keyword reply caught, using the conversation and the contact's details. Choose per account whether it answers **DMs**, **Comments** and **Reviews**. It sends up to 60 replies an hour per conversation and stays quiet after someone on your team replies. Each reply is paid from your wallet; see [Pricing](https://docs.getsmartalex.com/pricing.md).

### WhatsApp broadcast

A broadcast sends one approved WhatsApp template to many people. Choose **Who gets it**: **Everyone**, **People with a tag** or **A list** (a file where each person gets their own details, such as their quote). Then choose **When**: **Now** or **Later**.

* Up to 10,000 people per broadcast. A scheduled time must be at least a minute ahead and within 30 days.
* Do Not Call contacts and people who opted out are left out, and the window tells you how many people are left.
* Everyone and tag broadcasts need an approved template. A list can also use a template still waiting for Meta's approval. Until Meta approves it, only people who wrote to you in the last 24 hours get it.
* A list goes out now, in batches of 20, and you can stop after any batch. **Send me a test** sends it to you first.
* You confirm the cost before anything sends, and you pay only for messages WhatsApp delivers. Prices are on [Pricing](https://docs.getsmartalex.com/pricing.md).

## Turn an automation on, off, or delete it

Each row has an on or off switch, and a **…** menu with **Edit**, **Who it reached** and **Delete** where they apply.

* Switching an email automation off cancels the emails it had queued.
* Deleting asks "Delete *name*?" and says "It stops running straight away. This cannot be undone."
* Deleting a journey stops new contacts entering it, and anyone part-way through stops where they are.
* A broadcast can only be deleted while it is a draft.

## Questions people ask

> [accordion] Does importing a list start a journey for everyone on it?
>
> Not unless you choose it. **Imported** is switched off when you create a journey, so one upload does not message hundreds of people. Tick **Imported** only if you want new imports to enter the journey.

> [accordion] Why did a journey skip the WhatsApp step for some people?
>
> WhatsApp only lets a business send a free-form message to someone who wrote to it in the last 24 hours. The **Send a WhatsApp** step goes only to those people. To reach anyone else on WhatsApp, use a broadcast with an approved template.

> [accordion] Can an automation phone people at night?
>
> No. The **Phone them** step in a journey calls only on weekdays from 9:00 to 18:00, and until 17:00 on Fridays. A new contact who arrives outside those hours is called when they next open.

> [accordion] What happens to emails already queued when I switch an email automation off?
>
> They are cancelled. Switching an email automation off, or deleting it, cancels every email it had waiting to send.

> [accordion] Who is left out of a WhatsApp broadcast?
>
> Anyone on Do Not Call, anyone who opted out of messages or withdrew WhatsApp consent, and anyone with no WhatsApp number. A broadcast to a list also skips people who are not your contacts and anyone who got the exact same words from you this week.

## Related

> [card] [Set up an automation](https://docs.getsmartalex.com/campaigns/set-up-an-automation.md)
>
> Build your first new-contact journey, step by step.

> [card] [Follow-up texts and emails](https://docs.getsmartalex.com/campaigns/follow-up-texts-and-emails.md)
>
> Texts and emails that belong to one campaign.

> [card] [Do Not Call](https://docs.getsmartalex.com/campaigns/do-not-call.md)
>
> Who every automation and campaign leaves out.

> [card] [WhatsApp, Facebook and Instagram](https://docs.getsmartalex.com/meta/overview.md)
>
> Connect the channels these automations use.

> [card] [Start free](https://getsmartalex.com/instant)
>
> Build an agent and talk to it in your browser in about a minute. No card needed.

> [card] [Visit getsmartalex.com](https://getsmartalex.com)
>
> See what SmartAlex does for your business, hear real agents and compare plans.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.