Log into your Twilio account. The default landing page is the Dashboard for your account. On the left side panel, click on the All Products and Services icon to expand it.
Click on Programmable SMS and then on WhatsApp.
For production purposes, you will need to have your account approved by WhatsApp (see the Senders link on the same section). In the meantime, you can do the same configuration in the Sandbox environment provided by Twilio. Click on Sandbox.
On the first section, Sandbox Configuration, you'll need to enter your Rocket.Chat server details on the When a message comes in field. The format is as follows:
On the Twilio console, “Programmable SMS Dashboard” -> “Whatsapp” -> “Senders” -> Select the Whatsapp number. This will open the “Configuration” screen, where the webhook configuration must be done in order to connect Twilio to Rocket.Chat Livechat
On the Twilio console, go to “Programmable SMS Dashboard” and copy the “ACCOUNT SID” and “AUTH TOKEN”
Go to Rocket.Chat Server -> Administration -> Settings-> SMS -> Set to “Enabled” and select “Twilio” as service
Go to Rocket.Chat Server -> Administration -> Settings -> SMS -> Section “Twilio” and add the “Account SID” and Auth Token you had copied on Step 5. After that, the Livechat+Whatsapp integration will be working properly in both directions.
Step 8 (For SaaS customers only)
For Cloud customers, the file-sharing (images, audio, videos, etc) between LiveChat and Whatsapp might not work properly.
To fix this issue go to Settings -> File Upload -> Amazon S3 -> Enable the “Proxy Uploads” setting.