OpenClaw + WhatsApp — Native Channel Setup (QR Link, Pairing Rules)

WhatsApp is a native OpenClaw channel. The important decision is which number to run it on — the docs recommend a separate phone and eSIM.

⚡ Skip the boilerplate

A ready-made SOUL.md already knows the WhatsApp playbook — copy it, start your agent, ship today.

Want every guide + every template? Complete Bundle — $29 best value

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

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

🔐 Scope it down. Because the channel operates a real WhatsApp account, whoever can message that number can talk to your agent. Use an allowlist of E.164 numbers and pair before opening it up.

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

  1. Number hygiene is a security decision. A WhatsApp number has no per-message authentication, so an open bot is a spam magnet. Keep allowFrom tight.
  2. 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.
  3. Group policy defaults are conservative. If you set groupPolicy: "allowlist" and never populate groupAllowFrom, group messages are dropped silently.
  4. Media handling is heavier than text. Images, voice notes and documents are downloaded and transcribed — budget for latency and token cost.
  5. 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.

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

🔥 Get All 10 Premium Products for $29 Save 70% with the Complete Bundle
Get Bundle → Free Deployment Checklist →