Description
Twilio is a leading cloud communication company that enables software developers to programmatically interact with a variety of communication channels including voice/phone, SMS/text, email, chat and web channels. Twilio offers a rich set of communication REST APIs to build communication workflows in a variety of applications and scenarios.
The UiPath.Twilio.Activities package offers activities to initiate outgoing phone calls or send SMS messages.
Activities List
- Twilio Scope - Connects to Twilio and provides a scope for other activities.
- Make Voice Call - Place a voice call.
- Send SMS - Sends an SMS message.
How to install
UiPath.Twilio.Activities package is available on our Official feed. Please make sure to check âInclude Prereleaseâ in your Package Manager and then search for âUiPath.Twilio.Activitiesâ, and install the latest version.
Twilio Activities should be visible now in UiPath Studio, as shown below:
How to use
The sample workflows below show how to use the Twilio activities in practice.
Placing an outgoing call
This UiPath process uses Twilio to place an outgoing phone call and relays a message when the call is picked up. It consists of the following workflow:
TwilioPhoneCallWithManualSteps.zip (30.3 KB)
To exemplify, letâs go step by step through the process of creating the MakePhoneCall workflow:
- First, add an Twilio Scope activity and set the values for the input parameters like in the screenshot below. In the sample workflow above, you can see that I got the values for these parameters from variables. Here is a short description of the activityâs parameters:
-
Account Sid (
String
) - Your Account Sid from your project dashboard. -
API Key Sid (
String
) - API Key Sid to work with your Twilio project. API Keys can be provisioned and revoked through the Twilio Console. -
API Key Secret (
String
) - API Key Secret to work with your Twilio project. API Keys can be provisioned and revoked through the Twilio Console.
- Add Make Voice Call activity which can be used to place a phone call. The parameters of this activity are:
-
From (
String
) - The Twilio phone number in E.164 format. -
To (
String
) - The phone number to call, in E.164 format, e.g. +15558675310. -
Say (
String
) - Text that is read when the call is answered. -
PlayAudio (
String
) - The URL of an audio file that Twilio will play when the call is answered. -
TwiML (
String
) - Instructions in the form TwiML that explains what should happen when the other party picks up the phone. Learn more about TwiML.
Send an SMS message
This UiPath process uses Twilio to send an SMS message. It consists of the following workflow:
TwilioSendSMSWithManualSteps.zip (30.0 KB)
To exemplify, letâs go step by step through the process of creating the SendSMS workflow:
- First, add an Twilio Scope activity and set the values for the input parameters like in the screenshot below. In the sample workflow above, you can see that I got the values for these parameters from variables. Here is a short description of the activityâs parameters:
-
Account Sid (
String
) - Your Account Sid from your project dashboard. -
API Key Sid (
String
) - API Key Sid to work with your Twilio project. API Keys can be provisioned and revoked through the Twilio Console. -
API Key Secret (
String
) - API Key Secret to work with your Twilio project. API Keys can be provisioned and revoked through the Twilio Console.
- Add Send Message activity which can be used to send an SMS message. The parameters of this activity are:
-
From (
String
) - The Twilio phone number in E.164 format. -
To (
String
) - The phone number to call, in E.164 format, e.g. +15558675310. -
Body (
String
) - The text of the message you want to send. Can be up to 1,600 characters in length. -
Media (
String[]
) - List of media (up to 10) to send with the message.
Thatâs all you need to do! Enjoy