> ## 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.

# How a WhatsApp or Messenger message reaches your agent

> What happens between a customer's WhatsApp, Messenger or Instagram message and your agent's reply, and every check that can hold a reply back.

A customer's message goes from WhatsApp, Messenger or Instagram to Meta, and Meta passes it to
SmartAlex straight away. SmartAlex saves it in your **Inbox**, runs a few checks, and your agent
writes a reply that goes back the same way, usually within seconds. If any check fails, the
message still reaches your Inbox and only the agent's reply is held back.

> [!NOTE]
>
> In the app: chats appear in **Inbox** (/inbox). The switches that decide whether your agent
> answers are under **Agent Settings → Connectors**.

## The message and the reply

This diagram shows a WhatsApp or Messenger message travelling from the customer, through Meta and SmartAlex, to your agent and back.

```mermaid theme={null}
sequenceDiagram
    participant C as Customer
    participant M as Meta (WhatsApp, Messenger, Instagram)
    participant S as SmartAlex
    participant A as Your agent
    participant I as Your Inbox
    C->>M: Sends a message
    M->>S: Passes the message on
    S->>I: Saves the chat
    S->>S: Runs the checks below
    S->>A: Asks for a reply
    A-->>S: Writes the reply
    S->>M: Sends the reply
    M->>C: Delivers it
    S->>I: Adds the reply to the chat
```

A customer may send several short messages in a row: "Hi", "I'd like to book", "for Tuesday". Your
agent waits a moment and answers them together in one reply.

## The checks before every reply

This diagram shows the checks SmartAlex makes before your agent replies, and what holds a reply back.

```mermaid theme={null}
flowchart TD
    A["Message arrives"] --> B{"AI replies on?"}
    B -- "No" --> X["Saved in Inbox.<br/>No AI reply."]
    B -- "Yes" --> C{"An agent is<br/>assigned?"}
    C -- "No" --> X
    C -- "Yes" --> D{"Wallet can<br/>pay for it?"}
    D -- "No" --> X
    D -- "Yes" --> E{"A teammate replied<br/>in the pause time?"}
    E -- "Yes" --> X
    E -- "No" --> F{"Contact opted out?"}
    F -- "Yes" --> X
    F -- "No" --> G["Your agent replies"]
```

| Check | Where you control it | If it fails |
| - | - | - |
| AI replies are on | WhatsApp: the **AI replies** switch on the **Replies** tab. Facebook, Instagram and other social accounts: **Reply to DMs with AI** and **Reply to comments with AI** on the account's card. The **AI replies** row on **Automations** must be on too. | The chat waits in Inbox for a person. |
| An agent is assigned | WhatsApp: **Assigned agent** on the **Numbers** tab. Social accounts: **Assigned agent** on the account's card. | No reply. Choose an agent. |
| Your wallet can pay | **Settings → Billing**. You see a **Spending paused** notice when it is empty. | Replies are held until you top up. |
| No teammate replied just now | **Pause after a teammate replies** on the WhatsApp **Replies** tab, or **After a teammate replies** on a social account card. Choose **No pause**, **5 minutes**, **15 minutes**, **30 minutes**, **1 hour** or **2 hours**. | Your agent stays out of that chat until the pause ends. |
| The contact has not opted out | A customer who replies **STOP**, or who is on your Do Not Call list, gets no more automatic messages. | No reply. |
| The Unified Inbox add-on, for social accounts | **Settings → Billing**. WhatsApp does not need it for replies. | No AI reply on Facebook, Instagram or other social accounts. |
| WhatsApp only: Meta accepts the reply | Meta's [display name approval](https://docs.getsmartalex.com/meta/whatsapp-approval.md). | Meta delivers only the first reply in each chat until your name is approved. |

Two more safety limits apply to every chat. Your agent sends at most 60 replies to one contact in an
hour. It also stops answering when the other side looks like another bot trading goodbyes.
You will rarely meet either.

## Messages after 24 hours of silence

WhatsApp lets your agent reply freely for 24 hours after the customer's last message. After
that, only an approved template can start the chat again. [The 24-hour window](https://docs.getsmartalex.com/meta/whatsapp-24-hour-window.md).

## Questions people ask

> [accordion] Why did my agent not reply to one WhatsApp chat?
>
> Usually a teammate replied in that chat, so your agent is pausing. Check the pause time on the
> WhatsApp **Replies** tab. If no one replied, check the number's **Status** on the **Numbers**
> tab: **Name in review**, **Name needed** or **Name declined** means Meta is holding replies.

> [accordion] My agent answers WhatsApp but not Instagram. Why?
>
> Instagram, Facebook and the other social accounts need the Unified Inbox add-on, and each
> account has its own **Reply to DMs with AI** switch. Check both, and that the account card has
> an **Assigned agent**.

> [accordion] How fast does the agent reply?
>
> Usually within seconds. It waits a moment longer when a customer is sending several messages
> in a row, so it can answer all of them at once.

> [accordion] Does the customer know they are talking to an AI?
>
> You decide what your agent says about itself in its instructions. On WhatsApp you can also add
> a **Privacy line** on the **Replies** tab, which opens your agent's first reply in each new chat.

> [accordion] Is anything lost if my wallet runs out?
>
> No. Every customer message still reaches your Inbox. Only your agent's replies wait until you
> top up, and you can answer by hand in the meantime.

## Related

> [card] [Meta troubleshooting](https://docs.getsmartalex.com/meta/troubleshooting.md)
>
> Find what you see, then do what it says.

> [card] [What your agent can send on WhatsApp](https://docs.getsmartalex.com/meta/whatsapp-rich-messages.md)
>
> Photos, documents, buttons, lists, maps and products.


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