Solved

Has anyone implemented integration with whatsapp messages somehow?

  • 3 December 2019
  • 2 replies
  • 100 views

Userlevel 4
Badge +7

We would to be able to send whatsapp messages from the application to users, in this case employees. Has anyone done this with the SF? Pleas let me know.

icon

Best answer by Vincent Doppenberg 3 December 2019, 12:16

Hi Edwin,

Facebook offers a Business API for Whatsapp that supports sending messages.

Any HTTP-based API can be consumed by configuring an HTTP connector in the SF. Authentication and authorization can be complicated when the API requires OpenID or OAuth, but the Whatsapp API is fairly easy. It comes down to sending a request to the login endpoint with basic authentication, extracting the authentication token from the response and sending this token with the API call that you want to make. So you will need two HTTP connectors.

View original

2 replies

Userlevel 5
Badge +2

Hi Edwin,

Facebook offers a Business API for Whatsapp that supports sending messages.

Any HTTP-based API can be consumed by configuring an HTTP connector in the SF. Authentication and authorization can be complicated when the API requires OpenID or OAuth, but the Whatsapp API is fairly easy. It comes down to sending a request to the login endpoint with basic authentication, extracting the authentication token from the response and sending this token with the API call that you want to make. So you will need two HTTP connectors.

Userlevel 1
Badge +2

We have implemented Whatsapp integration with the use of the Twilio platform. Just like the facebook api itself, you can use the HTTP connector for the request. You communicate with the twilio servers in this solution. This has 2 benefits for us over the use of the direct FB api.

  • Send a message with just one call to the webserver; it uses a token based scheme for sending messages, the actual interaction with FB is handled by twilio. Effectively this means we only have to send and parse just one request / response, making the processflow a lot easier to create and maintain.
  • This allowes us to have an fallback to SMS when the number you are sending the notification to does not have WhatsApp. 

Reply