Adding the WhatsApp Channel (via Twilio)

This document provides detailed instructions for adding the WhatsApp Business Messaging channel to your bot via Twillio API.

SentiOne enables you to integrate with the WhatsApp channel via Twilio platform. Twillio is the messaging platform and API that enables easy integration with SMS, MMS, and popular social chat apps, including WhatsApp.

Prerequisites

Step 1: Connect your WhatsApp account

  1. Log in to the Twilio portal and navigate to Messaging -> Senders -> WhatsApp senders section. Choose Get Started button.
  1. Select a phone number to register in WhatsApp.
  1. Link your WhatsApp Business Account with your phone number and Twilio Account. Follow the steps described in the Twilio instruction: WhatsApp Self Sign-up with the Twilio Console. Setup includes:
    1. Creating new or selecting the existing Meta and WhatsApp Business Accounts
    2. Creating or selecting the existing WhatsApp Business Profile
    3. Verifying your WhatsApp Business number
  2. In the final step, you will receive a confirmation that your WhatsApp account has been connected to Twilio:

Step 2: Configure the Sender endpoint

  1. Click Edit Sender link from the previous step (Messaging -> Senders -> WhatsApp senders).
  1. Set Webhook URL for incoming messages [1] and Status callback URL [2].
  2. Remember to Save changes.

๐Ÿ“˜

Webhook URL for incoming messages and Status callback URL

From the version v218 of Automate, those URLs are available in the Application on the chanel creation page. Navigate to Channels module, click Create and select WhatsApp by Twilio.

For versions prior to v218, contact your system administrator to get Webhook URL for incoming messages and Status callback URL.

Step 3: Copy Authorisation Token

  1. Navigate to Account -> API keys & tokens module [1].
  2. Copy Account SID [2] and Auth token [3] and use it in Step 4.

Step 4: Configure the channel and connect bot in SentiOne Automate

  1. In the Automate platform navigate to the Channels module.
  2. Click on Create button and choose WhatsApp by Twillio option. In the Create App screen fill the form based on the data from the previous steps:
    1. Phone number - number with international prefix (with + sign)
    2. Account sid - Account SID from Step 4
    3. Auth token - Auth token form Step 4.
  3. Save changes and connect the channel to your bot on the channels list.

Whatโ€™s Next