The Oracle Integration Cloud (OIC) has an Adapter for Twilio which allows to communicated easily via SMS or with WhatsApp.
The Twilio Adapter provides the following benefits:
- Sends an SMS or MMS message.
- Returns all inbound and outbound SMS messages.
Create a Connection
Choose the Twilio Adapter from the Connections List.
A Twilio security identifier (SID) and authorization token are required.
These are provided when you create your Twilio user account.
Use them to properly configure the connection. Save and Test.
Create an Integration
Here I will create an AppDriven Integration with a REST trigger.
The REST trigger will have a parameter called input.
This parameter will contain the message to be sent via Twilio.
Add Twilio Adapter
After dragging the Twilio connection to the canvas and giving it a name we can choose the Operation: Send SMS or MMS.
This is what we have so far!
Finally the mapping.
Input parameter maps to Body
To: Number to send the message (with international code starting with +, not 00)
From: Is the Twilio number assigned to the Send SMS service. You need to define this in Twilio.
Now we are ready to Test it!
And in no time this arrives to me Phone! Trial accounts append an extra message to the content to remind us that we are indeed in a Trial account 🙂
Final Notes:
I did not cover the WhatsApp part here mainly because there is no difference from the OIC implementation. That routing is done on the Twilio side. I do have another post where I cover in detail the WhatsApp configuration, but in the context of the Oracle Digital Assistant – here.