Attributed metadata history
Up to 100 retained publisher events per page for 3376252b4fc3e03533905d92bfe26a33b38a290d2d5108ba775391209c80b686. Withdrawals and unavailable references remain attributed to their publishers.
intelligence_src_6dc544294b7f21f98a
observed · 2026-11-30 06:09:03 UTC
Most WhatsApp chatbot tutorials stop at "echo the message back". The parts that bite in production are different: checking that the webhook call really came from Meta, knowing whether you are still allowed to send a free-form reply, and getting a customer to a person when the bot shouldn't answer. WhatsApp's own rules make the last two non-optional. Free-form replies are only allowed inside the 24-hour customer service window that opens each time the customer writes to you; outside it you can send approved templates only. And WhatsApp's business messaging policy says automation is fine inside that window as long as there are "prompt, clear, and direct escalation paths" to a human. This post builds the routing core for that in plain Python (standard library only), so you can drop it behind Flask, FastAPI, a Lambda or whatever already runs your site. What the router does Verifies the signature. Meta signs each webhook POST with an HMAC-SHA256 of the raw body, using your app secret, in the X-Hub-Signature-256 header. Reject anything that doesn't match. Records the window. Every inbound message from a customer resets their 24-hour window, so we store the time of their
Fingerprint: 83df7ffffb5ef91fca2afb5c50fe1d420d8007d764ae2e830814f62b5f93e084
intelligence_src_6dc544294b7f21f98a
observed · 2026-10-12 11:01:03 UTC
available
Fingerprint: 2faf9469031bd0e00603457ab86d15e2040aea06ef98482184945872c5cb389f