Google Assistant Trigger

Run your program using a Google Assistant voice command.

To have your Google Assistant speak a phrase, use the Google Assistant module.‌

Setup

Enable Google Assistant

Add the WayScript action to your Google Assistant account. Get the WayScript Trigger action.

WayScript will remind you to do this the first time you use a Google Assistant Trigger.‌

Program Alias

You can supply an easy-to-understand alias for your program.

Useful when your program name is long or difficult for the Google Assistant to understand‌

Voice Commands

Pass in Spoken Input

To pass the input in your voice command, add "with [Variable Value]" to your Google Assistant phrase.‌

You can pass an argument to your Google Assistant-Triggered program by enabling the "Spoken Input" variable in the Outputs panel.

Suppose your program is called 'Stocks' and takes a single input called [Symbol] as input, you could then speak the following phrase to the Google Assistant:

"Hey Google, ask WayScript Trigger to run 'Stocks' with AAPL."

Speak a Phrase

Once you have added the Google Assistant Trigger to a program, you can include the Google Assistant module, which will allow the Google Assistant to speak to you while your program is running.‌

You can reference variables that were created earlier in the program and insert them into an Google Assistant Phrase. See the Google Assistant module documentation for more details.‌

Tutorial

For a brief tutorial on how to use the Google Assistant Trigger, see Run a Python Script with a Google Assistant Voice Command.