Run your workspace
WhatsApp notifications
WhatsApp notifications deliver the moments that matter β a new lead, a visitor asking for a human, a new conversation, or a widget error β straight to your team's phones over WhatsApp, powered by Telnyx. They sit alongside email and Web Push: each operator opts in with their own number.
What triggers a WhatsApp message
- New lead captured β to every workspace owner/admin. Low volume, high value.
- Human handoff requested β to operators available for live chat. Time-critical.
- New conversation β the first message of a new conversation. High volume β see the cost note below.
- Widget / system error β to super_admins when the Widget Monitor records an error-severity event.
One-time setup
- Telnyx API key β Telnyx Portal β Keys &
Credentials β API Keys. Copy the
KEYβ¦value. - Connect WhatsApp β Telnyx Portal β Messaging β WhatsApp β Embedded Signup. Connect your Meta Business account, verify the sender number, and complete the business profile + display name (required before templates).
- Save credentials β in Pitchbar, go to Settings β System β WhatsApp (Telnyx) and paste the API key, the sender number (E.164), and the WABA ID. The key is encrypted at rest; only a "set" indicator is ever sent back to the browser.
- Submit templates β click Submit templates for review in the WhatsApp section (no shell needed). It submits one template per trigger Γ the languages your staff use, then records those languages. Developers can also run the command below.
- Enable β once Meta approves (check with
--list), flip on Enable WhatsApp delivery in System Settings. - Operators opt in β each team member adds their number and toggles delivery on under Profile β Notifications. It's off by default β nobody is enrolled automatically.
php artisan pitchbar:whatsapp-templates # discover staff locales + submit
php artisan pitchbar:whatsapp-templates --locales=nl,en
php artisan pitchbar:whatsapp-templates --list # check Meta approval status
php artisan pitchbar:whatsapp-test --email=ops@acme.com
Languages
Each operator receives the template in their own interface
language when one has been submitted for it, falling back to the
install's default language otherwise. The template command discovers the
distinct locales of your staff (or takes an explicit --locales
list) and submits exactly those β so you don't file a separate Meta review
for languages nobody uses.
analytics queue), never from inside the live SSE stream β a
notification never slows a visitor's reply.
Testing
Use the Send test button in the System Settings WhatsApp
section (any number) or in Profile β Notifications (your own saved
number). Both report the real Telnyx result β an accepted send, or a
rejection with the reason β rather than a misleading "sent". The
pitchbar:whatsapp-test command does the same from the CLI.