Google Assistant Trigger
Seamlessly integrate Google Assistant with your favorite APIs, databases, and programming languages, using WayScript.
Run your script using a Google Assistant voice command.
To have your Google Assistant speak a phrase, use the Google Assistant module.‌


Enable Google Assistant

Add the WayScript action to your Google Assistant account.
1) Click here to go to the WayScript Trigger Google Assistant action, or click "Enable Action and Link Account" in the modal presented when "Add an Account..." is selected in the Google Assistant Trigger.
Click "Enable Action and Link Account"
2) Click "Link" on the WayScript Trigger action page, or send the link to your device and click "Link" from the Google Assistant app.
Click "Link" or "Send to device" and complete linking from your device
3) You will be taken to WayScript and prompted to sign in.
4) Sign in and that's it! Your Google Assistant account is now linked!
If you wish to unlink WayScript from your account, click "Unlink" from the WayScript Trigger page in the Google Assistant app.

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.‌


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