Twilio Samples - Help Trigger

<< Click to Display Table of Contents >>

Navigation:  Examples > Twilio Samples >

Twilio Samples - Help Trigger

Help
Account: Twilio SMS Receive From +447481347170
Message Source: Twilio
Checked Every:    On Demand

Trigger: Help

From Address:
*

This trigger fires last so will fire for any other SMS message that has not been handled by the other Triggers. Sends back a message showing available commands.

Extracted Fields

From Look For: "FROM" Then Look For: ":" Extract Until: Until End Of Line
Body Look For: "BODY" Then Look For: ":" Extract Until: Until End Of Line
ToCountry Look For: "TOCOUNTRY" Then Look For: ":" Extract Until: Until End Of Line
Status Look For: "SMSSTATUS" Then Look For: ":" Extract Until: Until End Of Line
FromCountry Look For: "FROMCOUNTRY" Then Look For: ":" Extract Until: Until End Of Line
ToNumber Look For: "TO" Then Look For: ":" Extract Until: Until End Of Line

Actions

Send Popup Message %AccountName%: %msg_subject%
Set Variable CompanyName =
Set Variable Name =
Set Variable InfoText =
Update A Database %PSLCentral%
Lookup From A Database SELECT * FROM [PSLCentralTemp].[dbo].[ThinkAutomationSMSDemoRegistrations] WHERE FromNumber= '%From%'
If  %Name% Not Blank  Then 
Set Variable InfoText = We have this number registered to %Name% (%CompanyName%)
End If
Twilio Send SMS Message  To %From% "Parker Software ThinkAutomation SMS Demo Please Send: 'Register' to register your details 'Info' to request information 'Call' to request a cal..." (Assign Status To %Status%)
End Of Actions

Sample Incoming Message

Subject: Help

FROM: +447799731038
BODY: Help

TOCOUNTRY: GB
SMSMESSAGESID: SM67f0a903f38900697bdeb9bf7ec1418d
NUMMEDIA: 0
SMSSID: SM67f0a903f38900697bdeb9bf7ec1418d
SMSSTATUS: received
FROMCOUNTRY: GB
TO: +447481347170
NUMSEGMENTS: 1
MESSAGESID: SM67f0a903f38900697bdeb9bf7ec1418d
ACCOUNTSID: ACf4a09fc9048473636db653aa6b2ba439
HTTP_USER_AGENT: TwilioProxy/1.1
HTTP_X_TWILIO_SIGNATURE: KHm5RL7uZxE1FnR2HMhBSRc41IA=
 
ThinkAutomation © Parker Software 2016