← The Post

Implementation guides

How I integrate WhatsApp Business into a product people can actually use

A practical integration plan for channel ownership, verified webhooks, durable queues, consent and staff handover, informed by Avelonx, iSDHS and Freight Movers.

Stefan Rampersad · Principal Strategist, PHNYXPRO · 6 min read ·

Project:
PHNYXPRO build portfolio
Historical period:
Lessons across the 2025 to 2026 build portfolio

Retrospective written 25 November 2026

A customer may see a WhatsApp button as a promise that someone will respond. The business still needs to decide who that someone is, what they can resolve and where the conversation belongs. Avelonx, iSD Health Solutions and Freight Movers give me useful contexts for those decisions: enquiries, appointment communication and shipment questions have different responsibilities. The approach here is my recommended integration sequence. It does not imply that every messaging capability was completed in those projects.

Choose the smallest useful channel

A wa.me link opens a conversation; it does not create an inbox or CRM inside the product. The WhatsApp Business app supports staff-managed conversations, while the Business Platform provides an API integration route. Choose according to the actual service. For a small enquiry flow, a clearly labelled contact link and a named staff owner may be sufficient. For a shipment event requiring assignment, records and reliable automation, plan the additional platform work. Ask what happens after the customer presses the button, especially when the usual staff member is unavailable. [Meta: sending WhatsApp messages]

Define one service event before adding automation. My worked example is a shipment ready for collection. Record the shipment reference, responsible organisation, customer consent, permitted message purpose and assigned staff role. Decide how a reply reaches that owner and how the owner confirms resolution. Keep the first version narrow enough to follow from event to response. For an appointment alert, use generic wording directing the person to an appropriate secure channel; avoid placing clinical details in a chat preview.

Establish the authorised channel

Prepare the Meta business and app, WhatsApp Business Account and authorised phone number, then verify the required permissions and production access. Server-side sends use the versioned /PHONE_NUMBER_ID/messages endpoint. Store production tokens and secrets in managed server-side secret storage, never the client. Select a supported API version from current documentation and schedule its review instead of hardcoding an old version into scattered calls. Check account eligibility and current policies for newer features; capability, availability and pricing should never be assumed universal. [Meta: sending WhatsApp messages]

Maintain a server-owned channel table linking an approved internal organisation to its authorised provider business and phone-number ID. Resolve that mapping after authenticating the staff member and checking their organisation access. A request containing a tenant ID or channel ID is a request to validate, rather than authority to send. In the collection example, staff from one organisation must never select another organisation's number by changing a form value. Separate production and test channels so that an unfinished workflow cannot accidentally reach customers.

Verify before processing

Expose a public HTTPS webhook with separate verification paths. GET verification returns hub.challenge only after hub.verify_token matches the configured verify token. POST verification uses X-Hub-Signature-256 with an HMAC-SHA256 over the raw request bytes and the app secret; use a constant-time comparison before parsing or processing. Keep the verify token distinct from the app secret. Retain the unmodified request body for signature checking, reject malformed or invalid signatures, and avoid middleware which silently changes the bytes before verification. [Meta: verifying a webhook endpoint]

After verification, persist a durable event before acknowledging success. Use a provider event or delivery identifier when available. Otherwise, define a stable logical-event key from the authorised channel, message ID and event kind, plus status and provider timestamp for a receipt. An inbound message can be deduplicated by channel and message ID; later receipts with the same message ID still need processing. Preserve event history and apply allowed transitions to the current message state. This is my recommended processing model, not a provider guarantee.

Keep received time, processing state and a restricted payload reference. Repeats should find the existing logical event. A storage failure must return an error so retries can recover it. Process asynchronously with bounded retries and an error category staff can act on. For an outbound timeout, retain an unknown result and reconcile before retrying the send blindly. Local deduplication cannot guarantee exactly-once behaviour from an external service. Reordered notifications should update history without moving the current state through a disallowed transition.

Keep identity and permission separate

Current Meta documentation includes business-scoped user IDs and payloads where phone fields can be absent. Preserve a provider identity scoped to its business and channel; never assume every inbound identity is an E.164 number. Link that identity to an internal customer only through a verified relationship. A familiar display name is insufficient. For an unknown reply, create a restricted conversation needing staff review rather than attaching it to whichever customer has a similar name. Store the identity's source and verification state so later changes remain explainable. [Meta: WhatsApp webhook events and identities]

An inbound WhatsApp message or call starts the standard 24-hour customer-service window; eligible subsequent inbound activity refreshes it. Track the applicable inbound time and check current account and feature support. Outside that window, use the applicable template flow with its exact approved name, language and components. Keep consent purpose and opt-out suppression beside the conversation. Check permission before queueing and again immediately before dispatch: a person can opt out while a message is waiting. Record the intended template version and channel, then stop delivery if either becomes invalid. Give staff a clear reason for the failure. [Meta: sending WhatsApp messages]

Make delivery and handover visible

Meta webhooks carry incoming messages and outgoing status updates; accepted, delivered and read describe distinct stages. Show those states separately from the business event. An API acceptance must never close a shipment enquiry. Provide assignment, staff takeover and a visible pause on automation while a person responds. Secure media behind appropriate access checks, with type and size limits, retention rules and auditable removal. Do not copy every attachment into a permanent customer folder merely because the provider made it available. [Meta: WhatsApp webhook events and identities]

Prove the boundary with test recipients

Before production use, test valid and invalid signatures, altered raw bytes, duplicate events and reordered updates. Attempt a wrong organisation and channel pairing. Exercise template and language mismatches, an expired window, temporary provider failure and an opt-out after queueing. Check that duplicate events preserve one logical operation and that an uncertain send outcome enters reconciliation before a retry. Make unresolved errors actionable. Test human handover through assignment, reply and return to automation. Use authorised test recipients and record expected versus observed results; a successful request alone does not cover the conversation lifecycle.

Assign an integration owner for credentials, API versions and provider policy changes, and an operational owner for unanswered conversations and retention. Review the oldest waiting item together with failed dispatches, rather than celebrating the presence of a green chat icon. That is the commercial test I care about: can the business honour the contact promise without losing the person, crossing an organisation boundary or exposing information which belongs elsewhere?

References

  1. Meta: WhatsApp webhook events and identities
  2. Meta: verifying a webhook endpoint
  3. Meta: sending WhatsApp messages

Stefan Rampersad

Stefan leads PHNYXPRO, writing about brand storytelling, strategy and the business of creative work in the Caribbean and beyond.

Keep reading The Post

More from The Post