Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
Punith_Oswal
Participant
2,227
For an Integration team member, monitoring the message failures and being vigilant on the system is an important day to day task. Coming from an Integration team, frankly saying this is the most boring task for any team member. Of course we can setup alert email notifications to get hold of failures if any, But this again calls out to be vigilant on the Outlook.

What if I say, we can have alert mechanism in which the alert message is directly sent as a WhatsApp message to your phone ? I think it will ease our job, because WhatsApp is closer to our hands than Outlook.

This part will explain the Twilio and the Open connectors setup, Integration with the Integration Suite - Cloud Integration IFlow will be covered in the upcoming blog.

 

Part 2 of this blog can be accessed from here https://blogs.sap.com/2023/03/10/sap-integration-suite-monitoring-made-easy-with-open-connectors-twi...

 

Use Case:


Setting up WhatsApp notification in case of any message failures in Integration Suite - Cloud Integration tenant using SAP Open Connectors - TWILIO

 

Pre-requisities


Create an account for the following:

  • Twilio

  • Enable Open Connector in SAP BTP


 

Twilio Setup



  • Register an account with Twilio and go to the console https://www.twilio.com/console.

  • Twilio is a paid service, I have used Twilio Trail account here.


 

  • Go to "Develop" and expand "Messaging" dialog box, then select "Send a WhatsApp message" option as shown in the image 'Twilio setup 1'.


 


Twilio setup 1


 

  • From your mobile send a WhatsApp message with the code to the designated number.



Twilio setup 2


 

  • Once you send the message, upon success you will see the below message on your WhatsApp



Twilip setup 3


 

  • Click on "next step" which is 'User-Initiated conversation' and send a dummy (Test) message from the same WhatsApp account, you should see the message coming into your Twilio account on this screen



Twilio setup 4


 

  • After this click on "Wrap up" and select "Sandbox Settings"


 


Twilio Setup 5


 

  • Empty the When a message comes in and Status callback URL and select Save in the Sandbox settings.


 


Twilio Setup 6


 

  • Go to "Develop" and select "Get Set Up", on the screen you can see Account Information, Note the Account SID and Auth Token somewhere (click on View Auth Token to get the token)


 


Twilio setup 7


 

SAP Open Connectors Setup



  • Logon to SAP Open Connectors and select Connectors. Search for “twilio” and select Twilio


 


Open Connectors Setup 1




  • Select Authenticate.

  • Enter the following information:
    Name: TwilioPOC
    Phone Number – from Twilio setup, You need to get a Twilio number, you get the option to "get a twilio phone number" when you create your trail account.
    Create the instance using Test Credentials: false
    Account SID – from Twilio setup.
    Auth. Token – from Twilio setup.
    Select Create Instance to continue.


 


Open Connectors Setup 2




  • Select Test in the API docs to test the API and Select POST /messages call.


 


Open Connectors setup 3


 

  • Click on "Try it out" option to make the body area editable, modify the body as per your need, I have tried with below mentioned body.


 


Open Connectors Setup 4


 

  • Click on execute, If the request is successful you can see the below response on the screen.



Open Connectors Setup 5




  • You can see this message received on your WhatsApp account.



Open Connectors Setup 6


 

The Integration between Open Connectors, Twilio account and WhatsApp account is successful. Now we will call this Open Connector from the Integration Suite - Cloud Integration IFlow which will be covered in the next blog.

 

Kindly watch out this space for next updates.

3 Comments
Labels in this area