WhatsApp Endpoint: Deploy Native Endpoint

Pre-requisites: 

  • Meta/Facebook Business account 
  • A WhatsApp Endpoint on Cognigy.AI

Create an App for WhatsApp Cloud API on Meta

On Facebook (https://developers.facebook.com/apps/) click Create App. 

Choose Business as an app type and click Next. 

blobid5.png

Add a Display name for your app. Next add an App Contact Email, and a Business Account on Meta/Facebook if you have one. 

blobid4.png

Click “Create App” 

After your app is created, you will need to add products to your app. Find a WhatsApp option in the List provided and click Setup. 

blobid3.png

You will be asked to add a Meta/Facebook existing Business Account. Select your desired account and click Continue. 

blobid2.png

You will be taken to a “Getting Started” Dashboard. 

blobid1.png

You will be provided with a test phone number that your WhatsApp Cloud API will send messages from. This number will appear as the sender number.

Add a To number for testing and click Send message. You should receive your first message on WhatsApp from the test number provided by Meta above. 

  

blobid0.png

The connection to WhatsApp Cloud API is established. 

 

Connect to WhatsApp Cloud API with Your WhatsApp Endpoint

 On the Cognigy AI platform, go to Deploy > Endpoints, select the WhatsApp Endpoint that you created, and use the Endpoint URL from the Webhook section. 

Expand and fill in the fields within the WhatsApp Setup section. 

whatsapp-settings.png

App ID and App Secret are optional fields. App ID and Secret can be found by navigating to Settings > Basic in the Sidebar of your App Dashboard. 

blobid11.png

Access Token is the temporary access token provided in the “Getting started” dashboard. This is a required field. 

blobid10.png

Phone Number ID can be found in the “From” section of the “Getting Started” dashboard. This is a required field. 

blobid9.png

Verify Token is a random value you create for later use, to connect this Endpoint to WhatsApp Cloud API.

 

Validate Your Webhook

To connect to the WhatsApp Endpoint on Cognigy.AI, you will need to validate a Webhook connection. 
Go to Configuration > Webhook in the sidebar menu of your Meta/Facebook Developer Dashboard. In the Webhook section, click Edit. 

blobid6.png

 

Add the Endpoint URL into Callback URL field, and the Verify Token you created in the WhatsApp Endpoint Setup section to the Verify Token field. 

blobid7.png

Click Verify and save.

Next, our Webhook needs to be subscribed to the message event. To do this, follow these steps:

  1. In the left-side menu, select WhatsApp > Configuration.
  2. On the Configuration page, go to Webhook > Webhook fields.
  3. Click Manage.
  4. In the Messages row, select Subscribe.

 

 


Comments

0 comments

Article is closed for comments.

Was this article helpful?
1 out of 1 found this helpful