Need Help With Matching Received SMS Text

Post your questions and help other users.

Moderator: Martin

Post Reply
Jdrumr
Posts: 4
Joined: 08 May 2017 23:15

Need Help With Matching Received SMS Text

Post by Jdrumr » 11 May 2017 15:09

Hello,

I am new to Automagic. I would like to setup an SMS received trigger than uses an exact match of the text message. For example, if someone sends me a text of the letter "P", then perform the action. The issue I'm having is that the sender could send me a text with any word that contains the letter "P" and the action takes place. Any help is appreciated. Thanks.

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Need Help With Matching Received SMS Text

Post by Martin » 11 May 2017 19:54

Hi,

The trigger itself only allows to detect if the message contains a certain text but you can use a condition Expression to test if the text of the SMS matches exactly your desired text:
Example flow:
-trigger SMS Received: All
-condition Expression: sms_text=="P"
--> true: -action Vibrate

Regards,
Martin

Jdrumr
Posts: 4
Joined: 08 May 2017 23:15

Re: Need Help With Matching Received SMS Text

Post by Jdrumr » 12 May 2017 12:49

That worked! Thanks Martin.

Post Reply