Passing voice commands from Google Assistant to my server - possible at all?

Hey folks,

I’ve spent the last few days diving into rabbit holes trying to figure out how to get Google Assistant to pass voice commands to my backend system. What I thought would be straightforward has turned into quite the challenge!

What I’m trying to do: say “Hey Google, tell my system to deploy the code” and have that phrase “deploy the code” make it to my REST endpoint. I’ve got a server running with auth tokens and everything ready on that end.

My research showed this was previously possible with Google’s Conversational Actions, but those were sunset. Now I’m struggling to find a current solution that works.

I’ve set up Google Assistant integration in Home Assistant, created a text helper (input_text.voice_command), and added the automation to detect changes and forward commands. But I noticed that input_text isn’t listed as a valid domain for Google Assistant in the config YAML, which seems to be a roadblock.

When I created a routine in Google Home, my “voice command” appeared as a “scene” that can only be activated without any parameters being passed. I’m wondering if this is just how things work now, or if I’m missing something?

I’ve looked into IFTTT as well, but it seems that lost the ability to pass commands through at the same time as the sunset of conversational actions. I’m open to alternatives that don’t necessarily involve Home Assistant as the middleware - maybe there’s a more direct route I haven’t considered?

I’d really appreciate any insights from this knowledgeable community. Is there any current method to get text from a voice command to my own endpoint? A creative workaround? A different service that might help?

Thanks for reading and for any help you can provide!

To answer my own question: I got the bright idea of using SMS. Google Assistant can send them. I have an Arduino with a number that can receive them, and if they are from my number they can get passed through using a POST request. Not the most secure solution in the world, but good enough for my personal needs.