Assistant Relay lets you send any command to Google Assistant that would normally follow the
OK Google commmand.
To send a custom command, simply send a HTTP POST request to
/api/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
Assistant Relay supports casting via CATT. In the above custom command example, the response is populated with an audio field.
It is possible to pass this URL back to the
/api/cast/catt endpoint for it to play as per the following json-encoded body parameter:
For more information, please see Casting Media