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

observe-whatsapp

Skill0 starsChanged 4 months agoMITView on GitHub

Monitor and debug WhatsApp webhook delivery. Use when user wants to: list event logs, filter events by type/status/date/errors, inspect event payloads, check channel WABA health (quality rating, messaging tier, connection status), upload/get/delete media files. Do not use for sending messages or managing channels. Useful for troubleshooting delivery failures.

3 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions3 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 3

    1. gokapso/agent-skills★ 174same name
    2. xfstudio/skills★ 9same name
    3. ai4brands-design/claude-skills★ 2same 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

3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    DELETE /api/public/v1/media/{media_id}?channel_id=<uuid>

    line 86
  2. Very specific:

    Check channel health: node scripts/channel-health.mjs --channel-id <id>

    line 90
  3. Distinctive:

    If events are empty but the dashboard shows activity, the channel may not have destinations configured

    line 98

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “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

Observe WhatsApp

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

Commands

List Events

node scripts/list-events.mjs [--channel-id <uuid>] [--event-type text|image|audio|status] [--delivery-status delivered|failed|pending|logged|retrying] [--has-errors true|false] [--start-date 2024-01-01T00:00:00Z] [--end-date 2024-01-31T23:59:59Z] [--limit 50] [--offset 0]

GET /api/public/v1/events

Response:

{
  "data": {
    "events": [{
      "id": "uuid",
      "channel_id": "uuid",
      "event_type": "text",
      "event_id": "wamid.abc123",
      "delivery_status": "delivered",
      "destination_url": "https://example.com/webhook",
      "response_code": 200,
      "retry_count": 0,
      "processing_time_ms": 150,
      "created_at": "2024-01-15T10:30:00+00:00"
    }],
    "total": 1,
    "limit": 50,
    "offset": 0
  }
}

Note: Events are webhook delivery logs (incoming webhooks forwarded to destinations). They track if the event was successfully delivered to configured destinations. Status callbacks (sent/delivered/read) from Meta appear as event_type "status".

Get Event Detail

node scripts/get-event.mjs --event-id <uuid>

GET /api/public/v1/events/{event_id}

Returns full payload, processed_payload, response_body, and delivery metadata.

Channel Health (WABA Status)

node scripts/channel-health.mjs --channel-id <uuid>

GET /api/public/v1/channels/{channel_id}/status

Returns: quality_rating, messaging_limit_tier, status (CONNECTED/DISCONNECTED), verified_name, platform_type, is_active, channel_type.

Upload Media

node scripts/upload-media.mjs --channel-id <uuid> --file <path> --type image|video|audio|document

POST /api/public/v1/media/upload

Get Media

node scripts/get-media.mjs --media-id <id> --channel-id <uuid>

GET /api/public/v1/media/{media_id}?channel_id=<uuid>

Delete Media

node scripts/delete-media.mjs --media-id <id> --channel-id <uuid>

DELETE /api/public/v1/media/{media_id}?channel_id=<uuid>

Debugging Workflow

  1. Check channel health: node scripts/channel-health.mjs --channel-id <id>
  2. Find failed events: node scripts/list-events.mjs --has-errors true
  3. Inspect specific event: node scripts/get-event.mjs --event-id <uuid>
  4. Filter by date range: node scripts/list-events.mjs --start-date 2024-01-01T00:00:00Z --end-date 2024-01-02T00:00:00Z

Important Notes

  • Events represent webhook delivery logs (ZapHook forwarding to your destinations)
  • If events are empty but the dashboard shows activity, the channel may not have destinations configured
  • Coexistence channels receive status callbacks only if Meta's webhook points to ZapHook
  • Standard channels automatically receive all callbacks via their webhook_url

Related skills

  • zaphook-api — Channel and destination management
  • whatsapp-messaging — Send messages and templates

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.