Skip to content

WhatsApp Business App coexistence

Many businesses already talk to their customers using the WhatsApp Business App on their phone. With coexistence, a business can connect the phone number it already uses in the WhatsApp Business App to Conversation API, without moving the number off the app. After onboarding, the business can:

  • Keep chatting one-to-one with its customers from the WhatsApp Business App (and its supported companion devices, such as WhatsApp Web).
  • Send messages at scale (for example, notifications and template messages) through Conversation API, using the same phone number.
  • Receive the messages it sends from the WhatsApp Business App in Conversation API, so the conversation history in your system stays complete.

Meta calls this feature onboarding WhatsApp Business App users or coexistence. For background, see Meta's documentation on onboarding WhatsApp Business App users.

How coexistence works with Conversation API

The diagram below shows how messages flow for a phone number that is connected to both the WhatsApp Business App and a Conversation API app:

Sends message

Sends message via
Conversation API

Delivers message to WhatsApp service

Delivers message

Replies

Reply shown in app

Copy of the message the
business sent from the app

Inbound message

MESSAGE_OBSERVED callback

MESSAGE_INBOUND callback

Business using the
WhatsApp Business App

WhatsApp

Your system

Sinch Conversation API

WhatsApp user

Sends message

Sends message via
Conversation API

Delivers message to WhatsApp service

Delivers message

Replies

Reply shown in app

Copy of the message the
business sent from the app

Inbound message

MESSAGE_OBSERVED callback

MESSAGE_INBOUND callback

Business using the
WhatsApp Business App

WhatsApp

Your system

Sinch Conversation API

WhatsApp user

  • Messages your system sends through Conversation API are delivered as usual, and they also appear in the chat in the WhatsApp Business App.
  • Messages from WhatsApp users appear in the WhatsApp Business App and are delivered to your system through the MESSAGE_INBOUND webhook trigger, as usual.
  • Messages the business sends from the WhatsApp Business App are stored in the contact's conversation and delivered to your system through the MESSAGE_OBSERVED webhook trigger.

Requirements

Before you onboard a WhatsApp Business App number, make sure that:

  • The business uses WhatsApp Business App version 2.24.17 or later.
  • The phone number is active in the WhatsApp Business App. Phone numbers registered with the regular (consumer) WhatsApp app can't be onboarded.
  • The number is onboarded through Embedded Signup with the WhatsApp Business App onboarding option enabled.
  • To receive messages sent from the WhatsApp Business App, the Conversation API app uses the CONVERSATION processing mode and has a webhook subscribed to the MESSAGE_OBSERVED trigger. See Receiving messages sent from the WhatsApp Business App.

Onboarding a WhatsApp Business App number

WhatsApp Business App numbers are onboarded using Meta's Embedded Signup flow. The specific method you use for onboarding depends on whether you are a direct enterprise (DE) customer or an application service provider (ASP):

Onboarding as a DE customer

The Embedded Signup flow on the Sinch Build Dashboard supports WhatsApp Business App onboarding. No additional configuration is required. See Getting started with a WhatsApp channel.

Onboarding as an ASP customer

If you have integrated Embedded Signup into your own system (see the WhatsApp ASP onboarding guide), enable the WhatsApp Business App onboarding option by setting featureType to whatsapp_business_app_onboarding in the extras object of your FB.login call:

const launchWhatsAppSignup = () => {
  FB.login(fbLoginCallback, {
    config_id: 'YOUR_config_ID',
    response_type: 'code',
    override_default_response_type: true,
    extras: {
      setup: { solutionID: 'YOUR_solution_ID' },
      featureType: 'whatsapp_business_app_onboarding'
    }
  })
}
Note:

This example uses Embedded Signup version 4. In Embedded Signup version 5 (version: 'v5'), WhatsApp Business App onboarding is enabled by default and featureType isn't required. See Meta's documentation on Embedded Signup versions for details.

The business's onboarding steps

When the option is enabled, the business can choose to connect its existing WhatsApp Business App account instead of creating a new WhatsApp Business Account. The business then:

  1. Enters the phone number it uses in the WhatsApp Business App.
  2. Receives a message in the WhatsApp Business App from the official Meta Business account, and follows the instructions in it to connect the app to the Business Platform.
  3. Chooses whether to share its chat history.
  4. Enters the verification code shown in the Embedded Signup flow and completes the rest of the flow.

When the business completes the flow, the session logging message event listener receives an event with the FINISH_WHATSAPP_BUSINESS_APP_ONBOARDING value (instead of FINISH). The data object includes the waba_id of the business's WhatsApp Business Account. Meta converts the business's existing account rather than creating a new one, so the waba_id stays the same.

