> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.moyoinnovations.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.moyoinnovations.com/_mcp/server.

# WhatsApp

> Connect a WhatsApp Business number so customer messages land in your CRM inbox.

Connecting WhatsApp lets customer messages arrive as conversations in your
CRM, creates a lead automatically the first time someone new messages you,
and lets your team reply from the shared inbox.

Setup happens in two places: **Moyo** (CRM → Settings → WhatsApp) and the
**Meta app dashboard** at [developers.facebook.com](https://developers.facebook.com).
Both halves are required. Finishing only the Moyo half is the most common
reason messages never arrive — Moyo will be ready to receive them, but Meta
will not have been told where to send them.

> **Note**
>
> You need a Meta app with WhatsApp added, and a WhatsApp Business Account
> (WABA). Meta's test number works for trying this out, with the limits noted
> at the end.

## 1. Collect four values from Meta

In your Meta app under **WhatsApp → API Setup**:

| Value                            | Where it is                                                           |
| -------------------------------- | --------------------------------------------------------------------- |
| **Phone number ID**              | Under the sending number — a long number, not the phone number itself |
| **WhatsApp Business Account ID** | On the same screen                                                    |
| **Access token**                 | See the warning below — do **not** use the temporary one              |
| **App secret**                   | App settings → Basic → App secret                                     |

> **Warning**
>
> **Do not use the access token shown on the API Setup screen.** It expires
> after 24 hours. Everything will work today and stop tomorrow with an
> authentication error.
>
> Create a permanent one instead: **Business Settings → Users → System Users →
> Add**, give it access to your WABA, then **Generate token** with the
> `whatsapp_business_messaging` and `whatsapp_business_management` permissions
> and set the expiry to **Never**.

## 2. Enter them in Moyo

Go to **CRM → Settings → WhatsApp** and fill in the four values, plus a
**verify token** — any string you invent. You will paste the same string into
Meta in the next step; it exists only so Meta can prove to Moyo that a
webhook request is genuinely from Meta.

Save, then switch the connection **on**.

## 3. Point Meta's webhook at Moyo

Back in the Meta app, under **WhatsApp → Configuration → Webhook**, click
**Edit** and enter:

* **Callback URL** — `https://api.moyoinnovations.com/api/v1/webhooks/whatsapp`
* **Verify token** — the same string you invented in step 2

Click **Verify and save**. Meta calls Moyo immediately to check the token; if
it fails, the token does not match what you saved in step 2.

## 4. Subscribe to the `messages` field

Still under **Configuration → Webhook**, click **Manage** and tick
**`messages`**.

> **Warning**
>
> This step is easy to miss and produces no error when skipped. The webhook
> shows as verified, everything looks correct, and no message ever arrives.

## 5. Subscribe your app to your WhatsApp Business Account

This is the step with no button in the dashboard, and the last thing that
silently blocks delivery.

A WhatsApp Business Account delivers messages to the apps subscribed to it.
Until your app is on that list, Meta routes your messages elsewhere —
usually to its own built-in test viewer — and Moyo is never called.

Use Meta's [Graph API Explorer](https://developers.facebook.com/tools/explorer/):
select your app, then send:

```
POST /v21.0/<YOUR_WABA_ID>/subscribed_apps
```

A response of `{"success": true}` means it worked. You can confirm with
`GET /v21.0/<YOUR_WABA_ID>/subscribed_apps`, which should now list your app.

> **Note**
>
> Several apps can be subscribed to one WABA at the same time, and Meta
> delivers to all of them. If Meta's own test app is already listed, you can
> leave it — you only need to add yours.

## 6. Send a test message

Message your WhatsApp number from a phone. Within a second or two you should
see the conversation in **CRM → Conversations**, a lead created for the
sender, and a notification.

## Using Meta's test number

Meta's test number is fine for trying this out, with two limits that surprise
people:

* **It can only message numbers you register first.** Add them under
  **WhatsApp → API Setup → To → Manage phone number list**. Sending to
  anyone else fails with *"not on the allowed recipient list"*.
* **It is not your brand.** Customers see Meta's test number, not your
  business.

Both limits disappear once you add your own business number to the WABA.

## When messages are not arriving

Work down this list — it is ordered by how often each one is the cause.

1. **Is the app subscribed to the WABA?** (step 5) — by far the most common.
2. **Is the `messages` field ticked?** (step 4)
3. **Is the callback URL exactly right**, including `/api/v1`? (step 3)
4. **Is the connection switched on** in Moyo? (step 2)
5. **Has the access token expired?** If you used the API Setup token, it has.
   Replace it with a System User token and use **Rotate access token**.

## When replies fail to send

The reason appears under the failed message in the conversation. The usual
causes:

* **Recipient not on the allowed list** — a test-number limit; see above.
* **The 24-hour window has closed.** WhatsApp only allows free-form replies
  within 24 hours of the customer's last message. After that you must use an
* **The access token expired or was revoked** — rotate it, as above.

## Campaign send speed (self-hosted)

Campaign sends are throttled to 10 messages per second per WhatsApp connection,
shared across all workers through Redis. If Redis is unreachable, each worker
falls back to counting on its own and logs a warning
(`WhatsApp rate limiter: Redis unavailable`) - limits are then **not** shared
between workers. If you run more than one worker, set
`WHATSAPP_FALLBACK_REPLICAS` to the worker count so the fallback divides the
cap and the fleet total stays within the intended ceiling. The default is `1`.

## Message Cost Meter & Rate Card (Meta 1 Oct 2026 Schedule)

Moyo tracks monthly outbound WhatsApp message volume by category and estimates billing costs in INR (+ 18% GST) under Meta's Cloud API pricing structure effective **1 October 2026**:

| Category           | Default Rate (INR) | Notes                                                   |
| ------------------ | ------------------ | ------------------------------------------------------- |
| **Marketing**      | ₹0.8600 / msg      | Broadcasts, promotions, campaigns                       |
| **Utility**        | ₹0.1150 / msg      | Order alerts, invoices, transaction updates             |
| **Authentication** | ₹0.1150 / msg      | One-time passcodes and account verification             |
| **Service**        | ₹0.1150 / msg      | Customer care; first 1,000 conversations/month are free |

### Free Service Allowance

Meta provides 1,000 free service (customer-initiated) conversations each month per WhatsApp Business Account. Moyo displays a live meter showing your used and remaining free conversations, and automatically begins calculating cost at the service rate once the allowance is exhausted.

### Campaign Broadcast Cost Preview

When creating marketing campaigns in **CRM → Campaigns**, Step 3 (Review & Broadcast) calculates an instant cost estimate based on your template's registered category, the reachable recipient count, and applicable 18% GST before you enqueue dispatches.

### Custom Rate Cards

Organization admins can customize the per-message rates or allowance in **CRM → Settings → WhatsApp → Edit Rate Card** to match enterprise or custom pricing agreements with Meta or BSPs.