Add WhatsApp Cloud Channel
Installs and verifies the official Meta WhatsApp Business Cloud API channel adapter for a NanoClaw bot.
Web & APIIntermediate★ 30,471⑂ 12,865AI score 7/10Last updated: Aug 9, 2026
What it does
Wires the official Meta WhatsApp Business Cloud API into a NanoClaw install:
- Copies
whatsapp-cloud.tsand its registration test from thechannelsbranch - Appends the one self-registration import to
src/channels/index.ts - Installs
@chat-adapter/whatsapp@4.29.0at an exact pinned version (no ranges, nolatest) - Runs
pnpm run buildplus a registration test that goes red if the barrel import or the dependency drifts - Interactively prompts for the four Meta values (Phone Number ID, permanent System User token, App Secret, Verify Token) and writes them to
.envset-if-absent - Explains the shared webhook server on port 3000, the
/webhook/whatsapp-cloudroute, and ngrok / Cloudflare Tunnel exposure
Every mechanical step is expressed as an idempotent nc: directive, so the skill is safe to re-run, and upgrade notes cover the move from the old bare whatsapp key (webhook path and Chat SDK state namespace both change).
Who it's for
- Developers building a WhatsApp support or personal-assistant bot on NanoClaw
- Teams that want Meta's official API instead of the unofficial Baileys adapter
- Anyone who installed the older adapter and lost messages after the webhook route moved
- People who want a battle-tested troubleshooting checklist for webhook verification, token expiry, and the 24-hour reply window
Examples
- Fresh setup: ask "add the WhatsApp Cloud channel" — the agent copies the adapter, registers it, installs the pinned package, builds, tests, then collects your four Meta credentials into
.env. - Meta's "Verify and save" fails: walk the checklist — service running,
WHATSAPP_VERIFY_TOKENmatching exactly, port 3000 publicly reachable at/webhook/whatsapp-cloud. - Everything 401s after a day: you stored the ~24h temporary token; create a System User with
whatsapp_business_messaging, mint a permanent token, and swapWHATSAPP_ACCESS_TOKEN.
· · · Install guide · · ·
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the .claude/skills/add-whatsapp-cloud folder from the GitHub repo nanocoai/nanoclaw into my ~/.claude/skills/add-whatsapp-cloud/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/nanocoai/nanoclaw.git && mkdir -p ~/.claude/skills && cp -r nanoclaw/.claude/skills/add-whatsapp-cloud ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal and clone the repo:
git clone https://github.com/nanocoai/nanoclaw.git - Create the skills folder:
mkdir -p ~/.claude/skills - Copy the skill in:
cp -r nanoclaw/.claude/skills/add-whatsapp-cloud ~/.claude/skills/ - Enter the project and install dependencies:
cd nanoclaw && pnpm install - Start Claude Code from the project root and say: "add the WhatsApp Cloud channel".
- In Meta for Developers, create a Business-type app, add the WhatsApp product, and gather four values: Phone Number ID, a permanent System User access token, App Secret, and your chosen Verify Token — paste them into the prompts.
- For local development, expose port 3000 (
ngrok http 3000) and set the Meta webhook URL tohttps://<your-public-url>/webhook/whatsapp-cloud, subscribing to themessagesfield. - Confirm
pnpm run buildand the registration test pass, then run/manage-channelsto attach the channel to an agent group.
View source on GitHub ↗License: MIT