image

Hello frnzz,

Recently I built a salesforce bot (similar to Einstein Bot) which can be accessed from whatsapp via Twilio application.

Twilio is acting as a middleware between salesforce and whatsapp.

Steps to configure:

  1. Configure twilio account with your credentials, it will provide the auth token and account sid. We also need to authenticate the mobile number in the twilio sandbox.

https://www.twilio.com/console/sms/whatsapp/sandbox

image

 

  1. Creating/Exposing a Rest API service in salesforce, where we have to define a doPost method. This method will accept a request JSON of whatsapp message.
  2. Creating a public site in salesforce and provide the site url as a webhook in twilio sandbox.

image

 

  1. Create a platform event in salesforce that will help in communicating the messages from salesforce to whatsapp.

image

 

  1. Now we are set with Salesforce and Twilio configuration, we need to configure a node application which will connect both the systems.

image

  1. Host this node application in heroku server.

 

Get ready to test your application:

image

 

image

 

Thank you for reading this blog.

Please do watch this for more details:

https://www.youtube.com/watch?v=qWjCVsAqyHg&t=103s

 

This is Open Community Blogger Platform and community forum of SFDC professionals interested to share their experiences, ideas, and thoughts or any content invaluable to help others in this domain.

Archives