Creating and Adding the Meta WhatsApp Cloud Api Channel

Step 1 : Creating a App

Open Meta Developer Portal and go to My Apps after logging in.

image

Click Create App.

image

Enter App Name and App Contact Email and proceed.

image

In the next step, under Business Messaging, select Connect with customers using WhatsApp, and click Next.

image
image

You will see two portfolios:

  • One for Testing Purpose
  • One for Business Account (Production use)

image

Select based on your requirement. If not required, you may skip this step.

image

Review the overview and click Go to Dashboard.

image

You may be asked to re-enter your password for verification. Complete the verification.

image

Under API Setup, Send and Receive Messages, select the Recipient Phone Number.

image

Add your phone number manually and click Save.

image

You will receive an OTP. Enter it to verify the number.

image

NOTE :

  • Clicking Access Token allows generating tokens for multiple WhatsApp Business Accounts.
  • If you need to integrate multiple WhatsApp Business Accounts, you can add and manage them using this token.

image

When generating the token, select the WhatsApp Channel you created. Confirm using the WhatsApp Business Account ID, then click Continue.

Copy and save the generated token securely.

image

In the next step shown on the page, you will see a cURL command to test sending a message. Run this to send a test message to the registered number. So till here we successfully created a app.

image

Step 2 : Integrating WhatsApp Channel in Kore.ai

Go to Kore.ai Platform.

Navigate to Flows β†’ Channels β†’ Digital Channels.

Search for WhatsApp and click Add.

image

You will see multiple WhatsApp channel types; select WhatsApp Cloud API.

image

You will need the Phone Number ID. This is available in Meta Business Account under Phone Number section.

image

Now paste the Phone Number ID in the platform.

image

In the Kore.ai WhatsApp Cloud API configuration page, copy the Webhook URL and Verify Token.

image

Also copy App ID and App Secret from Meta Developer Console β†’ App Settings β†’ Basic.

image

Step 3 : Webhook and Authorization Configuration

Open Facebook login for Business settings.

Under Valid OAuth Redirect URLs, paste the Callback URL obtained from Kore.ai .

image

On [Kore.ai], in WhatsApp Business Authorization Type, select Temporary.

Paste the App ID and App Secret copied from Meta and click Authorize.

image

Copy the Webhook URL and Verify Token from Kore.ai again for the next step.

image

Go to Meta β†’ Webhooks β†’ Configuration and paste:

  • Callback URL
  • Verify Token

Click Verify to confirm the webhook connection.

image

Scroll down to Webhook Subscriptions and enable the messages event (subscribe).

image

Also publish the App in http://Kore.ai platform

image

Step 4 : Final Step

You will receive a test message to the registered mobile number.

You can now start chatting with your bot via the WhatsApp Business number.

image

1 Like

Hi Srava,

This is really helpful! We followed the configuration steps, yet we are facing some issues while trying to connect to the WhatsApp account via a webhook.
We are receiving messages from WhatsApp, but we never get a response from Kore. Checking the logs, we found in the interactions menu that the message is in the conversation history, but we never received the message in the end-user WhatsApp chat.