Skip to content

Add WhatsApp delivery error-code reference and re-engagement pattern#10

Draft
posthog[bot] wants to merge 1 commit into
mainfrom
posthog-code/whatsapp-delivery-error-codes
Draft

Add WhatsApp delivery error-code reference and re-engagement pattern#10
posthog[bot] wants to merge 1 commit into
mainfrom
posthog-code/whatsapp-delivery-error-codes

Conversation

@posthog

@posthog posthog Bot commented Jun 29, 2026

Copy link
Copy Markdown

Summary

The observe-whatsapp skill told the agent to "translate error codes into remediation" / "map to remediation", but shipped no actual error-code mapping, and the only message-debugging example was a happy-path sent → delivered → read timeline. As a result the agent couldn't explain or prevent common WhatsApp delivery failures — most notably the 24-hour-window expiry (Meta code 131047) — so users fell back to manual UI investigation.

  • New references/delivery-error-codes.md — a Meta delivery error-code → cause/remediation table (131047, 131026, 131049, 131000, and more), guidance on where to read the code from message.kapso.statuses[].errors[], and a 24-hour-window re-engagement pattern that wires the send_template node to the whatsapp.message.failed trigger so the failure can be prevented, not just explained.
  • New assets/message-debugging-failed-example.json — a failed-delivery timeline with an error-bearing status entry (131047).
  • Pointed the triage and message-debugging playbooks at the new table instead of the vague "map to remediation" line, and updated SKILL.md references + file map.

Why

Recurring session-replay signals showed real users repeatedly hitting and manually investigating WhatsApp delivery failures (including one user hard-blocked mid-reply by the 24-hour window). The skill instructed the agent to map error codes to remediation but shipped no mapping, directly degrading agent diagnosis quality.


Created with PostHog Code from an inbox report.

The observe-whatsapp playbooks told the agent to "translate error codes into
remediation" but shipped no actual mapping, and the only message-debugging
example was a happy-path sent->delivered->read timeline. The agent therefore
couldn't explain or prevent common WhatsApp delivery failures (notably the
24-hour-window expiry, Meta code 131047).

- Add references/delivery-error-codes.md: a Meta delivery error-code ->
  cause/remediation table (131047, 131026, 131049, 131000 and more) plus a
  24-hour-window re-engagement pattern wiring send_template to the
  whatsapp.message.failed trigger.
- Add assets/message-debugging-failed-example.json: a failed-delivery timeline
  with an error-bearing status entry.
- Point the triage and message-debugging playbooks at the new table instead of
  the vague "map to remediation" instruction; update SKILL.md references and
  file map.

Generated-By: PostHog Code
Task-Id: e5d65a7b-ac68-47a7-9045-21339084587a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants