agentleFS
zaphookzaphook/zaphook-agent-skills/skills/whatsapp-messaging/SKILL.md

whatsapp-messaging

Skill0 starsChanged 4 months agoMITView on GitHub

Send WhatsApp messages via ZapHook. Use when user wants to: send text/image/video/audio/document/sticker to WhatsApp numbers, create interactive buttons or lists, send templates, react to messages, mark as read, or show typing indicator. Do not use for reading incoming messages, listing events, or checking delivery status. Requires channel_id (UUID) and phone number in international format (digits only, e.g. 5511999999999).

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. AsharibAli/whatsapp-me★ 17same 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 repository2 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

12 rules. About 0 are common, 6 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    All endpoints require channel_id (uuid) and to (phone number, international format, digits only, 10-15 chars).

    line 21
  2. Distinctive:

    If a message send fails:

    line 128
  3. Very specific:

    Check channel health: use zaphook-api skill → node scripts/channel-status.mjs --channel-id <id>

    line 129
  4. Very specific:

    If channel is inactive or not found: verify channel exists with node scripts/get-channel.mjs --channel-id <id>

    line 130
  5. Very specific:

    Check delivery logs: use observe-whatsapp skill → node scripts/list-events.mjs --has-errors true --channel-id <id>

    line 131
  6. Very specific:

    If 401: API key invalid or expired → run npx zaphook-skills configure

    line 133
  7. Distinctive:

    If 429: rate limit exceeded → wait and retry (built-in exponential backoff handles this automatically)

    line 134
  8. Distinctive:

    If 422: check required fields and phone number format (digits only, 10-15 chars, international format)

    line 135
  9. Distinctive:

    Never send a message without explicit user permission: Always confirm before executing any send command.

    line 144
  10. Distinctive:

    Portuguese (pt-BR): Always use proper accents and special characters (ã, ç, é, ê, í, ó, ú, à, ü) when composing messages in Portuguese.

    line 145
  11. Distinctive:

    English: Use standard English without localization issues.

    line 146
  12. Very specific:

    Use --dry-run to preview payloads before sending when unsure about parameters.

    line 147

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

WhatsApp Messaging

Base URL: https://api.zaphook.cloud Auth: Authorization: Bearer zph_...

All endpoints require channel_id (uuid) and to (phone number, international format, digits only, 10-15 chars).

Commands

Send Text

node scripts/send-text.mjs --channel-id <uuid> --to 5511999999999 --body "Hello!"

POST /api/public/v1/messages/send-text Body: { "channel_id": "uuid", "to": "phone", "text": { "body": "msg", "preview_url": false } }

Send Buttons (1-3 buttons)

node scripts/send-buttons.mjs --channel-id <uuid> --to <phone> --body "Choose:" --buttons '[{"id":"yes","title":"Yes"},{"id":"no","title":"No"}]'

POST /api/public/v1/messages/send-buttons Body: { "channel_id", "to", "body", "buttons": [{"id","title"}], "header?", "footer?" }

Send List

node scripts/send-list.mjs --channel-id <uuid> --to <phone> --body "Select:" --button-text "Menu" --sections '[{"title":"S1","rows":[{"id":"1","title":"Item","description":"desc"}]}]'

POST /api/public/v1/messages/send-list Body: { "channel_id", "to", "body", "button_text", "sections": [{"title","rows":[{"id","title","description?"}]}], "header?", "footer?" }

Send Image

node scripts/send-image.mjs --channel-id <uuid> --to <phone> --link "https://..." [--caption "text"]

POST /api/public/v1/messages/send-image Body: { "channel_id", "to", "image": {"link":"url"} or {"id":"media_id"}, "caption?" }

Send Video

node scripts/send-video.mjs --channel-id <uuid> --to <phone> --link "https://..." [--caption "text"]

POST /api/public/v1/messages/send-video

Send Audio

node scripts/send-audio.mjs --channel-id <uuid> --to <phone> --link "https://..."

POST /api/public/v1/messages/send-audio

Send Document

node scripts/send-document.mjs --channel-id <uuid> --to <phone> --link "https://..." [--filename "doc.pdf"] [--caption "text"]

POST /api/public/v1/messages/send-document

Send Sticker (.webp, 512x512, max 100KB static / 500KB animated)

node scripts/send-sticker.mjs --channel-id <uuid> --to <phone> --link "https://..."

POST /api/public/v1/messages/send-sticker

Send Location

node scripts/send-location.mjs --channel-id <uuid> --to <phone> --lat -23.55 --lng -46.63 [--name "Place"] [--address "Street"]

POST /api/public/v1/messages/send-location Body: { "channel_id", "to", "location": {"latitude","longitude","name?","address?"} }

Request Location

POST /api/public/v1/messages/request-location Body: { "channel_id", "to", "body": "Please share your location" }

Send Contact

POST /api/public/v1/messages/send-contact Body: { "channel_id", "to", "contacts": [{"name":{"formatted_name","first_name","last_name?"},"phones":[{"phone","type?"}],"emails?","urls?","addresses?","org?","birthday?"}] }

Send Reaction

node scripts/send-reaction.mjs --channel-id <uuid> --to <phone> --message-id "wamid.x" --emoji "👍"

POST /api/public/v1/messages/send-reaction Body: { "channel_id", "to", "message_id", "emoji" } (empty emoji to remove)

Mark as Read

node scripts/mark-as-read.mjs --channel-id <uuid> --message-id "wamid.x"

POST /api/public/v1/messages/mark-as-read Body: { "channel_id", "message_id" }

Send Template

node scripts/send-template.mjs --channel-id <uuid> --to <phone> --name "hello_world" --language "pt_BR" [--components '[{"type":"body","parameters":[{"type":"text","text":"João"}]}]']

POST /api/public/v1/messages/send-template Body: { "channel_id", "to", "template": {"name","language","components?"} }

Typing Indicator

node scripts/typing.mjs --channel-id <uuid> --message-id "wamid.x"

POST /api/public/v1/messages/typing Body: { "channel_id", "message_id" } (also marks as read, shows typing ~25s)

Response Format

{ "data": { "message_id": "wamid.xxx", "status": "sent" }, "meta": { "request_id": "uuid", "timestamp": "ISO8601" } }

Troubleshooting

If a message send fails:

  1. Check channel health: use zaphook-api skill → node scripts/channel-status.mjs --channel-id <id>
  2. If channel is inactive or not found: verify channel exists with node scripts/get-channel.mjs --channel-id <id>
  3. Check delivery logs: use observe-whatsapp skill → node scripts/list-events.mjs --has-errors true --channel-id <id>
  4. Inspect specific failure: use observe-whatsapp skill → node scripts/get-event.mjs --event-id <uuid>
  5. If 401: API key invalid or expired → run npx zaphook-skills configure
  6. If 429: rate limit exceeded → wait and retry (built-in exponential backoff handles this automatically)
  7. If 422: check required fields and phone number format (digits only, 10-15 chars, international format)

Related skills

  • zaphook-api — Channel and destination management
  • observe-whatsapp — Monitor events and delivery status

Agent Rules

  • Never send a message without explicit user permission. Always confirm before executing any send command.
  • Portuguese (pt-BR): Always use proper accents and special characters (ã, ç, é, ê, í, ó, ú, à, ü) when composing messages in Portuguese. Never omit diacritics.
  • English: Use standard English without localization issues.
  • Use --dry-run to preview payloads before sending when unsure about parameters.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.