How to Set Up Google OAuth for n8n (Gmail, Calendar, Sheets, Drive)

Опубликовано: 08 Август 2026
на канале: Agenius AI Labs
53
3

The one setup every n8n builder needs before connecting Google. In this walkthrough I set up a Google Cloud Console project from scratch, enable the Google APIs your agents will actually use (Gmail, Calendar, Docs, Sheets, Drive), create an OAuth client, add the right scopes and test users, and connect it all to an n8n credential.

This is the prerequisite for the n8n builds coming next, including the email assistant workflow. Get it set up once and you can reuse it across every Google automation you build.

What you will set up:
A clean Google Cloud project for your automations
The Google APIs your agents need, enabled the right way
An OAuth consent screen and OAuth client (web application)
The redirect URI from your n8n instance
Scopes for the services you want your agents to touch
Test users so the login actually works
A working Google credential inside n8n

Security note from the video: never keep your client ID and secret in plain text. Download the JSON, store it in an encrypted vault, and remember you can spin up a new OAuth client any time, so losing a key is not a crisis.

Chapters
0:00 Intro
0:21 Create a new Google Cloud project
1:05 Open APIs & Services
1:39 Enable the APIs you need (Gmail, Calendar, Docs, Sheets, Drive)
3:16 Create credentials (OAuth client ID)
3:30 Configure the OAuth consent screen
4:12 Create the OAuth client (web app) and redirect URI
5:38 Copy your Client ID and Secret (and the JSON)
6:49 Add your scopes
7:53 Add test users
8:46 Connect and test in n8n
9:20 It works, and what is next

Follow along / resources:

n8n Google OAuth docs (single service): https://docs.n8n.io/integrations/buil...
Google Cloud Console: https://console.cloud.google.com
The Agent Lab community + free starter kit: [https://www.skool.com/the-agent-lab-1...]
Starter kit repo (local n8n in Docker): https://github.com/Agenius-AI-Labs/th...

Got stuck on a step? Drop a comment with your OS and where you got stuck and I will help you through it.

Built by Agenius AI Labs.

#n8n #GoogleOAuth #AIagents #automation #nocode #GoogleCloud #workflowautomation