Note:

Ask the business to keep the WhatsApp Business App open on their phone until onboarding is complete. When onboarding is complete, the WhatsApp Business App shows that the number is connected to the Business Platform.

Creating the sender

After the flow is complete, create the WhatsApp Sender with the WhatsApp Business Account ID and the phone number ID, the same way as for any other Embedded Signup sender. See Embedded Signup for creating a WhatsApp Sender.

Sinch detects that the phone number is used in the WhatsApp Business App and adjusts sender creation accordingly:

  • The phone number is already registered with WhatsApp, so Sinch doesn't register it again or set a two-step verification PIN for it.
  • Sinch doesn't update the business profile (such as the description, address, or website). Meta only allows the business to manage its profile from the WhatsApp Business App.
  • The sender's throughput is limited to 20 messages per second. See Throughput.

When the sender is ACTIVE, add it to a Conversation API app as you would any other WhatsApp sender. See Getting started with a WhatsApp channel.

Receiving messages sent from the WhatsApp Business App

When the business sends a message from the WhatsApp Business App (or one of its supported companion devices), Conversation API stores it in the contact's conversation, with direction set to TO_CONTACT, and delivers it to webhooks subscribed to the MESSAGE_OBSERVED trigger. The callback's origin field is set to WHATSAPP_BUSINESS_APP.

To receive these messages:

  1. Use a Conversation API app with the CONVERSATION processing mode. Observed messages aren't stored or delivered for apps in DISPATCH mode.
  2. Subscribe a webhook to the MESSAGE_OBSERVED trigger. See Callbacks and webhooks for how to create and update webhooks.

For the callback structure and an example payload, see Message Observed.

Supported message types

Currently, the following message types sent from the WhatsApp Business App are delivered as observed messages:

Message sent from the WhatsApp Business AppDelivered in the app_message field as
TextA text_message with the message text.
Image without a captionA media_message. The url points to a copy of the image hosted by Sinch.
Image with a captionA card_message with the image in media_message and the caption in description.

Other message types (for example, video, audio, documents, stickers, locations, or contacts) aren't delivered yet. Sinch plans to support additional message types in the future.

Note:

In rare cases, a callback for the same message can be delivered more than once. Use the message id to discard duplicates.

Limitations and considerations

Throughput

Meta limits phone numbers that are used with both the WhatsApp Business App and the Cloud API to a throughput of 20 messages per second. Senders for these numbers can't be upgraded to a higher throughput.

Chat history and contacts

Conversation API doesn't import the business's chat history or the contacts from the WhatsApp Business App. Only messages sent and received after the number is connected to Conversation API are part of the conversation.

Customer service window and pricing

  • Messages that the business sends using their WhatsApp Business App remain free of Meta's messaging fee. The Sinch WhatsApp message processing fee applies to all observed messages. Messages sent from the WhatsApp Business App aren't affected by the customer service window and don't open or extend it.
  • Messages sent through Conversation API are charged as usual, and the 24-hour customer service window applies. The window opens only when a WhatsApp user sends a message after the number is connected. If a user wrote to the business only before onboarding, use a template message to reach them through Conversation API.

WhatsApp Business App features

After the number is connected, some WhatsApp Business App features change:

FeatureBehavior after onboarding
One-to-one chatsSupported. Messages sent through Conversation API also appear in the WhatsApp Business App.
Group chatsNot supported. Group chat messages aren't delivered to Conversation API.
Disappearing messagesTurned off for all one-to-one chats.
View once messagesTurned off for all one-to-one chats.
Live locationTurned off for all one-to-one chats.
Broadcast listsTurned off. Existing broadcast lists become read-only and new ones can't be created.
Voice and video calls, catalog, orders, status, greeting and away messages, quick replies, labels, business profileUnchanged in the WhatsApp Business App, but not available through Conversation API.

Companion devices

  • When the number is onboarded, all companion devices (such as WhatsApp Web) are unlinked. The business can link them again afterwards.
  • WhatsApp for Windows and WhatsApp for Wear OS companion devices aren't supported. Messages the business sends from these devices aren't delivered to Conversation API.

Disconnecting a number

  • The business can disconnect the number from the Business Platform at any time from the WhatsApp Business App (Settings > Account > Business Platform).
  • Meta may also disconnect the number, for example, if the business doesn't use the WhatsApp Business App on its primary phone for approximately 14 days, or a companion device for approximately 30 days, or if the number is re-registered or moved to the consumer WhatsApp app. Ask businesses to open the WhatsApp Business App regularly.

To connect the number again after a disconnection, the business must complete the onboarding flow again.