Skip to main content

How to configure WhatsApp Cloud in Chatwoot?


Configure your Facebook Developer App

Follow the Set up Developer Assets and Platform Access step in Whatsapp Cloud API Guide to create your Facebook Developer app with Whatsapp Product enabled.

Once you finish this step, you can now configure your required phone numbers in the Whatsapp section of your Facebook developer app. If you complete the steps successfully, you should be able to obtain the Phone Number Id and Whatsapp Bussiness Account ID as shown in the below screenshot. Chatwoot will require these values for creating the Whatsapp Inbox.

Whatsapp Section Developer App

Configure a system user for your Facebook Bussiness Manager

Create a system user in your business manager with access to the Whatsapp App. Generate an access token for the user, which will be required for setting up an inbox in Chatwoot.

When generating the access token, make sure whatsapp_business_management, and whatsapp_business_messaging permissions are selected.

  1. Step 1 of 3: Create a system user.

Create a system user in the System Users tab of Business Manager.

  1. Step 2 of 3: Add the system user.

Under the WhatsApp Accounts tab, select Add People and select the system user to grant access to the WhatsApp Business account.

Add System user

  1. Step 3 of 3: Generate the access token and request permissions.

Generate Token

Refer this video for detailed steps.

Configuring Whatsapp Inbox in Chatwoot

Finish the following steps to configure Whatsapp Cloud API Channel in Chatwoot.

  • Open your Chatwoot dashboard. Go to SettingsInboxesAdd Inbox.

Add Inbox

  • Choose "WhatsApp" amongst the options of channels.

Select Channel

  • Choose "WhatsApp Cloud" as the API provider. Fill in the appropriate details

Choose Provider

NameChoose a name for your Inbox. Ex: Your Business Name
Phone NumberFill in the phone number you have configured in Facebook Developer App
Phone Number IDThe phone number ID for the number as obtained in prerequisites
Bussiness Account IDThe Business Account ID for the number as obtained in prerequisites
API KeyThe Business Account User API key for the number as obtained in prerequisites
Webhook Verify TokenThis token is required while configuring Webhook in Facebook Developer App. Fill in a secure alphanumeric string that you wish
  • Finish the steps to obtain your Whatsapp Webhook Callback URL

Final Steps

Configure Webhook in Facebook Developer App

Head back to the Whatsapp section in Facebook Developer App. Navigate to the Configuration subsection and set up the Callback URL

  • The value for the url should be the same URL you obtained at the end of your Chatwoot inbox creation and will look like{phone_number}.
  • The value for the verify token should be the same value you configured for the Webhook Verify Token during inbox creation

You should also subscribe to message fields events under Webhooks Fields on your Facebook Developer app. Once you finish all the steps, the section should look like the below screenshot.

Webhook Section


How to configure multiple numbers under a single Facebook app?

Facebook App allows configuring only a single Webhook endpoint. So create Inboxes in Chatwoot for all the numbers as required. You will need to configure the Webhook url provided for only one of these inboxes in the Facebook app for all the other inboxes to work.