whatsapp-cloud-api
Skill2 starsChanged 3 months agoMITView on GitHub
Use this skill when writing, editing, reviewing, or debugging integrations with Meta WhatsApp Cloud API or WhatsApp Business Platform: Messages API, service messages, templates, media, documents, interactive messages, reactions, locations, webhooks, delivery statuses, errors, phone number IDs, WABA IDs, access tokens, message IDs (wamid), WhatsApp Manager, calling, or Meta Business Manager. Applies to any language or framework.
- Reads credentials
2 other projects use a version of this.
Adopted by
Most recently taken up by
- guisa17/whatsapp-cloud-api-skilltheir own version, first seen Oct 15, 2026
- vobase/vobasetheir own version, first seen Apr 25, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- vobase/vobase★ 60same name
- guisa17/whatsapp-cloud-api-skill★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository9 other files it gives its agents.
- animejsSkill
- container-security-auditSkill
- tiger-styleSkill
- nextjs-security-reviewSkill
- reactflowSkill
- react-security-reviewSkill
- spec-locked-tddSkill
- structural-refactorSkill
- whatsapp-flows-jsonSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 5 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
Treat primary send reference as canonical for outbound payloads: …
- Distinctive: line 21
Use bundled references as routing map and durable conventions only.
- Very specific: line 25
Read references/doc-map.md first to pick official Meta links quickly.
- Very specific: line 26
Read references/messages-api.md before sending or reviewing outbound messages, phone formats, service windows, status interpretation, or …
- Very specific: line 27
Read references/templates-media-calling.md before implementing templates, template builders, media upload/download, document messages, or …
- Very specific: line 28
Read references/webhooks-and-errors.md before implementing webhook verification, signature validation, idempotency, delivery statuses, or …
- Distinctive: line 38
Never scatter raw Graph API POST calls through business code.
- Distinctive: line 51
Do not hardcode access tokens, phone number IDs, WABA IDs, or Graph API versions in call sites.
- Distinctive: line 71
Keep webhook verification and signature validation on raw body.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
WhatsApp Cloud API
Framework-agnostic rules for Meta WhatsApp Cloud API integrations. Do not bind this skill to a specific app, product, or business domain. Adapt names, config, logging, and persistence to the current codebase.
Required Doc Freshness Workflow
Fetch current Meta docs before changing WhatsApp behavior. Graph API versions, payload fields, template rules, media limits, and errors drift.
- Read
references/doc-map.md. - Fetch exact official Meta page(s) for task. Use
.mdvariants when available; if a.mdendpoint 404s, fetch HTML. - Treat primary send reference as canonical for outbound payloads: https://developers.facebook.com/documentation/business-messaging/whatsapp/reference/whatsapp-business-phone-number/message-api
- Base endpoint, field, error, media, webhook, and calling decisions on fetched Meta docs, not memory, old snippets, or Postman alone.
- Mention fetched docs when handing off non-trivial WhatsApp work.
Use bundled references as routing map and durable conventions only. Do not treat them as substitute for fresh docs.
Reference Routing
- Read
references/doc-map.mdfirst to pick official Meta links quickly. - Read
references/messages-api.mdbefore sending or reviewing outbound messages, phone formats, service windows, status interpretation, or delivery sequencing. - Read
references/templates-media-calling.mdbefore implementing templates, template builders, media upload/download, document messages, or WhatsApp Calling. - Read
references/webhooks-and-errors.mdbefore implementing webhook verification, signature validation, idempotency, delivery statuses, or Cloud API error handling.
Integration Shape
Keep layers separate:
- Route/controller: public webhook verification and webhook receipt only.
- Service/client: signs/verifies, builds payloads, calls Graph API, parses responses, emits domain events/logs.
- Business layer: decides why a message/call/template should be sent.
Never scatter raw Graph API POST calls through business code. Centralize outbound requests so auth, timeouts, logging, masking, retries, and error handling stay consistent.
Config Baseline
Common settings:
WHATSAPP_ACCESS_TOKEN: bearer token. Prefer system-user or business-integration system-user token for server integrations.WHATSAPP_PHONE_NUMBER_ID: sender phone number ID used in message/media endpoints.WHATSAPP_BUSINESS_ACCOUNT_ID: WABA ID for management APIs such as templates.WHATSAPP_VERIFY_TOKEN: your webhook challenge secret.WHATSAPP_APP_SECRET: app secret forX-Hub-Signature-256validation.WHATSAPP_API_VERSION: Graph API version, for examplev25.0.
Do not hardcode access tokens, phone number IDs, WABA IDs, or Graph API versions in call sites. Redact tokens and unmasked phone numbers from logs.
Implementation Checklist
Before code:
- Fetch relevant official docs and note Graph API version.
- Identify message type and exact endpoint.
- Confirm service window vs template requirement.
- Confirm opt-in basis.
- Confirm phone number ID, WABA ID, token permissions, app secret, and webhook subscriptions.
While coding:
- Centralize Graph API request builder.
- Set explicit timeout.
- Mask phone numbers.
- Capture
wamid, code, details, andfbtrace_id. - Validate media MIME/size before send.
- Validate template name, language, component count, and param format.
- Keep webhook verification and signature validation on raw body.
- Make webhook processing idempotent.
Before saying done:
- Show exact docs fetched.
- Show target endpoint/payload shape used.
- Distinguish request accepted from delivered/read.
- State what was locally validated and what needs Meta sandbox/live validation.
Anti-Patterns
- Treating HTTP 200 send response as delivery success.
- Sending service messages outside 24-hour customer service window.
- Hardcoding template names, token, phone number ID, WABA ID, or API version.
- Logging unmasked phone numbers, tokens, or full webhook payloads with PII.
- Blocking webhook response on heavy DB/business work.
- Ignoring
statuses[].errors. - Retrying
131049aggressively. - Implementing calling without checking explicit calling prerequisites and country restrictions.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

