Observe and troubleshoot WhatsApp in Kapso: debug message delivery, inspect webhook deliveries/retries, triage API errors, and run health checks. Use when investigating production issues, message failures, or webhook delivery problems.
Add this skill
npx mdskills install gokapso/observe-whatsappWell-structured observability skill with clear diagnostic workflows for WhatsApp troubleshooting
1---2name: observe-whatsapp3description: "Observe and troubleshoot WhatsApp in Kapso: debug message delivery, inspect webhook deliveries/retries, triage API errors, and run health checks. Use when investigating production issues, message failures, or webhook delivery problems."4---56# Observe WhatsApp78## When to use910Use this skill for operational diagnostics: message delivery investigation, webhook delivery debugging, error triage, and WhatsApp health checks.1112## Setup1314Env vars:15- `KAPSO_API_BASE_URL` (host only, no `/platform/v1`)16- `KAPSO_API_KEY`1718## How to1920### Investigate message delivery21221. List messages: `node scripts/messages.js --phone-number-id <id>`232. Inspect message: `node scripts/message-details.js --message-id <id>`243. Find conversation: `node scripts/lookup-conversation.js --phone-number <e164>`2526### Triage errors27281. Message errors: `node scripts/errors.js`292. API logs: `node scripts/api-logs.js`303. Webhook deliveries: `node scripts/webhook-deliveries.js`3132### Run health checks33341. Project overview: `node scripts/overview.js`352. Phone number health: `node scripts/whatsapp-health.js --phone-number-id <id>`3637## Scripts3839### Messages4041| Script | Purpose |42|--------|---------|43| `messages.js` | List messages |44| `message-details.js` | Get message details |45| `lookup-conversation.js` | Find conversation by phone or ID |4647### Errors and logs4849| Script | Purpose |50|--------|---------|51| `errors.js` | List message errors |52| `api-logs.js` | List external API logs |53| `webhook-deliveries.js` | List webhook delivery attempts |5455### Health5657| Script | Purpose |58|--------|---------|59| `overview.js` | Project overview |60| `whatsapp-health.js` | Phone number health check |6162### OpenAPI6364| Script | Purpose |65|--------|---------|66| `openapi-explore.mjs` | Explore OpenAPI (search/op/schema/where) |6768Install deps (once):69```bash70npm i71```7273Examples:74```bash75node scripts/openapi-explore.mjs --spec platform search "webhook deliveries"76node scripts/openapi-explore.mjs --spec platform op listWebhookDeliveries77node scripts/openapi-explore.mjs --spec platform schema WebhookDelivery78```7980## Notes8182- For webhook setup (create/update/delete, signature verification, event types), use `integrate-whatsapp`.8384## References8586- [references/message-debugging-reference.md](references/message-debugging-reference.md) - Message debugging guide87- [references/triage-reference.md](references/triage-reference.md) - Error triage guide88- [references/health-reference.md](references/health-reference.md) - Health check guide8990## Related skills9192- `integrate-whatsapp` - Onboarding, webhooks, messaging, templates, flows93- `automate-whatsapp` - Workflows, agents, and automations9495<!-- FILEMAP:BEGIN -->96```text97[observe-whatsapp file map]|root: .98|.:{package.json,SKILL.md}99|assets:{health-example.json,message-debugging-example.json,triage-example.json}100|references:{health-reference.md,message-debugging-reference.md,triage-reference.md}101|scripts:{api-logs.js,errors.js,lookup-conversation.js,message-details.js,messages.js,openapi-explore.mjs,overview.js,webhook-deliveries.js,whatsapp-health.js}102|scripts/lib/messages:{args.js,kapso-api.js}103|scripts/lib/status:{args.js,kapso-api.js}104|scripts/lib/triage:{args.js,kapso-api.js}105```106<!-- FILEMAP:END -->107108
Full transparency — inspect the skill content before installing.