SAP Integration Suite – Monitoring made easy with Open Connectors – Twilio Part 1
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-twilio-part-2/
Setting up WhatsApp notification in case of any message failures in Integration Suite – Cloud Integration tenant using SAP Open Connectors – TWILIO
Create an account for the following:
- Enable Open Connector in SAP BTP
- 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’.
- From your mobile send a WhatsApp message with the code to the designated number.
- Once you send the message, upon success you will see the below message on your WhatsApp
- 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
- After this click on “Wrap up” and select “Sandbox Settings”
- Empty the When a message comes in and Status callback URL and select Save in the Sandbox settings.
- 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)
SAP Open Connectors Setup
- Logon to SAP Open Connectors and select Connectors. Search for “twilio” and select Twilio
- Select Authenticate.
- Enter the following information:
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.
- Select Test in the API docs to test the API and Select POST /messages call.
- 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.
- Click on execute, If the request is successful you can see the below response on the screen.
- You can see this message received on your WhatsApp account.
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.