- Home
- Skills
- APIs & Backend
- Send and Read WhatsApp Messages (Cloud API)
More screenshots
Works with the AI Agents you already use
Send and Read WhatsApp Messages (Cloud API)
This skill teaches your agent the rules of Meta's official WhatsApp Cloud API so it sends messages that actually arrive, and only to the people you meant.
Free
Send and Read WhatsApp Messages (Cloud API)
Example session with this skill installed
Did anyone write to us on WhatsApp tonight? If Maria asked whether we're open, tell her yes, until 11pm.
- Read your context and instructions
- Compiled the send and read
Summary
One new message tonight
Maria (+39 333 123 4567) asked at 21:04 whether you're open. She wrote less than 24 hours ago, so a free-form reply is allowed. The server is in dry-run mode, so nothing has been sent yet. Here's the exact request for you to approve.
| Check | Result |
|---|---|
| Sending number | Quality rating GREEN, OK to send |
| New messages | 1, from Maria: "Ciao! Siete aperti stasera?" |
| 24-hour window | Open (she wrote at 21:04) → send_text |
| Allowlist | +39 333 123 4567 is allowed |
| Mode | WHATSAPP_DRY_RUN=1, not sent |
Reply (in Italian, matching her message): "Sì, fino alle 23! 🍕"
{
"dry_run": true,
"would_post": "<PHONE_NUMBER_ID>/messages",
"body": {
"messaging_product": "whatsapp",
"recipient_type": "individual",
"to": "393331234567",
"type": "text",
"text": { "body": "Sì, fino alle 23! 🍕", "preview_url": false }
}
}
If the window had been closed, the server would have returned Graph API error 131047 with the hint "use send_template". I'd then call list_templates, use only an APPROVED one (for example opening_hours with ["Maria", "23:00"]) and tell you that Meta bills template messages.
Next steps
- Reply "send it" and switch
WHATSAPP_DRY_RUNoff, and I'll send the reply. - Once it's sent, I'll mark Maria's message as read.
- Want different wording? Tell me and I'll prepare a new dry run.
Connects securely to your tools. The creator never sees your data.
About this skill
Connecting an AI agent to WhatsApp usually goes wrong in the same few ways: messages silently fail because the 24-hour window has closed, templates get sent with the wrong parameters, or someone gets messaged by mistake. This skill teaches your agent the rules of Meta's official WhatsApp Cloud API so it sends messages that actually arrive, and only to the people you meant.
It works with whatsapp-cloud-api-mcp, a free, MIT-licensed, open-source MCP server: one Python file, standard library only, nothing to pip install. Where to get it is in the skill's SKILL.md.
What the agent does with it
- Checks your number first. Calls
get_phone_numberonce per session and warns you if the quality rating isn't GREEN. - Dry-runs before sending. With
WHATSAPP_DRY_RUN=1the server returns the exact request instead of sending it; the agent shows it to you and waits for a yes. - Respects your allowlist. Sends to numbers outside
WHATSAPP_ALLOWED_RECIPIENTSare refused, and the agent reports it instead of trying to widen the list. - Picks the right message type. Free-form text inside the 24-hour window, an
APPROVEDtemplate outside it (or after error131047), with{{1}}…parameters filled in order. - Reads replies.
list_incoming_messagesreturns what the optional webhook receiver stored; the agent marks messages as read only when you've handled them. - Explains errors. Graph API errors come back with a plain-language hint (
131047,132001,132000,131026,131030,190), and the agent relays the fix instead of retrying blindly.
What you need
- A Meta developer app with the WhatsApp product (Meta gives you a free test number).
- The
whatsapp-cloud-api-mcpserver added to your agent, with your token and phone number ID in its environment. The agent never asks for the token in chat. - Optional:
webhook.pyrunning behind HTTPS if you want to read replies.
Good for
- Answering customer questions on WhatsApp from your agent.
- Sending order, booking or reminder updates with approved templates.
- Checking which templates are approved and what parameters they take.
Limits
- Meta bills template messages per conversation category and country; the agent tells you before using one.
- Replies are only visible while the webhook receiver is running.
- This skill is for one-to-one messaging, not bulk broadcasts.
Needs the whatsapp-cloud-api-mcp server added to your agent. Replies are only visible while the optional webhook.py is running. Meta bills template messages. Built for one-to-one messaging, not bulk broadcasts.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 8 days ago
- Free with an Agensi account
- Accounts
WhatsApp
- Software
- whatsapp-cloud-api-mcp server (free, open source)
Python 3.9+
- Optional
- Public HTTPS URL for the webhook (only to read replies)
Your Meta access token goes in the MCP server's environment, never in chat. Meta's free test number is enough to try it.
Permissions
Allowed Hosts
Network access: the MCP server calls Meta's Graph API (graph.facebook.com). Environment variables: the server reads your access token, phone number ID and safety settings (dry-run, allowlist) from its own environment. The skill itself only calls the server's tools.
What's inside
Creator
Albert Kweku Ogoe
Frequently Asked Questions
New in APIs & Backend
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for APIs & Backend.