whatsapp-cloud-api
Skill by sickn33
Integrates the WhatsApp Business Cloud API from Meta to send and receive messages, use templates, and automate customer service. Built for developers creating WhatsApp support flows or chatbots with Node.js or Python.
Install whatsapp-cloud-api
Built from the published package, never by AI.
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.claude/skills && cp -r /tmp/agentic-awesome-skills/skills/whatsapp-cloud-api ~/.claude/skills/whatsapp-cloud-apiRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/agentic-awesome-skills/skills/whatsapp-cloud-api ~/.gemini/antigravity-cli/skills/whatsapp-cloud-apiAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill guides an AI assistant through building WhatsApp Business integrations on Meta's official Cloud API. It covers text, template and interactive messages, webhook verification, and HMAC-SHA256 signature checks. It includes Node.js/TypeScript and Python examples, a 24-hour customer service window, a conversation state machine, and a pattern for connecting Claude API replies.
It is intended for developers who need to set up a WhatsApp Business account and phone number, or who want to add automated support to a Meta app. The source says its examples target an older Graph API version, so supported versions, pricing, and limits must be checked in Meta's documentation before use. The boilerplates are local demos. Production use needs a durable queue, idempotency, opt-out checks, and a worker.
Written from the project's SKILL.md and checked against it.
What it can do
- Send text messagesSends plain text messages to a WhatsApp number through the Graph API.
- Send template messagesSends approved template messages, for example outside the 24-hour window.
- Send interactive messagesSends reply buttons (up to 3) and list menus (up to 10 options).
- Verify webhooksAnswers Meta's GET verification request using a verify token.
- Validate webhook signaturesChecks the X-Hub-Signature-256 HMAC-SHA256 header before processing a payload.
- Manage conversation statesTracks each customer's state through a state machine for guided flows.
- Connect Claude APIDescribes routing incoming messages to Claude API and returning replies by WhatsApp.
- Scaffold a projectRuns setup_project.py to create a Node.js or Python boilerplate project.
What you need
- Meta Business Suite account
- Meta for Developers app with the WhatsApp product
- Verified WhatsApp phone number
- System User Token
- Node.js or Python runtime
Try asking
- Set up a WhatsApp Cloud API project in Node.js
- Write a webhook handler that validates X-Hub-Signature-256
- Send an interactive button menu to a WhatsApp customer
Good to know
- Examples target Graph API v21.0, an older version. Check current support in Meta's docs.
- Pricing, throughput, and template edit rules must be verified in official Meta documentation.
- Boilerplates are local demos. Production needs durable enqueue-before-ack and replay protection.
- Sending messages, deleting templates, and deployment need user-authorized scope.
Security check
F- Sends keys or private files to a web addressIn
skills/whatsapp-cloud-api/SKILL.md:axios.post(`${GRAPH_API}/${process.env
Checked automatically: skills/whatsapp-cloud-api/SKILL.md, skills/whatsapp-cloud-api/assets/boilerplate/nodejs/src/index.ts, skills/whatsapp-cloud-api/assets/boilerplate/nodejs/src/template-manager.ts, skills/whatsapp-cloud-api/assets/boilerplate/nodejs/src/types.ts, skills/whatsapp-cloud-api/assets/boilerplate/nodejs/src/webhook-handler.ts, skills/whatsapp-cloud-api/assets/boilerplate/nodejs/src/whatsapp-client.ts, skills/whatsapp-cloud-api/assets/boilerplate/python/app.py, skills/whatsapp-cloud-api/assets/boilerplate/python/template_manager.py, skills/whatsapp-cloud-api/assets/boilerplate/python/webhook_handler.py. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md19 KB -
assets/boilerplate/nodejs/.env.example741 B -
assets/boilerplate/nodejs/package-lock.json55 KB -
assets/boilerplate/nodejs/package.json616 B -
assets/boilerplate/nodejs/src/index.ts4 KB
Show all 32 files
-
assets/boilerplate/nodejs/src/template-manager.ts2 KB -
assets/boilerplate/nodejs/src/types.ts5 KB -
assets/boilerplate/nodejs/src/webhook-handler.ts5 KB -
assets/boilerplate/nodejs/src/whatsapp-client.ts5 KB -
assets/boilerplate/nodejs/tsconfig.json394 B -
assets/boilerplate/python/.env.example741 B -
assets/boilerplate/python/.snyk53 B -
assets/boilerplate/python/app.py4 KB -
assets/boilerplate/python/requirements.txt78 B -
assets/boilerplate/python/template_manager.py3 KB -
assets/boilerplate/python/webhook_handler.py4 KB -
assets/boilerplate/python/whatsapp_client.py7 KB -
assets/examples/flow-example.json6 KB -
assets/examples/interactive-menu.json5 KB -
assets/examples/template-messages.json5 KB -
assets/examples/webhook-payloads.json8 KB -
references/advanced-features.md17 KB -
references/api-reference.md16 KB -
references/automation-patterns.md20 KB -
references/compliance.md15 KB -
references/message-types.md40 KB -
references/setup-guide.md24 KB -
references/template-management.md14 KB -
references/webhook-setup.md18 KB -
scripts/send_test_message.py4 KB
And 2 more files on GitHub.
Alternatives to whatsapp-cloud-api
All alternatives →Explains how to set up and verify Zoom webhooks for event-driven workflows. Covers signature checks, event subscriptions, delivery handling, retries and event-type selection for developers.
Posts text, images and videos to Weibo, and publishes headline articles from Markdown files. It works through a real Chrome browser over CDP. The scripts only fill in the content, and the user reviews and publishes manually.
Adds another phone number to an existing Dial channel in NanoClaw, so one install can answer SMS and AI voice calls on several numbers. Intended for operators who already run Dial and want a second or third line.
Explains how to set up and use Zoom WebSockets for persistent, low-latency Zoom event streams. Intended for workflows where WebSockets are preferred over webhooks.
Adds personal WeChat support to NanoClaw through Tencent's official iLink Bot API. It uses long-polling and QR code login, so no public webhook URL is needed. It is for NanoClaw users who want a personal WeChat bot channel.
Guides AI assistants through the bundled Zoom MCP connectors for meetings, recordings, meeting assets and transcripts. Intended for planning or troubleshooting tool-based Zoom access after routing to an MCP workflow.
Compare with setup-zoom-webhooks, baoyu-post-to-weibo or add-dial-number
whatsapp-cloud-api: common questions
Does it need a Meta Business account?
The source lists a Meta Business Suite account, a Meta for Developers app with the WhatsApp product, a verified phone number, and a System User Token as prerequisites.
When can it send free-form messages?
Within 24 hours after the customer's last message, any message type can be sent. Outside that window, only approved template messages can be used.
Is HMAC signature validation enough for webhooks?
No. The source says HMAC alone does not prevent replay, so production needs idempotency and replay protection.
How do I install whatsapp-cloud-api?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is whatsapp-cloud-api free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is whatsapp-cloud-api safe to use?
It scores 92 of 100. Grades: maintenance A, licence A, quality A. Security check: grade F (sends keys or private files to a web address). Review the code before you install. How grades work.
What are alternatives to whatsapp-cloud-api?
Similar skills: setup-zoom-webhooks, baoyu-post-to-weibo, add-dial-number, setup-zoom-websockets.
