Beta verzia novej dokumentácie.

Connecting the WhatsApp API to CDESK

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

Image: Settings on the API Setup tab

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.
Image: Settings on the Configuration tab

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.

Image: Activating the messages webhook event

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.

Image: Selecting the default company

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.

Image: Enabled Chats module