Connect Gmail with n8n – Simple 2025 Setup Guide
3 min read
1 month ago
Published on Jul 29, 2025
This response is partially generated with the help of AI. It may contain inaccuracies.
Table of Contents
Introduction
This tutorial will guide you through the process of connecting Gmail with n8n, an open-source automation tool, in under five minutes. Whether you're a beginner or looking to enhance your automation workflows, this step-by-step guide will help you integrate Gmail into your n8n setup efficiently.
Step 1: Set Up n8n
- Access n8n: Go to the n8n website and sign up for an account if you haven’t already.
- Install n8n: If you prefer a local installation, follow the instructions provided on the n8n documentation page to set it up on your machine or server.
- Log In: Once installed or accessed online, log in to your n8n dashboard.
Step 2: Create a New Workflow
- Start a New Workflow: Click on the "New" button to create a new workflow.
- Select Gmail Node: In the workflow editor, search for the Gmail node. This node will allow you to interact with your Gmail account.
- Add Node to Workflow: Drag the Gmail node into your workflow canvas.
Step 3: Configure Gmail Node
- Authentication: Click on the Gmail node to configure it.
- Choose "OAuth2" as the authentication method.
- You might need to create credentials in Google Cloud Platform if you haven't done this before.
- Create Google Cloud Project:
- Go to the Google Cloud Console.
- Create a new project for your n8n integration.
- Enable Gmail API:
- In your project, navigate to the "API & Services" section.
- Enable the Gmail API for your project.
- Create Credentials:
- Go to "Credentials" and click on "Create Credentials."
- Select "OAuth client ID" and configure the consent screen as required.
- Set the application type to "Web Application" and specify the redirect URI for n8n.
- Copy Credentials: After creating, copy your Client ID and Client Secret back into the n8n Gmail node configuration.
Step 4: Test the Connection
- Authorize n8n: Click the "Connect" button in the Gmail node to authorize n8n with your Gmail account.
- Complete the OAuth Flow: Follow the prompts to complete the OAuth flow and grant necessary permissions.
- Run the Workflow: Once connected, you can test the configuration by executing the workflow.
Step 5: Build Automation
- Add Additional Nodes: Incorporate more nodes in your workflow to automate tasks (e.g., sending emails, filtering messages).
- Save Your Workflow: Don’t forget to save your workflow to preserve your automation setup.
Conclusion
You have successfully connected Gmail with n8n! By following these steps, you've enabled powerful automation capabilities for your email. Explore additional nodes and create more complex workflows to enhance your productivity further. For more advanced automations, consider joining the n8n community or checking out additional resources on their website.