Google Assistant to Run Tasker Tasks: Full Guide
In this article
Yes, you can use Google Assistant to run Tasker tasks on your Android phone. This works through the official Tasker app and the Google Assistant's built-in "App actions" or "Shortcuts" feature. You'll need Tasker installed, the AutoApps plugin (specifically AutoVoice) for the most reliable method, and a Google account. The basic idea is to create a Tasker profile that listens for a specific voice command, then trigger that profile using AutoVoice's integration with Google Assistant.
What You'll Need
- An Android phone with Google Assistant enabled (most modern Android devices have this).
- The Tasker app installed from the Google Play Store.
- The AutoVoice plugin installed from the Google Play Store (free version works, but the paid version unlocks more features like always-on listening).
- A Google account signed in on your phone.
- Basic familiarity with creating Tasker profiles and tasks.
Step-by-Step
- Install and set up AutoVoice. Open the AutoVoice app after installation. It will ask you to enable accessibility and notification access – follow the prompts. You'll also need to grant AutoVoice permission to appear over other apps (this is in your phone's Settings > Apps > Special access).
- Create a Tasker task. Open Tasker and go to the Tasks tab. Tap the "+" button to create a new task. Give it a name, e.g., "Turn on WiFi". Add actions to the task – for example, add a "WiFi" action and set it to "Set On". Save the task.
- Create a Tasker profile for voice commands. Go to the Profiles tab in Tasker. Tap "+" to create a new profile. Choose Event > Plugin > AutoVoice > Recognized. In the AutoVoice configuration, tap the pencil icon to edit. Set the Command field to the exact phrase you want to say, e.g., "turn on wifi". You can also use wildcards like
turn on wifi*to match variations. Tap OK to save the profile. Then select the task you created in step 2 as the entry task. - Enable AutoVoice in Google Assistant. Open the Google app on your phone, tap your profile picture, then go to Settings > Google Assistant > Assistant tab > Routines. (Note: Menu labels can differ slightly by Android version and Google app version. If you don't see "Routines", look for "Assistant settings" and then "Routines".)
- Create a routine that triggers AutoVoice. In the Routines section, tap "New" or "+" to create a new routine. Under "When I say", type the exact phrase you want to say to Google Assistant, e.g., "turn on wifi". Under "My Assistant should do", tap "Add action" and choose "Try adding your own action" (or similar). Type ask AutoVoice to turn on wifi – this is the command that tells Google Assistant to invoke AutoVoice. Save the routine.
- Test the routine. Say "Hey Google, turn on wifi" to your phone. Google Assistant should respond and trigger the AutoVoice plugin, which in turn fires your Tasker profile and runs the task. If it doesn't work the first time, check the next sections.
Common Mistakes
- Using the wrong command phrase. The routine's "When I say" phrase and the AutoVoice command must match exactly (or the AutoVoice command must be a wildcard that matches the phrase). If they don't match, the profile won't trigger.
- Forgetting to enable AutoVoice accessibility. AutoVoice needs accessibility access to read the notification that Google Assistant sends when a routine runs. Without it, the command won't be passed to Tasker.
- Creating the profile as a State instead of an Event. The AutoVoice Recognized event is what fires when a voice command is heard. Using a State profile (like "Variable Set") won't work for this purpose.
- Not granting notification access to AutoVoice. AutoVoice uses a notification listener to capture the command from Google Assistant. If notification access is off, it won't work.
Tips
- Use wildcards in the AutoVoice command to make it more flexible. For example,
turn on wifi*matches "turn on wifi", "turn on wifi please", etc. - Test with a simple task first (like a flash notification) before building complex tasks.
- If you have many commands, consider using AutoVoice's "Command Filter" feature to group them.
- Keep your routine phrases short and unique to avoid conflicts with other Google Assistant commands.
- You can also use AutoVoice's "Natural Language" feature to understand more complex sentences, but that requires the paid version and additional setup.
Troubleshooting
- Google Assistant doesn't respond to your phrase. Make sure the routine is saved and enabled. Also check that your phone's language matches the routine's language. If the phrase is already used by a built-in Google Assistant command, try a different phrase.
- Google Assistant responds but nothing happens in Tasker. Check AutoVoice's logs (open the AutoVoice app and go to the "Logs" tab). If you see an error, it usually indicates that the profile didn't match. Verify that the AutoVoice command in the profile matches the routine's "ask AutoVoice to ..." part exactly.
- AutoVoice says "No profile matched". This means the command was received but no profile matched. Double-check the command spelling and wildcard usage in your profile.
- Tasker profile triggers but the task doesn't run correctly. Check the task's actions – make sure they are correct and have the right permissions. For example, toggling WiFi may require the task to have "Run with root" if you're using certain methods, but the standard WiFi action works without root.
- Everything seems right but still no luck. Restart your phone, then test again. Also, ensure that Tasker and AutoVoice are both updated to the latest versions. If it still fails, try recreating the routine and profile from scratch, as sometimes a typo is hard to spot.
Frequently Asked Questions
Do I need the paid version of AutoVoice?
No, the free version supports basic command recognition, which is enough for this guide. The paid version adds features like always-on listening and natural language processing, but they're not required for simple commands.
Can I use Google Assistant without AutoVoice?
Yes, there is an alternative method using Tasker's built-in "Assistant" integration (if you have Android 11 or later with Tasker's "Assistant" action). However, it's less flexible and may not work on all devices. AutoVoice is the most reliable and widely used method.
Will this work on a Samsung phone?
Yes, it works on any Android phone that supports Google Assistant, including Samsung Galaxy devices. Just make sure you have Google Assistant set as your default assistant (or at least accessible via "Hey Google").
Can I use this to control smart home devices?
Absolutely. You can create Tasker tasks that send commands to smart home hubs (like Home Assistant, SmartThings, etc.) and trigger them with voice commands. This is a popular way to add custom voice control to devices that don't natively support Google Assistant.
What if I want the command to work when the screen is off?
Google Assistant usually works with the screen off if you have "Hey Google" enabled. However, AutoVoice might need the "Always-on" mode (paid feature) to reliably trigger when the screen is off. Without it, you may need to wake the screen first.
Does this drain battery?
AutoVoice's accessibility and notification listeners have minimal battery impact. The main battery drain comes from Google Assistant's always-on listening, which you can manage in your phone's settings.