AI Automation & ToolsTutorial

Connect Google Services to n8n: Set Up OAuth and Automate Gmail, Calendar and Drive

Learn how to securely connect Google services such as Gmail, Google Calendar, Google Drive and Google Sheets to n8n via OAuth and create the foundation for professional workflow automation.

Philipp Schönberg

Philipp Schönberg

Co-Founder & Head of AI Automation

LinkedIn
Published July 21, 2026·6 min read

Quick Answer

Google Workspace is connected to n8n via OAuth, enabling services such as Gmail, Google Calendar, Google Drive and Google Sheets to be securely integrated into automated workflows. Unlike API keys, OAuth provides controlled authentication with individually configurable permissions, helping meet key security requirements for production use. Once the initial setup in the Google Cloud Console is complete, Google services can be used reliably for business processes such as email automation, appointment management, document processing and lead management. n8n orchestrates the workflows between the individual applications and automates the steps that create the greatest amount of manual work in companies every day.

Google Workspace is part of daily operations at many businesses. Emails are handled through Gmail, appointments are managed in Google Calendar, and documents are stored in Google Drive or Google Sheets.

This is exactly where many recurring tasks arise. Emails need to be forwarded, appointments created, files filed away, or information transferred between different applications.

In many cases, this work can be fully automated.

Before a workflow or AI agent can access Google services, however, a secure connection between n8n and Google first needs to be established.

n8n offers native integrations for nearly all major Google services. These include Gmail, Google Calendar, Google Drive, Google Sheets, Google Docs, Google Slides, Google Contacts, Google Meet, Google Ads, and YouTube, among others.

This makes it possible to automate entire business processes within your existing Google environment.

A typical example: a workflow reads incoming applications from Gmail, automatically saves attachments to Google Drive, schedules interviews in Google Calendar, and logs the entire process in Google Sheets.

The individual applications remain unchanged. What gets automated is the work between them.

Before setting up the connection, it's worth taking a look at the underlying security principle. The difference between API keys and OAuth isn't unique to Google – you'll encounter it with nearly every modern automation platform.

What Is an API Key?

An API key is the simplest form of authentication. Once created, the key is stored in the relevant system and grants access to an interface.

Many AI services like OpenAI or OpenRouter work this way. The advantage lies in the simple setup.

The downside is that an API key is often valid indefinitely and – depending on the permissions granted – can allow far-reaching access.

What Is OAuth?

Google takes a different approach. Instead of issuing a permanent master key, you authorize n8n specifically for the applications you want.

You decide exactly which services the workflow is allowed to access – for example, only Google Calendar, or additionally Gmail and Google Drive.

Permissions can be reviewed and revoked at any time. This gives OAuth significantly more control and security than a classic API key.

Step by Step: Setting Up Google OAuth for n8n

At first glance, the setup looks complex. In reality, it consists of just a few steps that only need to be done once.

Step 1: Create a Project in Google Cloud Console

Open the Google Cloud Console and sign in with your Google account. Then create a new project and give it a unique name – for example, "n8n Automation."

Step 2: Enable the Required Google APIs

In your project, navigate to "APIs & Services" → "Library" and enable the Google services your workflows will need to access later.

In most cases, that means:

  • Gmail API
  • Google Calendar API
  • Google Drive API
  • Google Sheets API

It's a good idea to enable all the APIs you'll need right from the start. That way, you won't need to adjust the setup again later.

Before OAuth credentials can be created, you first need to set up the OAuth consent screen.

Set an application name, add your email address as the contact, and select "External" as the user type.

One step is frequently overlooked: publish the application afterward under "Audience."

If the app remains in testing mode, OAuth permissions will regularly expire. For production automations, this means the connection needs to be reconfirmed at regular intervals.

Step 4: Create OAuth Client ID

Then, under "Credentials," create a new OAuth Client ID and select "Web application" as the application type.

Copy the OAuth redirect URL shown in n8n and add it to the authorized redirect URIs in Google Cloud Console.

After creation, you'll receive two values:

  • Client ID
  • Client Secret

These credentials will be needed in n8n in the next step and should be kept confidential.

Step 5: Connect Google to n8n

Switch back to n8n and enter the Client ID and Client Secret in the corresponding credentials.

After clicking "Connect with Google," the Google sign-in window opens. Select your Google account and confirm the requested permissions.

If the message "Connection successful" appears afterward, the connection has been set up correctly.

If you're using multiple Google services such as Gmail, Google Calendar, Google Drive, or Google Sheets, repeat this step for each corresponding credential.

Not every service has its own dedicated n8n integration. That doesn't mean the service can't be automated, though.

The first step is to check whether a community node is already available. The n8n community regularly develops additional integrations that are easy to install.

If no suitable solution exists there either, the service can be connected directly to its API using the HTTP Request node.

This requires the API documentation of the respective provider. Setup is more technical, but it significantly expands what n8n can do.

This is exactly why n8n isn't limited to its native integrations. Nearly any service with an API can, in principle, be integrated into a workflow.

Once Google services are connected to n8n, numerous business processes can be automated.

This includes things like applicant management, lead handling, invoicing and dunning processes, or internal communication workflows – you can find more concrete examples and templates in our resources.

n8n doesn't take over the individual Google applications. What gets automated are the workflow steps between Gmail, Google Drive, Google Calendar, Google Sheets, and other systems.

This is exactly where the biggest manual effort tends to pile up in many businesses.

Connecting Google services via OAuth forms the foundation for nearly every professional automation with n8n.

Once the setup is complete, Gmail, Google Calendar, Google Drive, Google Sheets, and many other services can be reliably integrated into existing business processes.

The real strength here doesn't lie in the individual applications. It comes from information flowing automatically between systems, eliminating manual work entirely.

Every project is a starting point

No two companies share the same system landscape. Every workflow can be adapted to your specific situation. If you recognise a similar challenge, the Automation Audit is the right next step.

Request Automation Audit

Related Content