Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

« Previous Version 2 Current »

The bot needs a

Meta: WhatsApp direct

Coming soon

Meta: Facebook Messenger

Coming soon

Twilio (for WhatsApp)

Twilio is a cloud communications platform that offers developers and businesses 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. There are many other providers that offer a similar service.

Twilio Setup

1- Login/ register an account in Twilio

2- either buy a phone number, 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.
Choose your phone number and click on Edit sender, to be able to add webhook url that it will be used.

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);

  • No labels