# WhatsApp Business (Cloud API)

> Connect a WhatsApp number through Meta's official API, keep using the Business app on the same number, and understand the 24-hour window, pricing and quality.

The Cloud API is Meta's official way for businesses to use WhatsApp, and the one to choose for a number that matters to you. You connect it by signing in with Facebook; Ñomongeta takes care of the rest.



## Before you start {#before-you-start}

- **A Facebook account** that can manage your business in Meta (your business portfolio). If you don't have a portfolio yet, Meta's window creates one.
- **A phone number** that can receive a text message or a call, for Meta's confirmation code. It can be:
  - a number that isn't on WhatsApp yet, or that you'll move off the WhatsApp apps, so it becomes an **API number**; or
  - the number of your **WhatsApp Business app**, which you keep using on your phone (see [coexistence](#keep-using-the-business-app)).
- **A payment method in Meta**, for template messages (see [what it costs](#what-it-costs)).

Only owners and admins of the workspace connect channels.

## Connect a number {#connect-a-number}

1. Go to **Channels** → **Add channel** → **WhatsApp Business (Cloud API)**.
2. Under **Which number?**, choose **A number for the API** or **My WhatsApp Business app number**.
3. Pick who answers: **Answers with** and, optionally, a **Flow**.
4. Press **Continue with Facebook**. Meta's window opens: sign in, choose your business portfolio, then choose or add the WhatsApp number. Meta sends the number a code to confirm it.
5. Back in Ñomongeta, if Meta's window shared more than one number, pick the one to use.
6. For an API number, confirm it with its 6-digit **two-step verification PIN** and press **Register number**. If the number has no PIN yet, the 6 digits you type become its PIN. We never store it.

The number shows **Live**: messages to it now reach your agent, or the flow you picked.

> [!TIP]
> Meta's window doesn't show up? Your browser may have blocked it: allow pop-ups for this site and try again. If you close it halfway, nothing is connected, and you can start over.

If you leave the PIN for later, the number waits with **Finish setup**: press **Finish setup** on it when you're ready.

## Keep using the Business app {#keep-using-the-business-app}

With **My WhatsApp Business app number** (Meta calls it *coexistence*), the number stays in the WhatsApp Business app on your phone and answers through Ñomongeta at the same time. There's no PIN step: it's live as soon as Meta's window closes.

- Messages people send reach both the app and Ñomongeta.
- Chats from before you connected stay in the app: Ñomongeta's inbox starts with the next message.
- What you type in the app reaches the contact, but doesn't show in Ñomongeta's inbox and doesn't stop the bot. To take a conversation over from the bot, answer it from the [inbox](https://nomongeta.zenhalab.com/www/nomongeta/en/docs/concepts/conversations-and-inbox).

## What you share {#what-you-share}

| | |
| --- | --- |
| Your Facebook password | Never reaches us: you sign in on Meta's own page. |
| What you grant | Permission for Ñomongeta to manage and send messages for the WhatsApp account you choose, and nothing else. |
| The access token | Stored encrypted, used only to send from and read this number. |
| Your profile, display name and number | Stay yours, in WhatsApp Manager. |

## What it costs {#what-it-costs}

Meta sets the prices and bills them to your WhatsApp Business account, with the payment method you add in Meta, never through Ñomongeta. At the time of writing, replies inside the [24-hour window](#the-24-hour-window) are free, and [templates](https://nomongeta.zenhalab.com/www/nomongeta/en/docs/channels/whatsapp-templates) are charged per delivered message, by category: marketing costs several times more than utility. Check Meta's pricing for your country before sending templates at scale.

Your Ñomongeta plan counts the number as one of your channels; see [plans and limits](https://nomongeta.zenhalab.com/www/nomongeta/en/docs/billing/plans-and-limits).

## The 24-hour window {#the-24-hour-window}

For 24 hours after a contact's last message, your agent, flows and team can send anything. After that, WhatsApp only delivers **message templates** Meta approved in advance.

- A flow's [Message step](https://nomongeta.zenhalab.com/www/nomongeta/en/docs/flow-builder/message) can carry a template, which goes instead of the step's text once the window has closed.
- In the inbox, a closed window says so and offers **Send a template**.
- Anything else sent outside the window shows "Not delivered: WhatsApp's 24-hour window is closed".

[Message templates](https://nomongeta.zenhalab.com/www/nomongeta/en/docs/channels/whatsapp-templates) explains how to create and send them.

## In the inbox {#in-the-inbox}

Messages your number sends show **Delivered** and then **Read** as WhatsApp reports them. Photos, audio, videos and documents contacts send are kept and shown in the conversation (up to 16 MB each, by default). When the bot answers, the contact's message is marked as read.

## On the channel's card {#on-the-channels-card}

- **Meta**: "Verified" with the number's display name once Meta confirmed it, and its **quality** (high, medium, low), from how people react to your messages. Low quality can limit how many people you can reach: keep messages relevant, and make opting out easy.
- **Check with Meta** asks Meta again about the number and its access.
- **Disconnect** stops answering on the number and removes Ñomongeta from its WhatsApp account. The number keeps working in WhatsApp Manager and the app; past conversations stay. **Reconnect with Facebook** connects it again.

## When Meta refuses {#when-meta-refuses}

If Meta refuses to send from the number, the channel shows **Meta refused** and says why:

| What you see | What happened | What to do |
| --- | --- | --- |
| Meta refused this number's access token (expired, revoked or without permission). Replace it, then check again. | The access was revoked or expired. | Reconnect with Facebook (or replace the token, for numbers you set up by hand). |
| Meta says this number can't send right now (not registered, restricted or a payment issue). Fix it in WhatsApp Manager, then check again. | Meta restricted the number, or there's a payment issue. | Fix it in WhatsApp Manager, then **Check with Meta**. |
| Disconnected | The business removed this platform from its WhatsApp account in Meta, so the number was disconnected. Reconnect with Facebook to answer here again. | Reconnect with Facebook. |

The next message that goes through clears the problem.

> [!WARNING]
> Meta's WhatsApp Business policy doesn't allow general-purpose AI assistants: your agent must serve your business (your products, bookings, orders, support), not answer anything for anyone. Numbers that break WhatsApp's policies can be restricted by Meta, and channels by us; see [acceptable use](https://nomongeta.zenhalab.com/www/nomongeta/en/docs/trust/acceptable-use).

## Your own Meta app (advanced) {#your-own-meta-app-advanced}

Running your own app in Meta for Developers, or a number you already set up there? Choose **Enter IDs and a token instead** in step 2 and fill in:

| Field | Where to find it |
| --- | --- |
| Phone number ID | In Meta: WhatsApp → API Setup. Digits only; incoming messages are routed by it. |
| WhatsApp Business Account ID | In Meta: WhatsApp → API Setup, under the phone number ID. Needed for [templates](https://nomongeta.zenhalab.com/www/nomongeta/en/docs/channels/whatsapp-templates). |
| Access token | A permanent system-user token. It is stored encrypted and never shown again. |
| Meta app | **My own Meta app** if the number is on your app, with its **App ID** and **App secret**; otherwise **This platform's app**. |

When you save, Ñomongeta asks Meta whether that token can use that number, and refuses it if not. Right after connecting, the channel shows its **Webhook setup**: in your Meta app, open WhatsApp → Configuration, paste the **Callback URL** and **Verify token**, and subscribe to **messages** (plus `message_template_status_update`, `message_template_quality_update` and `template_category_update`, to see Meta's template reviews here). Every delivery must be signed with your app secret: unsigned ones are refused. You can open the setup again from the channel's **Webhook setup** action.
