The Twilio connector contains an SMS_RECEIVED event. This event allows for inbound SMS messages to be monitored and an event published when specific criteria are met.
The input parameters for receiving an SMS are:
Parameter | Description |
---|---|
condition | A detailed condition for firing the trigger, created using the Condition Builder. For more details on conditions available as a part of the input values, see Creating Conditions. |
pattern | A regular expression that selects which messages trigger an action. Java catching group syntax can be used to create groups from the pattern as variables, for example: Order Number (?<orderNumber>.+) The variables can then be used in echo and echoError, for example: ${orderNumber} |
echo | A message sent to the original sender of the text that is matched, for example: Your reference number is ${orderNumber}. |
echoError | A message sent to the original sender if an error occurs when publishing the event, for example: There was a problem publishing that event. |
Note: Groups found in matchGroups can be used within
a trigger action variable using the syntax ${matchGroups.group}, for
example: ${matchGroups.orderNumber}