Agent skill

WhatsApp Cloud API Channel for NanoClaw

by nanocoai in nanocoai/nanoclaw

Connects NanoClaw to WhatsApp through Meta's official Business Cloud API using the Chat SDK bridge, with notes for upgrading older installs.

MITAuto-check: notesProductivity & Automation

Install WhatsApp Cloud API Channel for NanoClaw

skills CLI
$ npx skills add nanocoai/nanoclaw --skill add-whatsapp-cloud -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install nanocoai/nanoclaw add-whatsapp-cloud --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/nanocoai/nanoclaw.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/add-whatsapp-cloud .claude/skills/add-whatsapp-cloud && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
add-whatsapp-cloud
GitHub stars
31k
Token cost
~1.9k tokens
SKILL.md length
927 words
Files
3
Skills in repo
59
Repo updated
First seen
Licence
MIT

At a glance

Connects NanoClaw to WhatsApp through Meta's official Business Cloud API using the Chat SDK bridge, with notes for upgrading older installs.

  • Works in 4 steps: Copy the adapter → Register the adapter → Install the adapter package → …
  • Using the official WhatsApp Business Cloud API with a NanoClaw agent
  • SKILL.md covers Apply, Upgrading an existing install, Credentials and Next Steps, plus 2 more sections
  • Calls ngrok and pnpm; needs WHATSAPP_VERIFY_TOKEN and WHATSAPP_ACCESS_TOKEN

What it does

This channel uses Meta's official WhatsApp Business Cloud API, not the native Baileys adapter. The adapter is copied from the `channels` branch, registered with one import and backed by the pinned `@chat-adapter/whatsapp` package. A registration test checks that `whatsapp-cloud` is in the registry, and real delivery needs a WhatsApp Business number and a webhook.

A section covers upgrading. Older copies registered under the bare `whatsapp` key, which collided with the native adapter, and now register as a distinct `whatsapp-cloud` instance while the channel type stays `whatsapp`. As a result the webhook route moves from `/webhook/whatsapp` to `/webhook/whatsapp-cloud`, and installs that ran the previous version must account for that.

When your agent uses it

  • Using the official WhatsApp Business Cloud API with a NanoClaw agent
  • Upgrading an install that used the older bare whatsapp registration
  • Updating a webhook URL after the route changed

Example prompts

  • “Add the WhatsApp Cloud API channel to NanoClaw.”
  • “My WhatsApp webhook stopped working after an upgrade. Check which route the adapter uses now.”
  • “Install the WhatsApp Cloud adapter and run its registration test.”

Requirements

  • A NanoClaw installation with pnpm
  • A WhatsApp Business number with Cloud API access

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Copy the adapter
  2. Register the adapter
  3. Install the adapter package
  4. Build and validate

What it can do on your machine

Read from SKILL.md and the folder at commit 66f0823. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • ngrok
    • pnpm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • developers.facebook.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • WHATSAPP_VERIFY_TOKEN
    • WHATSAPP_ACCESS_TOKEN
    • WHATSAPP_APP_SECRET

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

