messaging-bot-onboarding-setup
Installation
SKILL.md
Messaging-bot onboarding setup
A cold handle DMs a number → the app greets, gets consent, provisions a handle-anchored account, and hands off. Every platform delivers those inbounds to an HTTP webhook that must authenticate the delivery before acting. The auth is always the same shape — and the same shape fails the same way in production.
When to use
- Triggers: 'imessage bot 401', 'sendblue signing secret', 'telegram onboarding not firing', 'set up whatsapp cloud api', 'whatsapp phone number id', 'why does the bot never reply', 'verify the telegram webhook', 'messaging bot setup'.
- The shared-secret webhook pattern and its top failure: the provider dashboard's secret field is empty, so every real inbound 401s. Per platform: the header, the dashboard field or API call, the env var name and the verify handshake.
- The Telegram bare /start gap (a connect-help intercept swallows it before onboarding); creating or reusing a Meta app for WhatsApp (use case, test vs production number, business verification, the five WHATSAPP_ env vars).
- End-to-end checks with a synthetic signed webhook POST plus a DB row check instead of trusting a 200.
The shared-secret pattern (learn this first)
Each provider signs its webhook deliveries with a secret you configure in their dashboard/API. It arrives in a request header. The app compares it (constant-time) to a secret in its own deployed env. Match → process; mismatch/absent → 401.