Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added attachments

...

This Universal Extension allows to send SMS/WhatsApp/Voice message to a list of recipients.

Version Information

Template NameExtension NameExtension Version
Twilioue-twilio1.0.0

Refer to Changelog for version history information.

...

The input fields for this Universal Extension are described below.

FieldInput typeDefault valueTypeDescription
ActionRequiredSend SMS MessageChoiceΑction performed upon the task execution. Available actions are listed below.
  • Send SMS Message
  • Send WhatsApp Message
  • Send Voice Message
To use WhatApp set up is required
Twilio CredentialsRequired-CredentialsThe Credentials definition should be as follows.
  • Account SID as "Runtime User".
  • Auth Token as "Runtime Password".
Twilio Credentials can be found on Twilio console page.
SenderRequired-TextSenders identifier (phone number) in E.164 format.
Recipient ListRequired-Large TextA list of message Recipient identifiers (phone numbers) , separated by comma. E.164 format.

Max characters: 4000
MessageRequired-Large TextBody of the message.
  • Min Characters: 1
  • Max Characters: 1600
Answer TimeoutOptional30IntegerMax wait time until a call is answered in seconds.
  • Min Value: 1
  • Max Value: 600
Timeout helps avoid voicemail, by hanging up automatically after the defined time has passed.
On average 3-5 seconds are consumed until the phone starts ringing. So estimate respectively.

Required when Action = "Send Voice Message".
Call Max DurationOptional60IntegerMaximum talk time per call in seconds.
  • Min Value: 1
  • Max Value: 14400
This option allows to limit charges per call. Cases such, the line is left open, or a voicemail keeps recording for long time.

Required when Action = "Send Voice Message".
Proxy TypeOptional-- None--ChoiceType of proxy connection to be used. Available options listed below.
  • -- None --
  • HTTP
  • HTTPS
  • HTTPS With Credentials
ProxyOptional-TextProxy server in the following format: http://proxyip:port or https://proxyip:port.

Required when Proxy Type is not "-- None --".
Proxy CA Bundle FileOptional-TextThe path to a custom certificate bundle to use when establishing SSL/TLS connections with proxy.
The Bundle needs to include certificates for both proxy and Twilio sites.

Used when Proxy Type is configured for "HTTPS" or "HTTPS With Credentials".
Proxy CredentialsOptional-CredentialsThe Credentials definition should be as follows.
  • Proxy Username as "Runtime User".
  • Proxy Password as "Runtime Password".
Required when Proxy Type is configured for "HTTPS With Credentials".

Task Examples

Send SMS Message to one recipient

SmsImage RemovedImage Added

Send WhatsApp Message to a list of recipients with HTTPS Proxy

WhatsAppImage RemovedImage Added

Send Voice Message with HTTPS With Credentials Proxy

VoiceImage RemovedImage Added

Task Output

Exit Codes

The exit codes for this Universal Extension are described below.

Exit CodeStatus Classification CodeStatus Classification DescriptionStatus Description
0SUCCESSSuccessful ExecutionSUCCESS: Task executed successfully.
1FAILFailed ExecutionFAIL: < Error Description >.
2AUTHENTICATION_ERRORBad credentialsAUTHENTICATION_ERROR: Account cannot be authenticated. < Error Details >.
3AUTHORIZATION_ERRORInsufficient PermissionsAUTHORIZATION_ERROR: Account is not authorized to perform the requested action. < Error Details >.
10CONNECTION_ERRORBad connection data or connection timed outCONNECTION_ERROR: < Error Description >.
20DATA_VALIDATION_ERRORInput fields validation errorDATA_VALIDATION_ERROR: < Error Description >.
21FAILNot all messages were queuedFAIL: Some messages were not possible to be queued. Check STDERR for more information.

Extension Output

In the context of a workflow, subsequent tasks can rely on the information provided by this integration as Extension Output.

...

result section includes the following attributes:

AttributeTypeDescription
statsobjectObject with the statistics of the queued messages to Twilio with "Success" or "Failure".
msg_queued_countnumberNumber of messages successfully queued to Twilio.

Part of stats array.
msg_failed_countnumberNumber of messages failed to queue to Twilio

Part of stats array.

Extension Output on "Cancel" command execution, is supported for Universal Agent 7.3 and above.

...

This document references the following documents.

Document LinkDescription
Universal TemplatesUser documentation for creating, working with and understanding Universal Templates and Integrations.
Universal TasksUser documentation for creating Universal Tasks in the Universal Controller user interface.
CredentialsUser documentation for creating and working with credentials.
Resolvable Credentials Permitted PropertyUser documentation for Resolvable Credentials Permitted Property.

Changelog

ue-twilio-1.0.0 (YYYY-MM-DD)

...