# Set up waba.cloud

Instructions for an AI assistant helping a person connect WhatsApp Business through waba.cloud. Follow the steps in order, do the work yourself where you can, and ask the person only for what you cannot do (clicks in their app, the email code, the Facebook login).

waba.cloud is a free, open-source WhatsApp Cloud API exposed as a remote MCP server: `https://mcp.waba.cloud/mcp`. Free to use; for enterprise (SLAs, compliance, dedicated support), email support@waba.cloud.

## 1. Connect the MCP server

Work out where you are running, then do the matching step.

- **Claude:** In Claude, open Customize → Connectors. Click Add custom connector and paste the URL below. Click Connect and sign in with your email. The URL is `https://mcp.waba.cloud/mcp`.
- **ChatGPT:** In ChatGPT, open Plugins and click +. Choose Add custom MCP server and paste the URL below. Sign in with your email when asked. The URL is `https://mcp.waba.cloud/mcp`. (Available on Business, Enterprise and Edu plans.)
- **Grok:** In Grok, open Connectors. Click New Connector → Custom and paste the URL below. Sign in with your email when asked. The URL is `https://mcp.waba.cloud/mcp`.
- **Claude Code:** Run this in your terminal. Then run /mcp in Claude Code and sign in. Run: `claude mcp add --transport http waba https://mcp.waba.cloud/mcp`
- **Codex:** Run this in your terminal. It adds the server and opens the sign-in. Run: `codex mcp add waba --url https://mcp.waba.cloud/mcp && codex mcp login waba`
- **Cursor, VS Code or another MCP client:** add a remote (Streamable HTTP) server named `waba` with the URL `https://mcp.waba.cloud/mcp`. Sign-in uses OAuth.
- **No way to add an MCP server:** use the signup server at `https://mcp.waba.cloud/mcp/signup` (call `signup_start`, then `signup_verify` with the code from the person's email). It returns an API key; send it as `Authorization: Bearer wk_live_...` to `https://mcp.waba.cloud/mcp`.

In a chat app (Claude, ChatGPT, Grok) you cannot add the connector yourself: give the person the exact clicks above and the URL, and wait until they say it's connected. A terminal agent can run the command, then the person may need to restart or reload it.

Sign-in is by email code. There is no password. Your agent does the work; the person can see everything (numbers, logs, webhooks, API keys, team) in the console. To open it for them, call `console_login_link` and give them the link: it signs them straight in. Otherwise they sign in at https://waba.cloud/login.

## 2. Follow the setup checklist

Call `setup_status`. It lists every step, who does it (you, the person, or Meta), and what to do now in `next`. Work through it, calling it again after each step. `workspace_get` shows the same next step.

Start by asking the person a few questions, conversationally, and save the answers with `setup_profile_set`:

- What they'll use WhatsApp for: support, notifications (order updates, reminders), marketing, sales.
- Which number, and whether it's new, on the WhatsApp Business app, on personal WhatsApp, or with another provider.
- Where their customers are, their business name and website.
- Where their customer list and marketing consent come from.
- Their own WhatsApp number, for a test message at the end.

## 3. Connect a WhatsApp number

The checklist recommends a mode from their answers:

- **coexistence:** they keep the WhatsApp Business app on their phone; chats and contacts are copied in.
- **cloud_api:** a number used only through the API.

Call `onboarding_start` and give the person the link. They log in to Facebook and pick or create a WhatsApp Business Account there. Never ask for their Facebook password. Poll `onboarding_status` and explain each screen if they get stuck.

Things only the person can do, which the checklist spells out: add a payment method in WhatsApp Manager (Meta bills them directly for templates), verify their business with Meta to raise sending limits, and fix a declined display name.

## 4. Contacts, consent and templates

- Import people who agreed to marketing with `contact_import_opt_ins`, with where consent came from. Import their unsubscribe or do-not-contact list with `suppression_add`.
- People who reply STOP are added to the do-not-contact list automatically. Sends to them are refused; don't work around it.
- Draft templates for their use cases, show the person the wording, `template_validate`, then `template_create`. Wait for `template.status_updated` to say APPROVED.
- Inside 24 hours of the customer's last message you can send free-form messages. Always pass `idempotency_key`.
- Finish with a test: the person sends "hi" to the business number and you reply. Setup is done when they see it arrive.

## 5. Receive replies

Either poll `events_poll` with its cursor, or register an HTTPS endpoint with `webhook_create`. Webhooks are signed with Standard Webhooks (`webhook-id`, `webhook-timestamp`, `webhook-signature`), retried with backoff, and can be replayed. `webhook_event_types` lists every event.

## Rules that keep numbers healthy

- New workspaces have daily limits; `workspace_get` shows them and current usage.
- High block, spam-report or opt-out rates pause sending automatically. Don't message people who haven't asked to hear from the business.
- Errors include a `hint`. Follow it.

## Help

- Support: support@waba.cloud
- Code and self-hosting: https://github.com/periskope-org/waba
- Privacy: https://mcp.waba.cloud/privacy · Terms: https://mcp.waba.cloud/terms
