Skip to main content

Send message with Twilio

Send a message using Twilio. See documentation for advanced configuration details.

Application

  • Twilio

Inputs (what you have)

NameDescriptionData TypeRequired?Example
ToThe recipient's phone number or channel address including country codeText (Short)Yes
FromThe sender's Twilio phone number or channel address including country code or the messaging service IDText (Short)Yes
MessageThe text content of the messageText (Long)Yes
Message typeSingle SMS messages are truncated to 160 characters. Overall max message length is 1600 charactersPre-defined Choice ListYes
Default country codeIf no country code is provided for the “To” number then default to this country codeNumberNo
Media linksThe URL(s) of media to include in the message content. jpeg, jpg, gif, and png file types are supported. The media size limit is 5 MB for supported file types and 500kb for other typesList of LinksNo

Note: the value of inputs can either be a set value in the configuration of the Wrk Action within the Wrkflow, or a variable from the Data library section. These variables in the Data library section are the outputs of previous Wrk Actions in the Wrkflow.

Outputs (what you get)

NameDescriptionData TypeRequired?Example
Message SIDThe unique identifier of the sent messageText (Short)YesSMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Message statusThe status of the sent messageText (Short)Yesqueued
Message linkThe URL of the sent messageLinkYes/2010-04-01/Accounts/ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/Messages/SMXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.json
Error codeIf an error occurred, the code of the errorText (Short)Yes
Error messageIf an error occurred, the error messageText (Long)Yes

Outcomes

NameDescription
SuccessThis status is selected in the event that a message was successfully sent.
UnsuccessfulThis status is selected in the event of the following scenario:The message was not able to be sent to the provided phone number or channel address
Impossible to CompleteThis status is selected in the event of the following scenario:More than 5MB of supported files or 500kb of unsupported file types have been attachedA media link provided is not accessibleMMS message is over 1600 characters in lengthInvalid “From” number has been provided

Requirements

  • N/A