Skip to Content
Technical Articles
Author's profile photo Punith Oswal

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/

 

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%20setup%201

Twilio setup 1

 

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

Twilio%20setup%202

Twilio setup 2

 

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

Twilip%20setup%203

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%20setup%204

Twilio setup 4

 

  • After this click on “Wrap up” and select “Sandbox Settings”

 

Twilio%20Setup%205

Twilio Setup 5

 

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

 

Twilio%20Setup%206

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%20setup%207

Twilio setup 7

 

SAP Open Connectors Setup

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

 

Open%20Connectors%20Setup%201

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%20Connectors%20Setup%202

Open Connectors Setup 2

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

 

Open%20Connectors%20setup%203

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%20Connectors%20Setup%204

Open Connectors Setup 4

 

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

Open%20Connectors%20Setup%205

Open Connectors Setup 5

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

Open%20Connectors%20Setup%206

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.

Assigned Tags

      3 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Naresh Dasika
      Naresh Dasika

      Thanks Punith in writing this blog !! Really appreciate your efforts. We really see the benefit of integrating the Twilio app with Open Connectors.

      Author's profile photo ABDUL IMRAN SHAIK
      ABDUL IMRAN SHAIK

      Hi Punith,

      I am getting below error at Twilio setup7 step while i am creating messaging service.

      I am unable to create a successful messaging service. can we go-ahead without adding senders.

       

      Thanks & Regards,

      Imran

      Author's profile photo Punith Oswal
      Punith Oswal
      Blog Post Author

      Hello Imran,

      You need to get a Twilio Phone Number.

      When you create your trail account, $15 gets credited to your trail account which you can use to avail the services, the website asks you to "Get a Twilio Phone Number".

      Try to get the number, the applicable amount gets deducted from your Twilio Trail credit.

       

      I hope this helps.

       

      Thanks,

      P