Salesforce WhatsApp Integration via Twilio

Salesforce WhatsApp Integration via Twilio

In one of the previous post on inteygrate we made an attempt to integrate Salesforce with WhatsApp using an unofficial library Yowsup. We were successfully able to make the connection using a middleware code in Python and send messages from Salesforce to WhatsApp. But lately after many upgrades of WhatsApp the library isn't being supported well and has got many issues during registration, also leading to the numbers being blocked by WhatsApp.

So can we no longer integrate Salesforce with WhatsApp? Yes we can; because now Facebook has officially released APIs for WhatsApp. But, hold on! You cannot start using it right away 😥. Its because they are not completely public yet and Facebook is conditionally providing access to businesses after scrutinising the application to be submitted by businesses before getting access to the APIs.

So, What is Twilio?

Fortunately, we have Twilio - a middleware, a cloud communications platform as a service that allows software developers to programmatically make and receive phone calls, send and receive text messages, and perform other communication functions using its web service APIs. There are other middleware's as well like Zapier, Smooch etc. and these tools expect you to already have your Business WhatsApp number approved for API access. Whereas Twilio API for WhatsApp provides Sandbox numbers that we can use to try out our integration for sending and receiving messages to WhatsApp users.

Watch the below video to understand how Twilio helps businesses to manage Customer engagement across Channels in one single place.

What is Twilio?

Now let us quickly see a Demo of the integration using Twilio and we will then take a look at the steps for the same.


Case creation when customer reports an issue

Reply to customer when a comment is added

Subsequent replies from Customer Saved as Comments on the Case

Next, let us see the configurations required in Twilio and the setup for Twilio API integration with WhatsApp.

About the author
Muralidhar Sampathirao

Muralidhar Sampathirao

Sr Technical Consultant @ Salesforce • With thrdz I am designing the building blocks for Enterprise Applications • Articles, opinions and resources expressed/shared are entirely my personal views.


DZining the building blocks for Enterprise Applications


Great! You’ve successfully signed up.

Welcome back! You've successfully signed in.

You've successfully subscribed to THR(EA)DZ.

Success! Check your email for magic link to sign-in.

Success! Your billing info has been updated.

Your billing was not updated.