Twilio

Twilio

Twilio

Twilio Plugin can be used for perform communication functions using Twilio Cloud Communications platform.  Twilio allows software developers to programmatically make and receive phone calls, send and receive text messages, and perform other communication functions.


Prerequisites:

  1. Twilio instance with access details. 
  2. Twilio API Credentials which includes, Account SID and Auth Token. 
  3. Twilio account with a sender number and appropriate access.


References

  1. https://www.twilio.com/docs/sms/send-messages
  2. https://www.twilio.com/docs/api/errors
  3. https://www.twilio.com/docs/glossary/what-e164



Trial Instance

In case you wish to get started with Trial instance 

  1. You may obtain Trial API Credentials to begin with on www.twilio.com.
  2. In the General tab under Settings scroll to look for API Credentials. 



  1. For prerequisites and appropriate access to send SMS using Twilio’s Trial Account refer to the following URL: https://support.twilio.com/hc/en-us/articles/223134087-Twilio-s-Global-SMS-on-trial-accounts



Send SMS 

Description

Twilio: Send SMS Plugin step sends a new outgoing message from Twilio phone number to an outside phone number.   


Configurations 

No.

Field Name

Description

1

Step Name

Name of the step.  This name has to be unique in a single workflow.


Connection:


2

Account  SID

Specify ‘Account SID’ of a Twilio project that acts as a username. 

Account SID is used in URL as username parameter of REST call to send SMS. Error messages for invalid Account SID may vary.


Auth Token:

Auth Token is the authentication for the Twilio project.

3

Accept value as variable/static

Leave checkbox unchecked to accept Auth Token from a field in the previous steps of the stream using a drop down list. 

Else enable checkbox for Auth Token field to appear as Text box.

4

Auth Token

Specify the Auth Token of Twilio project/ that acts as a password.


If checkbox above is enabled Auth Token field appears as Text box and accepts static or variable values. 

Else if checkbox above is disabled Auth Token field appears as a drop down to select fields from previous steps. Please note that Field values can only be accessed when workflow is in running state. 

This field data type is String. This field is mandatory.


Input Tab:

No.

Field Name

Description


Input:


1

Sender Number

Secify the Twilio phone number, shortcode or Messaging Service that sends this message. This must be a Twilio phone number that you own, formatted with a '+' and country code, e.g., +16175551212 (E.164 format).

This field data type is String. This field is mandatory.

2

Receiver Number

Specify the destination phone number for your SMS message. Format this number with a '+' and country code, e.g. +16175551212 (E.164 format).

This field data type is String. This field is mandatory.

3

Message Body

Specify the full text of the message you want to send, limited to 1600 characters.

This field data type is String. This field is mandatory.


Output Tab:

No.

Field Name

Description


Output:


1

SID

Specify an output field to hold, a unique ID that is allotted to the message. 

This field data type is String. This field is mandatory.

2

Status

Specify an output field to hold, the current status of the message being sent.

This field data type is String. This field is mandatory.


Common Buttons:

No.

Field Name

Description


Buttons:


1

OK

Click this button to check and save the field values.  If any required field values are missing then it will display a validation error message else if all the required field values are provided then it will save the field values.

2

Cancel

Click this button, to cancel the window and does not save any values.








      Links to better reach 

            Bot Store

             EPD