Setting up OpenAI API integration with Google Home through n8n workflow automation

Hey everyone! I’m working on a project and could really use some help figuring out if this is even possible anymore.

My Goal: I want to create a voice command where I say “Hey Google, talk to AI assistant” and then ask questions. The idea is that Google Home would send my question to my self-hosted n8n server, which would then call OpenAI’s API, get the response, and send it back to Google Home to speak out loud.

Current Status: Not working at all. Google Home isn’t connecting to my n8n setup properly.

What I’ve Done:

  • Created an n8n workflow on my home server
  • Got my OpenAI API credentials
  • Set up Google Cloud Console account
  • Installed SSL certificate and configured n8n to use HTTPS
  • Opened necessary firewall ports
  • Filled out most of the OAuth2 application form (left some fields blank though)
  • Generated OAuth2 credentials in n8n

Where I’m Stuck:

  • Google is asking for OAuth2 scopes and I have no idea which ones to use
  • Can’t find updated tutorials since Dialogflow ES was discontinued

Questions:

  1. Which OAuth2 scopes should I configure?
  2. What’s the correct process to connect n8n with Google Assistant for voice queries?
  3. Is this still possible with current Google Assistant API?

I’ve been searching for guides but most reference the old Dialogflow which doesn’t exist anymore. Any help or working examples would be amazing!

Thanks!

Navigating the current Google Assistant integration can indeed be challenging due to the recent changes. I faced similar issues while attempting a related project. The strict approval process they now impose tends to favor commercial applications, leaving personal projects at a disadvantage. The OAuth2 scopes you’re considering, like actions.fulfillment.conversation and userinfo.email, might not be enough for successful approval. Have you thought about using IFTTT’s “Ask my bot” feature? While it isn’t as seamless, it could be a workaround. Additionally, exploring Amazon Alexa could provide a smoother experience, especially with their extensive documentation for linking services like n8n.

The OAuth2 scopes you need are https://www.googleapis.com/auth/assistant-sdk-prototype and https://www.googleapis.com/auth/conversations. But here’s the thing - I hit the exact same wall. Google’s approval process for Actions on Google is insanely restrictive now. They’re basically rejecting most personal projects unless you’ve got commercial viability or a huge user base. I wasted three months trying to get approval for something similar and just gave up. Google wants way tighter control over what integrates with Assistant these days. Your SSL and firewall setup sounds right, but you’ll probably get stuck at the approval stage. I’d look into Home Assistant’s voice integration instead, or maybe build something with a Raspberry Pi running Mycroft.

google assistant integration is a total nightmare right now. i dealt with this exact issue last year and ditched the oauth2 approach entirely. switched to webhooks with google assistant actions instead - much simpler setup. you’ll still need approval, which takes forever, but it’s way less painful. have you looked into actions builder? it’s better than the old dialogflow path.