Connecting ChatGPT with Google Home via n8n: Is it possible?

Hey everyone! I’m trying to set up a cool project where I can talk to ChatGPT through my Google Home devices using n8n. Basically, I want to say “Hey Google, ask GPT” and have it send my question to ChatGPT through n8n, then speak the answer back to me.

I’ve got n8n set up with a workflow, an OpenAI key, and a Google cloud account. I’ve even got the ports open and n8n exposed. But I’m stuck on the Google side of things. I filled out their OAuth2 stuff, but I’m not sure what scope to use or if I’m even on the right track.

Can anyone help me figure out:

  1. What scope I should use?
  2. How to make n8n work with Google Home voice queries?

Also, is this even possible now that DiagFlow is gone? I can’t find any up-to-date guides on this. Any help or advice would be awesome!

Thanks!

While connecting ChatGPT with Google Home via n8n is theoretically possible, it’s quite a complex undertaking. The main challenge lies in bridging Google Home’s voice capabilities with n8n’s workflow automation. Since Dialogflow’s free tier is no longer available, you’ll need to explore alternatives like Google Assistant SDK or Actions on Google.

For OAuth2 scopes, look into ‘https://www.googleapis.com/auth/assistant-sdk-prototype’ or similar Assistant-related scopes. However, the integration will likely require custom development beyond just n8n workflows. You might need to create a custom Google Assistant Action that can trigger your n8n workflow.

Consider using webhooks in n8n to receive Google Assistant requests. This could allow you to process the voice query, send it to ChatGPT, and return the response to Google Home. It’s a challenging project, but certainly achievable with some coding skills and patience. Good luck with your implementation!

hey there! i’ve played around with similar setups and it’s doable, but tricky. you’ll wanna look into the Google Assistant SDK for sure. the scope https://www.googleapis.com/auth/assistant-sdk-prototype might work.

for n8n and google home, try setting up a custom google assistant action. use webhooks in n8n to catch the voice stuff, process it, hit chatgpt, and send it back.

it’s a bit of a maze, but super cool when it works! good luck!

As someone who’s dabbled in similar projects, I can say it’s definitely possible to connect ChatGPT with Google Home via n8n, but it’s not straightforward. The discontinuation of Dialogflow’s free tier complicates things, but there are workarounds.

For the OAuth2 scope, you’ll want to look into https://www.googleapis.com/auth/assistant-sdk-prototype. This should give you the necessary permissions to interact with Google Assistant, which is what you’ll need for Google Home integration.

To make n8n work with Google Home voice queries, you’ll need to create a custom Google Assistant Action. This involves using the Actions on Google console to set up a new project, then creating a custom action that can trigger your n8n workflow.

It’s a bit of a complex setup, but once you’ve got it working, it’s pretty amazing. I’ve found that using webhooks in n8n to receive the Google Assistant requests works well. Then you can process the request, send it to ChatGPT, and return the response to Google Assistant.

Hope this helps point you in the right direction! Let me know if you need any more specific advice on implementation.