Assistant Relay lets you send any command to Google Assistant that would normally follow the
OK Google commmand.
Sending a custom command
To send a custom command, simply send a HTTP POST request to
/assistant with the following json-encoded body parameter:
Once executed, Assistant Relay will then broadcast the response to your Google Home devices.
Note: If you do not want Assistant Relay to broadcast the response, set the
converseparameter to false
As Assistant Relay uses the Google Assistant Service, there are some restrictions.
- Google does not allow media commands to work, so sending a command such as
Play John Mayer in the Officewill not work
Casting back audio responses
Assistant Relay now supports Casting (in v3.3.0b and above). In the above custom command example, the response is populated with an audio field.
It is possible to pass this URL back to the
/cast endpoint for it to play as per the following json-encoded body parameter:
For more information, please see Casting Media