How to set up Google API + OAuth for n8n (step by step)
Before a single Google automation works in n8n, your agent needs permission to talk to Google. This is the one-time setup that unlocks all of it. Do it once and you reuse the same credential across everything you build after.
Here is the whole thing, start to finish:
1. Create a clean Google Cloud project just for your automations.
2. Enable the Google APIs your agents actually use: Gmail, Calendar, Docs, Sheets, Drive.
3. Configure the OAuth consent screen.
4. Create an OAuth client (web application) and add the redirect URI from your own n8n instance.
5. Copy your Client ID and Secret, and download the JSON.
6. Add the scopes for the services you want, then add yourself as a test user so the login actually works.
7. Connect it all as a reusable Google credential in n8n, and test it.
The video walks through every step on screen, so follow along with your own console open in another tab.
One habit to build early: never keep your Client ID and Secret in plain text. Download the JSON, store it somewhere encrypted, and remember you can spin up a fresh OAuth client any time. Losing a key is not a crisis. VaultWarden is a great opensource password manager and vault.
Why this one is first: it is the prerequisite for the builds coming next, including the email assistant workflow. Get it set up once and every Google automation after this just works.
Follow along:
- Watch the video above.
- n8n's full Documentation
- New here? Grab the free starter kit (local n8n in Docker) so you have a place to build:
Work through it, then drop a comment telling us what you connected first. Stuck on a step? Post your operating system and where you got stuck and we will walk you through it.
Welcome to The Agent Lab. Let's build.
1
0 comments
Michael Frostbutter
2
How to set up Google API + OAuth for n8n (step by step)
powered by
The Agent Lab
skool.com/the-agent-lab-1154
Learn agentic AI by building real systems. For people starting out and seasoned builders sharing workflows, templates, and ideas.
Build your own community
Bring people together around your passion and get paid.
Powered by