More screenshots

    Works with the AI Agents you already use

    Send and Read WhatsApp Messages (Cloud API)

    by Albert Kweku Ogoe

    1

    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

    Security scanned
    Send and Read WhatsApp Messages (Cloud API)

    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.

    CheckResult
    Sending numberQuality rating GREEN, OK to send
    New messages1, from Maria: "Ciao! Siete aperti stasera?"
    24-hour windowOpen (she wrote at 21:04) → send_text
    Allowlist+39 333 123 4567 is allowed
    ModeWHATSAPP_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_RUN off, 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_number once per session and warns you if the quality rating isn't GREEN.
    • Dry-runs before sending. With WHATSAPP_DRY_RUN=1 the 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_RECIPIENTS are 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 APPROVED template outside it (or after error 131047), with {{1}}… parameters filled in order.
    • Reads replies. list_incoming_messages returns 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-mcp server 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.py running 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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

    Network Access
    Environment Variables

    Allowed Hosts

    whatsapp.com

    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.

    Listed8 days ago

    What's inside

    Creator

    Albert Kweku Ogoe

    Albert Kweku Ogoe

    Frequently Asked Questions

    It makes the agent pick the right message type: free-form text only within 24 hours of the customer's last message, an approved template otherwise. If Meta still refuses a message, the server returns the error with a plain-language hint (for example 131047: use a template), and the agent follows it instead of retrying blindly.

    A Meta developer app with the WhatsApp product (Meta's free test number works), and the open-source whatsapp-cloud-api-mcp server added to your agent with your access token and phone number ID in its environment. To read replies, also run the included webhook.py behind an HTTPS URL.

    Yes. Start the server with WHATSAPP_DRY_RUN=1 and every send returns the exact request instead of sending it. You can also set WHATSAPP_ALLOWED_RECIPIENTS so the server refuses any number that isn't on your list.

    No. It doesn't run in the background. When you ask, your agent reads the replies the webhook saved and drafts or sends responses. It marks a message as read only once you've handled it.

    Meta rates every sending number GREEN, YELLOW or RED based on how recipients react, and a low rating can limit how many people you can message. The agent checks it at the start of a session and warns you before sending if it isn't GREEN.

    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.

    Free