B Blengi docs

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.

Every message is a pre-approved template
WhatsApp only lets a business message you outside a 24-hour reply window using a Meta-approved template (never free text). So each trigger maps to a UTILITY template that Meta reviews once (β‰ˆ24–48h). Until they're approved, the channel stays silent.

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.
WhatsApp bills per conversation
WhatsApp charges per 24-hour conversation. New-lead, handoff and widget-error are low volume β€” fine. New-conversation fires on every first message, so enabling it workspace-wide can run up the Telnyx bill. It's gated behind the same per-user opt-in so turning it on is always a deliberate choice.

One-time setup

  1. Telnyx API key β€” Telnyx Portal β†’ Keys & Credentials β†’ API Keys. Copy the KEY… value.
  2. 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).
  3. 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.
  4. 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.
  5. Enable β€” once Meta approves (check with --list), flip on Enable WhatsApp delivery in System Settings.
  6. 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.

Off the visitor hot path
Every WhatsApp message is sent from a queued job (the 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.