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
- AsharibAli/whatsapp-metheir own version, first seen Jan 17, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 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.
- observe-whatsappSkill
- zaphook-apiSkill
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
- Very specific: line 21
All endpoints require channel_id (uuid) and to (phone number, international format, digits only, 10-15 chars).
- Distinctive: line 128
If a message send fails:
- Very specific: line 129
Check channel health: use zaphook-api skill → node scripts/channel-status.mjs --channel-id <id>
- Very specific: line 130
If channel is inactive or not found: verify channel exists with node scripts/get-channel.mjs --channel-id <id>
- Very specific: line 131
Check delivery logs: use observe-whatsapp skill → node scripts/list-events.mjs --has-errors true --channel-id <id>
- Very specific: line 133
If 401: API key invalid or expired → run npx zaphook-skills configure
- Distinctive: line 134
If 429: rate limit exceeded → wait and retry (built-in exponential backoff handles this automatically)
- Distinctive: line 135
If 422: check required fields and phone number format (digits only, 10-15 chars, international format)
- Distinctive: line 144
Never send a message without explicit user permission: Always confirm before executing any send command.
- Distinctive: line 145
Portuguese (pt-BR): Always use proper accents and special characters (ã, ç, é, ê, í, ó, ú, à, ü) when composing messages in Portuguese.
- Distinctive: line 146
English: Use standard English without localization issues.
- Very specific: line 147
Use --dry-run to preview payloads before sending when unsure about parameters.
≈ “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.
Files
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:
- Check channel health: use
zaphook-apiskill →node scripts/channel-status.mjs --channel-id <id> - If channel is inactive or not found: verify channel exists with
node scripts/get-channel.mjs --channel-id <id> - Check delivery logs: use
observe-whatsappskill →node scripts/list-events.mjs --has-errors true --channel-id <id> - Inspect specific failure: use
observe-whatsappskill →node scripts/get-event.mjs --event-id <uuid> - If 401: API key invalid or expired → run
npx zaphook-skills configure - If 429: rate limit exceeded → wait and retry (built-in exponential backoff handles this automatically)
- If 422: check required fields and phone number format (digits only, 10-15 chars, international format)
Related skills
zaphook-api— Channel and destination managementobserve-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-runto preview payloads before sending when unsure about parameters.
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.

