First, the honest part: is WhatsApp an OpenClaw channel?
WhatsApp is a native OpenClaw channel with the key channels.whatsapp. The docs recommend running it on your own number, and explicitly suggest a separate phone + eSIM so the agent never shares an identity with your personal conversations.
Most “OpenClaw + X” write-ups online get this wrong: they paste a channels: block for a tool OpenClaw has no adapter for. OpenClaw accepts that key silently (its config schema allows extra channel keys) and then nothing happens — no token, no webhook, no error. That is the single most common reason a “connected” agent stays silent.
What you can actually build with WhatsApp
- Give customers a real WhatsApp entry point with your agent answering outside office hours
- Route WhatsApp conversations into the same agent sessions that serve Telegram and Slack
- Trigger agent jobs from a WhatsApp message — “summarise my inbox”, “draft the reply”
- Keep agent conversations separate from family chat by using a dedicated number
- Have the agent read a forwarded invoice or photo and turn it into structured notes
How OpenClaw connects to WhatsApp
The channel links a WhatsApp account by QR, then relays messages into the agent and sends replies back. Access is controlled with dmPolicy, allowFrom and groupPolicy.
Whichever path you take, the agent still needs a personality and a job description. A bare API key tells OpenClaw it may call WhatsApp; a SOUL.md tells it when to call it and what a good answer looks like. Skipping that step is why most integrations produce impressive demos and nothing else.
Credentials
WhatsApp account link— a QR pairing performed once with your phone; no API key is involved
Setup
Step 1 — Decide which number it runs on
Using your personal number means the agent sits in the same inbox as your friends and your bank. The OpenClaw docs recommend a separate phone and eSIM. If you must use your own number, set a strict allowlist.
Step 2 — Link the account with the QR flow
Run the onboarding link step and scan the QR from the phone that owns the number. Linking is a one-time human action; afterwards the channel maintains the session.
Step 3 — Lock the access rules, then restart
Set dmPolicy and allowFrom before you start the gateway. Default to pairing and expand the allowlist only for numbers you trust.
Copy-paste config
{
channels: {
whatsapp: {
dmPolicy: "pairing",
allowFrom: ["+15551234567"],
groupPolicy: "allowlist",
groupAllowFrom: ["+15551234567"],
},
},
}
The raw API call underneath
The official WhatsApp Business Cloud API is a separate, metered product. If you need it, it is an HTTP API with a bearer token and a phone-number ID path:
curl -s "https://graph.facebook.com/v21.0/<PHONE_NUMBER_ID>/messages" \
-H "Authorization: Bearer $WHATSAPP_TOKEN" \
-H "Content-Type: application/json" \
-d '{"messaging_product":"whatsapp","to":"<TO>","type":"text","text":{"body":"hi"}}'
Gotchas that cost people an afternoon
- Number hygiene is a security decision. A WhatsApp number has no per-message authentication, so an open bot is a spam magnet. Keep
allowFromtight. - Linking sessions expire. If the channel goes quiet, the linked session may need re-linking; that is normal maintenance, not a bug in your config.
- Group policy defaults are conservative. If you set
groupPolicy: "allowlist"and never populategroupAllowFrom, group messages are dropped silently. - Media handling is heavier than text. Images, voice notes and documents are downloaded and transcribed — budget for latency and token cost.
- Official Cloud API ≠ the OpenClaw channel. They are different products with different billing. Do not mix credentials between them.
FAQ
Can the agent use my personal WhatsApp number?
Technically yes, and the docs support it, but they recommend a separate number. A personal number exposes your contacts' messages to the agent's context.
Does it need Meta Business verification?
Not for the native channel — you are using a normal WhatsApp account. The official Cloud API is a different path with its own verification requirements.
Can I require a pairing code before anyone gets an answer?
Yes — set dmPolicy: "pairing" and approve contacts one at a time.
Where to start
Three paths, cheapest first. The free pack is the fastest way to see the whole agent workflow end to end; the bundle is where the multi-channel setup patterns live.
🔥 Ready to Build Your AI Agent?
SOUL.md Mega Pack Complete Bundle ($29) Get SOUL.md Mega Pack → Download 5 Free TemplatesBefore you wire anything up, work through the free deployment checklist — it is the rollout order that keeps a half-configured agent from eating your quota.