Contact Us 1-800-596-4880

Twilio Connector Reference

Twilio is a SaaS cloud communications platform that allows users to make and receive phone calls, send and receive text messages, and perform other communication functions using web service APIs.

Connections

To connect to a system, whether it is a source of data or the target where you are sending data, you must create a connection with that system’s required credentials. You typically connect to different systems within a flow and can reuse each connection every time you need to connect.

This system requires the following credential information for its connections:

Connection Name

Enter a connection name that will help you remember the details of this connection. You can reuse connections multiple times in a single flow, and in more than one flow, and the credentials are hidden after you create the connection. Therefore, it’s helpful to provide a name that easily identifies this connection from others.

Only you can see the connection. Other users in your Composer app must create their own connections.

Account SID

The Account SID that you use to log in to Twilio.

Auth Token

The Auth Token that you use to log in to Twilio.

Actions

After you connect to a system and define the trigger or configure a scheduler, you define the actions that the flow performs. For example, you can copy a record between different systems, such as Workday and Salesforce. The actions you can perform depend on which system you are connected to.

This system provides the following actions:

Send Message

Send a message to a recipient. Values are required in the following fields:

  • To: The value in this field must be the phone number in E.164 format, SIP address, or channel user address (such as WhatsApp or Facebook messenger channel) of the message recipient.

  • From: The value in this field must be the phone number in E.164 format, SIP address, or channel user address (such as WhatsApp or Facebook messenger channel) of the message initiator.

To send a message, you must provide a value in one of the following fields:

  • Message Text: Provide a value in this field to send an SMS message. The value in this field cannot exceed 1600 characters.

  • Media URL: Provide a value in this field to send a media message. Media messages are only available in the United States and Canada. Media messages sent to recipients outside of the United States and Canada appear as an SMS message with an URL link.

Make a Phone Call

Initiates a phone call. Values are required in the following fields:

  • To: The value in this field must be the phone number in E.164 format, SIP address, or client identifier of the call recipient.

  • From: The value in this field must be the phone number in E.164 format, SIP address, or client identifier of the call initiator.

  • TwiML URL: The value in this field is the URL that hosts a set of TwiML instructions.

    For more information on TwiML, see the Twilio documentation.

Custom Fields

Custom fields are not supported. Using MuleSoft Composer, you can access standard field values for actions and triggers that you set in the Twilio record.