WhatsApp Cloud API Channel for NanoClaw loads about 1.9k tokens when it runs. Until then it costs about 23 tokens; SKILL.md has 927 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~23
When it runs · the whole SKILL.md, loaded when a task matches
~1.9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:105
    ed `ncl` or the OneCLI vault instead of `.env` by swapping only the consumer.
  • NoteMentions a .env fileSKILL.md:106
    Here they go to `.env` (set-if-absent — a value you've already filled in is
  • NoteMentions a .env fileSKILL.md:159
    ice (see Next Steps) so the adapter and `.env` values are live.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from nanocoai/nanoclaw at commit 66f0823, republished under its MIT licence (© nanocoai). 927 words, ~1,903 tokens.

Download SKILL.mdSave it as .claude/skills/add-whatsapp-cloud/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
add-whatsapp-cloud
description
Add WhatsApp Business Cloud API channel via Chat SDK. Official Meta API.

Add WhatsApp Cloud API Channel

Connect NanoClaw to WhatsApp via the official Meta WhatsApp Business Cloud API. NanoClaw doesn't ship channels in trunk — this skill copies the WhatsApp Cloud adapter in from the channels branch.

The mechanical steps under Apply carry nc: directive fences: an agent reads the prose and applies them, and a parser can apply them deterministically from the same document. Every directive is idempotent, so the whole skill is safe to re-run; anything a parser can't apply falls back to the prose beside it.

Apply

1. Copy the adapter

Fetch the channels branch and copy the WhatsApp Cloud adapter into src/channels/ (overwrite — the branch is canonical):

nccopy
src/channels/whatsapp-cloud.ts
src/channels/whatsapp-cloud-registration.test.ts
2. Register the adapter

Append the self-registration import to the channel barrel (skipped if the line is already present). This one line is the skill's only reach-in into core:

ncappend
import './whatsapp-cloud.js';
3. Install the adapter package

Pinned to an exact version — the supply-chain policy rejects ranges and latest:

ncdep
@chat-adapter/whatsapp@4.29.0
4. Build and validate

Build guards the typed createChatSdkBridge(...) core call and proves the dependency is installed — the import throws at evaluation if @chat-adapter/whatsapp is missing or the barrel drifts:

ncrun
pnpm run build
ncrun
pnpm exec vitest run src/channels/whatsapp-cloud-registration.test.ts

whatsapp-cloud-registration.test.ts imports the real channel barrel and asserts the registry contains whatsapp-cloud — it goes red if the import line is deleted or drifts, if the barrel fails to evaluate, or if @chat-adapter/whatsapp isn't installed (the import throws), so it also covers the dependency from step 3.

End-to-end message delivery against a real WhatsApp Business number is verified manually once the service is running — see Next Steps and the webhook setup below.

Upgrading an existing install

Older copies of the adapter registered this bridge under the bare whatsapp key, which collided with the native Baileys adapter. It now registers under a distinct whatsapp-cloud instance (channelType stays whatsapp). Two consequences for an install that ran the previous version:

  • Webhook route moves from /webhook/whatsapp to /webhook/whatsapp-cloud. Update the callback URL in your Meta App dashboard (WhatsApp > Configuration) accordingly.
  • Chat SDK state namespace moves. Subscriptions in the chat_sdk_* tables re-key under the new instance, so previously-subscribed threads may need to re-engage the bot.

Fresh installs need none of this.

Credentials

Meta app setup is human and interactive — these steps are prose, not directives (no parser can click through the Meta dashboard). A recipe rebuild produces a compiling, registered adapter that cannot receive a message until they're done.

  1. Go to Meta for Developers and create an app (type: Business).
  2. Add the WhatsApp product.
  3. Go to WhatsApp > API Setup:
    • Note the Phone Number ID (not the phone number itself).
    • Generate a permanent System User access token with whatsapp_business_messaging permission.
  4. Go to WhatsApp > Configuration:
    • Set webhook URL: https://your-domain/webhook/whatsapp-cloud.
    • Set a Verify Token (any random string you choose).
    • Subscribe to webhook fields: messages.
  5. Copy the App Secret from Settings > Basic.
Store the credentials

Capture the four values, then write them. prompt only asks and binds the answer to a name; a separate directive consumes it — so the same prompts could feed ncl or the OneCLI vault instead of .env by swapping only the consumer. Here they go to .env (set-if-absent — a value you've already filled in is never overwritten):

ncprompt
Paste the System User access token — WhatsApp > API Setup, with `whatsapp_business_messaging` permission.
ncprompt
Paste the Phone Number ID — WhatsApp > API Setup (not the phone number itself).
ncprompt
Paste the App Secret — Settings > Basic.
ncprompt
Paste the Verify Token — the random string you set under WhatsApp > Configuration.
ncenv-set
WHATSAPP_ACCESS_TOKEN={{access_token}}
WHATSAPP_PHONE_NUMBER_ID={{phone_number_id}}
WHATSAPP_APP_SECRET={{app_secret}}
WHATSAPP_VERIFY_TOKEN={{verify_token}}
Webhook server

The Chat SDK bridge automatically starts a shared webhook server on port 3000 (WEBHOOK_PORT to change it), handling /webhook/whatsapp-cloud. This port must be publicly reachable for Meta to deliver events. Running locally, expose it with ngrok (ngrok http 3000), a Cloudflare Tunnel, or a reverse proxy on a VPS — the resulting public URL is the base for the webhook URL set under WhatsApp > Configuration above.

Show full SKILL.md (339 more words)Show less

Next Steps

If you're in the middle of /setup, return to the setup flow now.

Otherwise, run /manage-channels to wire this channel to an agent group.

Channel Info

  • type: whatsapp-cloud
  • terminology: WhatsApp Cloud API supports 1:1 conversations only (no group chats). Each conversation is with a phone number.
  • how-to-find-id: The platform ID is the Phone Number ID from the Meta Business dashboard (not the phone number itself). Find it under WhatsApp > API Setup.
  • supports-threads: no
  • typical-use: Interactive 1:1 chat -- direct messages only
  • default-isolation: Same agent group if you're the only person messaging the bot. Each additional person who messages gets their own conversation automatically, but they share the agent's workspace and memory -- use a separate agent group if you need information isolation between different contacts.

Troubleshooting

Meta's "Verify and save" fails on the webhook. Meta hits your URL with a challenge the moment you click, so the endpoint must already be publicly reachable at /webhook/whatsapp-cloud (shared webhook server, port 3000) and the service must be running with WHATSAPP_VERIFY_TOKEN set to exactly the string you typed under WhatsApp > Configuration. Start or restart the service first, then click verify.

Everything works for a day, then all calls 401. You stored the temporary token from WhatsApp > API Setup, which expires in ~24 hours. Create a System User under Business Settings → Users, grant it the app with whatsapp_business_messaging, generate a permanent token, and replace WHATSAPP_ACCESS_TOKEN.

Outbound messages are accepted but never delivered. Two Meta-side gates: while the app is in development mode you can only message numbers added to the recipient allowlist in API Setup; and free-form replies are only allowed within 24 hours of the user's last inbound message — outside that window you need an approved template. Also confirm WHATSAPP_PHONE_NUMBER_ID is the Phone Number ID, not the phone number itself.

Adapter installed but nothing flows. Run pnpm exec vitest run src/channels/whatsapp-cloud-registration.test.ts — red means the barrel import or the @chat-adapter/whatsapp install drifted, so re-run the Apply steps. If green, restart the service (see Next Steps) so the adapter and .env values are live.

© nanocoai, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files in .claude/skills/add-whatsapp-cloud of nanocoai/nanoclaw.

  • SKILL.md
  • REMOVE.md
  • apply-fixtures.json

Open the folder on GitHubat commit 66f0823

Compare with similar skills

WhatsApp Cloud API Channel for NanoClaw next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

WhatsApp Cloud API Channel for NanoClaw compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
WhatsApp Cloud API Channel for NanoClaw this skillnanocoai/nanoclaw31k—~1.9kAutomated safety check: NotesMIT
Ak Dev New Messaging Integrationyaalalabs/agent-kernel192—~4.6kAutomated safety check: PassApache-2.0
Ak Add Integrationyaalalabs/agent-kernel192—~3.1kAutomated safety check: PassApache-2.0
Integrate Whatsappgokapso/agent-skills177—~4.8kAutomated safety check: PassNone
Integration WebhooksBuilderIO/agent-native7.1k—~5.3kAutomated safety check: PassNone
MoltflowLeoYeAI/openclaw-master-skills2.2k—~3.8kAutomated safety check: PassMIT

Similar skills

  • Ak Dev New Messaging Integration

    yaalalabs/agent-kernel

    Step-by-step guide for adding a new messaging platform integration to Agent Kernel.

    192 GitHub stars~4.6k tokensUpdated today
    Productivity & AutomationAuto-check passed
  • Ak Add Integration

    yaalalabs/agent-kernel

    Add a messaging platform integration to an existing Agent Kernel project.

    192 GitHub stars~3.1k tokensUpdated today
    Productivity & AutomationAuto-check passed
  • Integrate Whatsapp

    gokapso/agent-skills

    Connect WhatsApp to your product with Kapso: onboard customers with setup links, detect connections, receive events via webhooks, and send messages/templates/media.

    177 GitHub stars~4.8k tokensUpdated 2 days ago
    Backend & APIsAuto-check passed
  • Integration Webhooks

    BuilderIO/agent-native

    Cross-platform pattern for handling messaging integration webhooks (Slack, Telegram, WhatsApp, email, etc.) on serverless hosts.

    7.1k GitHub stars~5.3k tokensUpdated today
    Backend & APIsAuto-check passed
  • Moltflow

    LeoYeAI/openclaw-master-skills

    WhatsApp Business automation API for sessions, messaging, groups, labels, and webhooks.

    2.2k GitHub stars~3.8k tokensUpdated 2 mo ago
    Backend & APIsAuto-check passed
  • Evogo

    LeoYeAI/openclaw-master-skills

    Complete WhatsApp automation via Evolution API Go v3 - instances, messages (text/media/polls/carousels), groups, contacts, chats, communities, newsletters, and real-time webhooks

    2.2k GitHub stars~4.6k tokensUpdated 2 mo ago
    Backend & APIsAuto-check passed

More from nanocoai/nanoclaw

All 59 skills in this repo
  • Installs or refreshes Iron Proxy and its Iron Control web console for NanoClaw, with a local Docker setup, database, credentials and a human approval bridge.

    31k GitHub stars~4.6k tokensUpdated 3 days ago
    Auto-check: notes
  • Installs or refreshes OneCLI as the gateway provider for NanoClaw, copying the adapter files, registering the provider and running the setup script.

    31k GitHub stars~1.1k tokensUpdated 3 days ago
    Auto-check: notes
  • Agent Browser

    nanocoai/nanoclaw

    Drives a web browser from the shell with the agent-browser CLI: open pages, read an element snapshot, click and fill by reference, grab text and screenshots.

    31k GitHub starsUsed in 2 repos~1.6k tokens
    Auto-check passed
  • Guides a conversational migration from an OpenClaw install to NanoClaw v2, carrying over identity, channel credentials, scheduled tasks and workspace files.

    31k GitHub stars~6k tokensUpdated 3 days ago
    Auto-check: notes
  • Wires up an additional phone number onto an already-installed Dial channel, so one NanoClaw install answers SMS and AI voice calls on more than one line.

    31k GitHub stars~1.5k tokensUpdated 3 days ago
    Auto-check passed
  • Add Dial Tool

    nanocoai/nanoclaw

    Installs the `dial` CLI and a credential in NanoClaw agent containers so chosen agents can send SMS, place AI voice calls and receive verification codes.

    31k GitHub stars~4.4k tokensUpdated 3 days ago
    Auto-check passed

Works with

Questions about WhatsApp Cloud API Channel for NanoClaw

What does WhatsApp Cloud API Channel for NanoClaw do?

Connects NanoClaw to WhatsApp through Meta's official Business Cloud API using the Chat SDK bridge, with notes for upgrading older installs. This channel uses Meta's official WhatsApp Business Cloud API, not the native Baileys adapter. The adapter is copied from the `channels` branch, registered with one import and backed by the pinned `@chat-adapter/whatsapp` package.

When should I use WhatsApp Cloud API Channel for NanoClaw?

WhatsApp Cloud API Channel for NanoClaw fits situations like: using the official WhatsApp Business Cloud API with a NanoClaw agent; upgrading an install that used the older bare whatsapp registration; updating a webhook URL after the route changed.

How do I install WhatsApp Cloud API Channel for NanoClaw in Claude Code?

Run `npx skills add nanocoai/nanoclaw --skill add-whatsapp-cloud -a claude-code`. Or copy the skill folder (.claude/skills/add-whatsapp-cloud in nanocoai/nanoclaw) into .claude/skills/add-whatsapp-cloud in your project. Claude Code loads it when a task matches its description.

How do I install WhatsApp Cloud API Channel for NanoClaw in Codex?

Run `npx skills add nanocoai/nanoclaw --skill add-whatsapp-cloud -a codex`. Or copy the skill folder (.claude/skills/add-whatsapp-cloud in nanocoai/nanoclaw) into .agents/skills/add-whatsapp-cloud in your project. Codex loads it when a task matches its description.

Can I use WhatsApp Cloud API Channel for NanoClaw in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add nanocoai/nanoclaw --skill add-whatsapp-cloud -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/add-whatsapp-cloud, .gemini/skills/add-whatsapp-cloud, .github/skills/add-whatsapp-cloud and .opencode/skills/add-whatsapp-cloud in your project.

What does WhatsApp Cloud API Channel for NanoClaw need to run?

Going by SKILL.md and its folder, WhatsApp Cloud API Channel for NanoClaw needs the command-line tools its instructions call (ngrok and pnpm) and credentials named WHATSAPP_VERIFY_TOKEN, WHATSAPP_ACCESS_TOKEN and WHATSAPP_APP_SECRET. Our summary lists: A NanoClaw installation with pnpm; A WhatsApp Business number with Cloud API access.

Does WhatsApp Cloud API Channel for NanoClaw access the network?

SKILL.md names 1 domain. As links in the text: developers.facebook.com. This is read from the text; nothing was executed.

Is WhatsApp Cloud API Channel for NanoClaw safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does WhatsApp Cloud API Channel for NanoClaw use?

WhatsApp Cloud API Channel for NanoClaw is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does WhatsApp Cloud API Channel for NanoClaw use?

About 1.9k tokens (SKILL.md is roughly 7.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to WhatsApp Cloud API Channel for NanoClaw?

Skills that share tags, products or a category with WhatsApp Cloud API Channel for NanoClaw: Ak Dev New Messaging Integration (yaalalabs/agent-kernel, 192 stars), Ak Add Integration (yaalalabs/agent-kernel, 192 stars), Integrate Whatsapp (gokapso/agent-skills, 177 stars) and Integration Webhooks (BuilderIO/agent-native, 7.1k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains WhatsApp Cloud API Channel for NanoClaw?

nanocoai (a GitHub organization) maintains it in nanocoai/nanoclaw, which has 30,902 GitHub stars. The repository holds 59 skills in this directory. The repository was last updated on October 6, 2026.

Source: nanocoai/nanoclaw on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.