Skip to content

docs: consolidate WhatsApp template rejection troubleshooting#14

Draft
posthog[bot] wants to merge 1 commit into
mainfrom
posthog-code/whatsapp-template-rejection-troubleshooting
Draft

docs: consolidate WhatsApp template rejection troubleshooting#14
posthog[bot] wants to merge 1 commit into
mainfrom
posthog-code/whatsapp-template-rejection-troubleshooting

Conversation

@posthog

@posthog posthog Bot commented Jul 3, 2026

Copy link
Copy Markdown

Summary

Users setting up outbound WhatsApp messaging kept hitting Bad Request errors when creating templates and had no single place to figure out why — the relevant rules (example/variable requirements, the three categories, and the business-verification requirement) were scattered across templates-reference.md and the WhatsApp SKILL.md files, with the OAuthException 139000 note buried under Flows troubleshooting.

This adds a focused "Troubleshooting: why did my template get rejected?" section to templates-reference.md that maps each Meta failure to a plain-English cause and fix:

  • Bad Request ((#100)) at creation — the common example/variable mismatches: missing example per variable, example keys not matching parameter_format (NAMED vs POSITIONAL), param_name not matching the placeholder, positional gaps, count mismatch, and flat-vs-2D body_text.
  • Wrong category — MARKETING vs UTILITY vs AUTHENTICATION restrictions (fixed AUTH body, OTP button).
  • OAuthException 139000 — WABA not verified in Meta business verification.
  • Duplicate name/language and button ordering.

It's surfaced from observe-whatsapp (new "Template creation rejected" entry in triage-reference.md plus a pointer in its SKILL.md) and cross-linked from integrate-whatsapp, so both a human and the Agente Kapso chatbot can self-serve instead of guessing.

Why

Two independent session recordings a week apart showed users stuck in the template-creation flow — one blocked by a Bad Request, the other spending real time bouncing between the new-template form and verification pages before falling back to the support chatbot. Template creation is a core integration flow, and the fix is a documentation consolidation of knowledge that already exists in the repo.


Created with PostHog Code from an inbox report.

Users hit Bad Request errors when creating WhatsApp templates and had to
piece together the cause from scattered rules across templates-reference.md
and the WhatsApp SKILL files.

Add a single "Troubleshooting: why did my template get rejected?" section to
templates-reference.md that maps each Meta failure to a plain-English cause
and fix: example/variable mismatches and positional gaps that produce a Bad
Request, category restrictions (MARKETING vs UTILITY vs AUTHENTICATION), and
the Meta business verification requirement tied to OAuthException 139000.

Surface it from observe-whatsapp's triage reference and cross-link from both
skills so a human or the support chatbot can self-serve.

Generated-By: PostHog Code
Task-Id: 85975335-f067-4dd5-ac5a-470f31a82d6b
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