Heya, Thanks for visiting!
edited

This guide will go over how to play a sound/alarm/ding and auto-reply when you receive a certain SMS/text message from the Google Hangouts app. The sound will also play regardless of your do not disturb, sleep hours, silence settings.

I needed this so my family could wake me up in case of emergency or I overslept when we were supposed to get together. I have been using this setup since July 2016 it has been working great. I have used this on a Moto E (Android 5) and a Google Pixel (Android 7 and 8) with Google Voice.

Watch on YouTube

The right phone has Tasker running and the left phone sends standard text message.

Apps to install

To get started, purchase and download the following apps. The total cost is $5.50 presently.

Tasker Setup

Open up Tasker

In the top-right, click the 3-dot menu icon and go to Preferences to turn off Begginer Mode

Open up AutoNotification and the unlock key app to make sure everything is activated and ready

Go back to the main screen. Press and hold the home looking icon in the bottom-left corner and click the Add button to create a new project. Projects allow you to organize a set of profiles/tasks, etc into a single place (like a folder). Let's call it Ping Pong. Once created, you will see a Ping Pong tab at the bottom of the screen.

Create the profile (listen for new hangouts message)

While you are on the Profiles tab, click the plus + button to start creating a new profile -> Event -> Plugin -> AutoNotification -> Intercept

Click the configuration edit pencil icon

On the configuration screen, do the following

  1. Check Has Reply Action
  2. Under Apps, choose Hangouts
  3. Scroll down to the Notification Text setting and enter (?mi).*\bping\b.*
    • The regex here is PCRE(Java regex). Thanks to João(author or AutoNotification) for clarifying this in an email!
    • Basic regex breakdown
    • (?mi) adds the multiline and case-insensitive flags (so people can send PING, ping, PiNg, etc)
    • .* on either side will ensure any text with ping will be matched (perhaps you don't want this)
    • \b on either side will only match if the ping is separated by a word boundary like spaces
  4. Check the Case Insensitive checkbox (this doesn't interact with the Regex option but whatever)
  5. Check the Regex checkbox

Click the checkmark at the top to confirm and your profile config for the intercept event should looking something like the following. Press the back button to be done and Tasker will prompt you to create a new task.

Create the task (play sounds and auto-reply)

The task is what will happen when you receive the "ping" SMS/text. In this example we will turn up the sound level, play some sounds to wake you up, and automatically reply back to the sender so they know it worked, etc.

Click new task and name it Ping me

On the task edit screen, press the plus + button to add a new action -> Plugin -> AutoNotification -> Reply

Click the configuration edit pencil icon

On the configuration screen, change the Reply Text to pong.
Click the checkmark at the top to confirm.

Back on the task edit screen, repeat the process to create more actions, press the plus + button

  1. Audio -> Notification Volume. Change the Level to 7
  2. Audio -> Media Volume. Change the Level to 15
  3. Alert -> Notify Sound. Change the Title to Ping
  4. Alert -> Beep. The defaults are fine (and annoying)
  5. Task -> Wait. Change the Seconds to 2
  6. Alert -> Morse. Change the text to SOS

That should be enough to wake you up (warning LOUD if you are testing). Now when someone texts you "ping", your phone will blare some sound and auto reply with "pong".

Testing

To test, you can try texting yourself from another device or from the Google Voice interface on your computer.

You may want to cover up your speaker with your finger or adjust the sound level of the actions while you are testing as it is very loud.

Resources