/
Messaging Service Providers

Messaging Service Providers

Messaging Service Providers refers to

 

Meta: WhatsApp direct

Coming soon

Meta: Facebook Messenger

Coming soon

Twilio (for WhatsApp)

Twilio is a cloud communications platform that offers a wide range of APIs to integrate messaging, calls, video, and various communication features into user applications. For some time, Twilio was one of few options available for WhatsApp backend-based communications. Since late 2022, there are now many other providers that offer a similar service.

Twilio Setup

1- Login/ register an account in Twilio

2- Obtain a a phone number

2a - You can buy a new one: go to Twilio Console > Phone Numbers > Buy a number. The number must be capable of sending WhatsApp messages. You can read more about which Twilio phone numbers are compatible with WhatsApp in this article.

2b - alternatively bring an existing Whatsapp number into your Twilio account.

3- Once your number is active, go to Twilio console> messaging> senders> WhatsApp senders.
Edit sender, to be able to add the webhook url that it will be used. This is the URL that you have chosen to expose in the eLearning Chatbot App

RapidPro Webhook URL example

5- Finally integrate Twilio into the code, for this you need Twilio account SID and auth token.

// Download the helper library from https://www.twilio.com/docs/node/install // Find your Account SID and Auth Token at twilio.com/console // and set the environment variables. See http://twil.io/secure const accountSid = process.env.TWILIO_ACCOUNT_SID; const authToken = process.env.TWILIO_AUTH_TOKEN; const client = require('twilio')(accountSid, authToken);

 

Related content