Use this powerful n8n workflow to rapidly automate the creation of multiple Google OAuth2 credentials (Gmail, Sheets, Drive) within your n8n instance using the specialized n8n node for API interaction.
Download this n8n workflow template and start using it instantly.
• n8n administrators managing multi-tenant or multi-account Google integrations.
• Users who frequently set up new Google accounts across different n8n templates.
• Technical users looking to implement DevOps practices for n8n credential management.
Manually creating credentials for every single Google service (Gmail, Google Sheets, Google Drive, etc.) within n8n can be tedious and prone to naming errors. This specialized n8n workflow solves this problem by automating the entire setup process. By simply providing your Google OAuth 2.0 Client JSON file and your associated email address, this n8n automation creates separate, clearly named OAuth credentials for all common Google APIs. This not only saves significant time but ensures consistency when deploying or managing large sets of n8n templates that rely on Google services. The entire process leverages the internal n8n node functionality to interact with the credentials API.
This automation begins with a manual n8n trigger, designed to run only when initiated by the user.
googleSheetsOAuth2Api, gmailOAuth2) is defined using an n8n node.Split Out n8n node takes this list of services and creates an individual item for each service, ensuring that subsequent steps are executed repeatedly.n8n Create Credentials n8n node is invoked. It dynamically constructs the credential name using the provided email and the specific service type (e.g., [email protected] - gmailOAuth2). It uses the Client ID and Secret extracted from the initial JSON input to finalize the credential creation via the n8n API.To deploy this useful n8n workflow, follow these steps:
This advanced n8n workflow utilizes several core n8n node types:
When clicking ‘Test workflow’ (Manual Trigger): This simple n8n trigger starts the execution of the n8n workflow manually.
Google JSON (Set Node): Function: Stores the entire Google OAuth 2.0 client JSON configuration. Key Configuration: Set to raw JSON mode, holding the clientid and clientsecret used for credential creation.
Google Email (Set Node): Function: Stores the user's email address, which is used for standardized naming of the resulting credentials.
Services (Set Node): Function: Defines the array of desired Google API services (e.g., Google Sheets, Gmail, Drive). Key Configuration: Contains a list of standard n8n OAuth credential types.
Split Out (Flow Control Node): Function: Crucial for flow control, this n8n node iterates over the array of services, ensuring that the credential creation process is executed individually for each service type.
n8n Create Credentials (n8n Node): Function: The core action. This specialized n8n node uses the internal n8n API to create new credentials dynamically. Key Configuration: Credentials are named using an expression combining the email and service type, and the clientId and clientSecret are dynamically pulled from the 'Google JSON' input.
Use this powerful n8n workflow to automatically generate and post replies to new Google My Business reviews using Gemini AI. Features include multi-location routing, Google Sheets logging, and a scheduled n8n trigger.

Use this powerful n8n workflow to extract leads from Google Maps using Serper API, enrich contact data via Perplexity AI, and ensure data quality with email verification. Find reliable n8n templates here.

Automate lead generation by scraping website contact details from Google Sheets URLs and enriching the data. This robust n8n workflow uses nested loops for deep email extraction.

This powerful n8n workflow automates HR screening by fetching candidate scores from Google Sheets, filtering high-scorers (>70), sending personalized Gmail invitations, and creating tracking tasks in ClickUp.

Use this powerful n8n workflow to automatically generate personalized birthday and work anniversary messages using Google Gemini and post them directly to Google Chat, powered by Google Sheets data. Leverage n8n templates for HR automation.









































