Hey everyone! I’m trying to set up a cool project where I can talk to ChatGPT through my Google Home devices using n8n. Is this even doable?
I want to say “Hey Google, ask GPT” and have my question sent to n8n, which then talks to ChatGPT and sends the answer back through Google Home. Sounds neat, right?
But I’m stuck. I’ve got n8n running with a workflow, an OpenAI key, and a Google cloud account. I’ve done some OAuth2 stuff in n8n and Google, but I’m lost on what scope to use.
Can anyone help me figure out:
- The right OAuth2 scope
- Steps to make n8n work with Google Home voice queries
Also, is this still possible without Dialogflow? I can’t find any up-to-date guides.
Any help or pointers would be awesome! Thanks!
I’ve experimented with a similar setup using n8n and Google Home. While it’s theoretically possible, it’s quite complex. The main challenge is Google’s strict policies on third-party voice interactions. Without Dialogflow, you’ll need to implement a custom Actions on Google project, which requires significant development work. For OAuth2, try the scope ‘https://www.googleapis.com/auth/assistant’. However, be prepared for a steep learning curve and potential roadblocks due to Google’s limitations on custom voice commands. Consider exploring alternatives like using a Raspberry Pi as an intermediary between Google Home and n8n for more flexibility.
I’ve actually tackled a similar project recently, and it’s definitely challenging but doable. The key is to use the Google Assistant API instead of trying to integrate directly with Google Home. You’ll need to set up a custom Action using the Actions on Google console, then use the ‘https://www.googleapis.com/auth/assistant’ scope for OAuth2.
For n8n, you’ll want to create a webhook node to receive requests from your Action, then use the OpenAI node to interact with ChatGPT. The tricky part is sending the response back to Google Assistant. I ended up using a custom middleware to handle this part.
One caveat: response times can be slow due to the multiple API calls involved. You might want to implement a caching system or use a faster language model to improve performance.
It took me a few weeks of tinkering, but the end result was worth it. Good luck with your project!
hey finn, sounds like a cool project! i’ve dabbled with n8n but not google home integration. have u checked out ifttt? might be easier to connect google home that way. for oauth scopes, maybe try ‘https://www.googleapis.com/auth/assistant-sdk-prototype’. good luck with ur setup!