Automation

Overview

This tutorial shows how to create and configure Google account credentials for use in n8n. You’ll learn how to set up OAuth 2.0 client credentials for Google APIs (Gmail, Drive, Sheets), configure the OAuth consent screen, add authorized redirect URIs, and — when appropriate — create a Google Service Account JSON key for server-to-server integrations. The guide includes troubleshooting tips and best practices so you can securely connect Google services to your n8n workflows.

Who this is for

If you run into a specific error, collect the exact error message (e.g., redirect_uri_mismatch) and the redirect URI you configured — that information will help pinpoint the issue quickly.