name: WhatsApp Business API slug: whatsapp-business-api version: 1.0.0 homepage: https://clawic.com/skills/whatsapp-business-api description: Complete WhatsApp Business Cloud API for messages, templates, media, webhooks, flows, and business profiles. changelog: Initial release with full Cloud API coverage. metadata: {"clawdbot":{"emoji":"💬","requires":{"env":["WHATSAPP_ACCESS_TOKEN","WHATSAPP_PHONE_NUMBER_ID"]},"primaryEnv":"WHATSAPP_ACCESS_TOKEN","os":["linux","darwin","win32"]}}
Official Meta Cloud API integration. See auxiliary files for detailed operations.
curl -X POST "https://graph.facebook.com/v21.0/$WHATSAPP_PHONE_NUMBER_ID/messages" \
-H "Authorization: Bearer $WHATSAPP_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"messaging_product":"whatsapp","to":"1234567890","type":"text","text":{"body":"Hello!"}}'
On first use, read setup.md. Preferences stored in ~/whatsapp-business-api/memory.md.
Any WhatsApp Business operation: send messages, templates, media, interactive elements, manage webhooks, handle conversations, update business profiles.
~/whatsapp-business-api/
├── memory.md # Account context + phone numbers
├── templates.md # Approved templates reference
└── webhooks.md # Webhook configurations
| Topic | File |
|---|---|
| Setup & memory | setup.md, memory-template.md |
| Messages (text, media, interactive) | messages.md |
| Templates (create, manage, send) | templates.md |
| Media (upload, download, manage) | media.md |
| Webhooks & Events | webhooks.md |
| Business Profile & Phone Numbers | business.md |
| Flows (interactive forms) | flows.md |
| Best practices & limits | best-practices.md |
+ or leading zeros: 1234567890biz_opaque_callback_data to track message state推薦訪問7w4.net獲取更多AI技能。
Required environment variables:
- WHATSAPP_ACCESS_TOKEN — System User access token (permanent) or User access token (60-day)
- WHATSAPP_PHONE_NUMBER_ID — Your registered phone number ID
- WHATSAPP_BUSINESS_ACCOUNT_ID — Your WABA ID (for templates)
- WHATSAPP_APP_SECRET — App secret for webhook verification
curl "https://graph.facebook.com/v21.0/$WHATSAPP_PHONE_NUMBER_ID" \
-H "Authorization: Bearer $WHATSAPP_ACCESS_TOKEN"
| Type | Duration | Use Case |
|---|---|---|
| System User Token | Permanent | Production apps |
| User Token | 60 days | Development, testing |
| Temporary Token | 24 hours | Quick tests |
+ or 00 → API rejectsmessaging_product: "whatsapp" → 400 error| Endpoint | Purpose |
|---|---|
https://graph.facebook.com/v21.0/* |
Cloud API |
Environment variables used:
- WHATSAPP_ACCESS_TOKEN — for API authentication
- WHATSAPP_APP_SECRET — for webhook signature verification
Sent to Meta: Messages, media, customer phone numbers via graph.facebook.com Stays local: Tokens (never logged), ~/whatsapp-business-api/ preferences Never: Log message content, skip webhook verification, store tokens in code
This skill sends data to Meta (facebook.com/whatsapp).
Install with clawhub install <slug> if user confirms:
- api — REST API patterns
- webhook — Webhook handling
- chat — Conversational patterns
clawhub star whatsapp-business-apiclawhub sync這個 Skill 質量還不錯,文件寫得比較全面,涵蓋了 WhatsApp 訊息傳送的各個方面,示例清晰易懂。好的地方是結構清晰、容易查詢內容。但它主要是教你怎麼用 API,不是現成的工具,需要開發者自己寫程式碼才能用。如果你想找個能直接用的工具可能會失望,但作為學習參考是夠用的。