Change alerts/notifications based on specific phrases within a text message

269 views
Skip to first unread message

Manoj Shah

unread,
Apr 13, 2021, 4:16:15 PM4/13/21
to Tasker
Hello team,
Can I use Tasker app to setup a specific alert/tone/notification when a specific set of phrases are received within a text message?  

I know that there are capabilities of being able to change notifications based on a specific sender/contact/phone, however, with most of the SMS apps, there isn't a way to setup a routine where it would alert me based on specific words regardless who I receive the SMS message from.

I have a Samsung Note 10+ and I am able to do this using Bixby Routines, however, there are limitations on what actions I can perform with it.

I thought of using routines/automation sort of apps such as this and wanted to know if this would be possible.

Thank you in advance,
Manoj

Scott Miller

unread,
Apr 13, 2021, 4:53:29 PM4/13/21
to tas...@googlegroups.com
Of course. I do this routinely for my on call coverage. Here is how I do it. Almost. I edited out a few things, so I hope I got the sequence right. I'm reading the built in variable SMSRB, which is the body of the received SMS. I match on it twice for different pieces of information, so I store it on my own local variable first, in case another text comes in while processing. Then I alert with a notify that also has my own sound connected to it.

    Profile: My Alerts (115)
    Event: Received Text [ Type:SMS Sender:* Content:* SIM Card:* ]
 
   Enter: My Alerts Enter (113)
    A1: Variable Set [ Name:%rcvtxt To:%SMSRB Recurse Variables:Off Do Maths:Off Append:Off Max Rounding Digits:0 Structure Output:Off ] 
    A2: If [ %rcvtxt ~ *i...@domain.com*/*al...@domain.com* ]
    A3: If [ %rcvtxt ~ *0]*/*(F)* ]
    A4: Notify Cancel [ Title:Problem Alert Warn Not Exist:Off ]  
    A5: Notify [ Title:Problem Alert Text:%rcvtxt Icon:mw_toggle_indeterminate_check_box Number:0 Permanent:Off Priority:5 Repeat Alert:Off LED Colour:Red LED Rate:0 Sound File:Notifications/Alarm5.ogg Vibration Pattern: Category:Alert Down ] 
    A6: Music Play [ File:Notifications/Alarm5.ogg Start:0 Loop:Off Stream:3 Continue Task Immediately:On ] If [ %SCREEN ~ on ]
    A7: End If 
    A8: If [ %rcvtxt ~ *1]*/*(R)* ]
    A9: Notify Cancel [ Title:Recovery Alert Warn Not Exist:Off ] 
    A10: Notify [ Title:InfoGenius Recovery Alert Text:%rcvtxt Icon:mw_toggle_check_box Number:0 Permanent:Off Priority:5 Repeat Alert:Off LED Colour:Red LED Rate:0 Sound File:Notifications/Alarm1.ogg Vibration Pattern: Category:Alert Up ] 
    A11: Music Play [ File:Notifications/Alarm1.ogg Start:0 Loop:Off Stream:3 Continue Task Immediately:On ] If [ %SCREEN ~ on ]
    A12: End If 
    A13: End If 
    


Scott M.

--
You received this message because you are subscribed to the Google Groups "Tasker" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tasker/3406a4c7-d321-4313-957d-e59bebfa999fn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages