Twilio Wait For SMS Reply

<< Click to Display Table of Contents >>

Navigation:  Trigger Actions > Available Action Types > Twilio SMS & Calls >

Twilio Wait For SMS Reply

This Action will wait to receive an SMS text message from a specific number. Normally this action would be used to wait for a response to a previously sent SMS message.

 

action-twiliowait

 

Set the From Number to the number you want to wait to receive a message from. Leave this blank to use the number from the last Twilio SMS Message action.

 

Set the Wait For to the number of seconds you want to wait for. If a message is not received after this time then the message text will be blank and Trigger execution will continue. The maximum value for this is 9999 seconds (166 Minutes).

 

Set the Assign Message Text to a field or variable that you want to reply text to be set to.

 

The full Twilio request headers can also be assigned to a field or variable.

 

When this action executes, ThinkAutomation will pause execution of the current Trigger Message execution until the reply is received (or the timeout seconds has elapsed). Other ThinkAutomation messages will be processed during this waiting period. When the reply is received the remaining Trigger actions for the current message will be executed.

 

You can have multiple send/wait for reply actions within a single Trigger allowing you to construct automated SMS text conversations and performing different actions based on the reply results.

 

 

Example:

action-twiliowaitsample

In this example we have a ThinkAutomation Account set to read a web page every few minutes and execute a Trigger if there is no response. We send an SMS Message to a support number to inform the support team of the problem. We assign the delivery status of the SMS message to %SMSStatus%. If %SMSStatus% is 'delivered' then we use the Wait For SMS Reply action to wait a maximum of 120 seconds for a reply. The reply text is assigned to the variable %Acknowledgement%. If an acknowledgment is not received within 120 seconds or is not equal to '1' then we send an email.

 

 

ThinkAutomation © Parker Software 2016