The connection to the WhatsApp API is configured in the CDESK Portal under the following sections: CDESK → Global settings → Omnichannel → Chats. First, activate the module using the toggle switch. You can find all the necessary information for setting up the connection in the developer app settings (developers.facebook.com).
In the app editor, go to the WhatsApp → API Setup tab and copy the data according to the following table or image.
Fields in CDESK | Fields in the WhatsApp Business App settings in Meta Developers |
WhatsApp Company Account ID | WhatsApp Business Account ID (API Setup tab) |
API Token (Access Token) | Enter the permanent token created using the System User (description above in the article) |
Webhook URL | The URL you enter in the Configuration tab → Callback URL |
Webhook Token | The token you enter in the Configuration tab → Verify token |
Company phone number ID | Phone number ID (tab, API Setup) |
Company phone number | Your added phone number (tab, API Setup) |
Second company phone number ID | Fill this out only if you have a second phone number set up |
Second company phone number | Fill this out only if you have a second phone number set up |
Then go to the Configuration, tab, where:
- in the Callback URL field, enter the address from the Webhook URL field in CDESK,
- in the Verify token field, paste the token from the Webhook token field in CDESK.
After entering the Callback URL and Verify token, a list of Webhook fields events will appear. Check the messages item. This event is required to receive messages from WhatsApp into CDESK.
After activating the module and configuring the necessary settings, go to the chat processing tab and select the default company for creating requests. Save the settings by clicking Save.
You can then go to the following sections: CDESK → Omnichannel → Chats and start using the Chats module via WhatsApp. The user manual can be found in the article WhatsApp manual.