Set Up Google Credentials for n8n in Google Cloud
November 4, 2025 · Mike Murphy
In this tutorial, you will learn how to set up Google credentials in n8n for Drive, Docs, Gmail, Calendar, and Sheets using OAuth2 credentials created in Google Cloud Console. This allows your automations to securely read, write, and manage Google data directly within your n8n workflows.
Description
In this tutorial, you will learn how to set up Google credentials in n8n for Drive, Docs, Gmail, Calendar, and Sheets using OAuth2 credentials created in Google Cloud Console. This allows your automations to securely read, write, and manage Google data directly within your n8n workflows.
🔑 Key Benefit: You only need to create ONE set of OAuth credentials in Google Cloud Console, which can then be reused for all Google services in n8n.
✅ PREREQUISITES
- A Google or Google Workspace Account
- Access to the Google Cloud Console
- An n8n instance (Cloud, Self-hosted, or Local)
🔧 TROUBLESHOOTING
If you encounter errors when using a Google service, make sure you’ve enabled that service’s API in Google Cloud Console (Step 3).
📚 RESOURCES
Google Cloud Console: console.cloud.google.com
Chapters:
00:00 Intro: About The Tutorial
00:15 Google Services Covered
00:41 Prerequisites
01:03 Overview of Tutorial
02:19 Credentials vs. APIs
02:58 Google Cloud Console Setup
03:43 Step 1: Create New Project
04:20 Step 2: Enable Required APIs
05:06 How To Enable APIs (Google Cloud)
06:25 Enable API
06:52 Step 3: Configure OAuth Consent Screen
07:02 What is OAuth?
07:26 Configure OAuth Consent Screen
07:41 Name Application
07:57 App Information (Internal/External)
08:27 Step 4: Publish Your App
08:53 Audience Tab (Publish App)
09:17 Step 5: Create OAuth 2.0 Credentials
09:49 What is a Redirect URI?
10:11 Clients: Create Credentials
10:50 Add Redirect URIs
11:22 ⚠️ COPY & PASTE SECRET
12:07 Add a Secret Key
12:28 Do Not Expose Client Secret
12:36 Part 2: n8n Configuration
13:26 Sign In With Google
13:45 Set Credentials For All Services
15:41 Add Additional Google Services
16:46 Enable API Keys
Step-by-Step (Ollama Setup on VPS):
-
Open Google Cloud Console
-
Navigate to
console.cloud.google.comand sign in with your Google account -
Create a New Project
-
Use the Project Picker at the top of the page to create a new project
-
Enable Required APIs
-
Go to hamburger menu → APIs and Services → Library
-
Scroll to Google Workspace section
-
Enable APIs for all desired services (Drive, Docs, Sheets, Calendar, Gmail, Tasks)
-
Configure OAuth Consent Screen
-
Go to hamburger menu → APIs and Services → OAuth Consent Screen
-
Click “Get Started”
-
Name your app (e.g., “N8N Automation”)
-
Select your email
-
Choose “External” for user type (in most cases)
-
Publish Your App
-
Navigate to the Audience tab
-
Click “Publish App” to make it live
-
Create OAuth 2.0 Credentials
-
Go to Clients and click “Create Client”
-
Select “Web Application” (or “Desktop app” for local N8N)
-
Name your client
-
Add Redirect URI
-
In n8n, open any Google service node
-
Click “Create New Credential” to find your OAuth redirect URL
-
Copy this URL and paste it into the “Redirect URIs” field in Google Cloud Console
-
Click “Create”
-
Save Your Credentials Securely
⚠️ Important: Immediately copy both the Client ID and Client Secret. The Client Secret cannot be viewed again once you close the dialog box.
- Part 2: N8N Configuration.
- Add Credentials to N8N
- In your n8n Google service node, paste the Client ID and Client Secret
- Authorize the Connection
- Click “Sign in with Google”
- Choose the Google account you used in Cloud Console
- Click “Allow” to grant permissions
- Reuse for Other Services**
**
Use the same Client ID and Client Secret for all other Google services you want to connect (Drive, Docs, Sheets, Calendar, Gmail, Tasks)