Back to Integrations
integrationGmail node
integrationGoogle Sheets node

Gmail and Google Sheets integration

Save yourself the work of writing custom integrations for Gmail and Google Sheets and use n8n instead. Build adaptable and scalable Communication, Data & Storage, and Productivity workflows that work with your technology stack. All within a building experience you will love.

How to connect Gmail and Google Sheets

  • Step 1: Create a new workflow
  • Step 2: Add and configure nodes
  • Step 3: Connect
  • Step 4: Customize and extend your integration
  • Step 5: Test and activate your workflow

Step 1: Create a new workflow and add the first step

In n8n, click the "Add workflow" button in the Workflows tab to create a new workflow. Add the starting point – a trigger on when your workflow should run: an app event, a schedule, a webhook call, another workflow, an AI chat, or a manual trigger. Sometimes, the HTTP Request node might already serve as your starting point.

Gmail and Google Sheets integration: Create a new workflow and add the first step

Step 2: Add and configure Gmail and Google Sheets nodes

You can find Gmail and Google Sheets in the nodes panel. Drag them onto your workflow canvas, selecting their actions. Click each node, choose a credential, and authenticate to grant n8n access. Configure Gmail and Google Sheets nodes one by one: input data on the left, parameters in the middle, and output data on the right.

Gmail and Google Sheets integration: Add and configure Gmail and Google Sheets nodes

Step 3: Connect Gmail and Google Sheets

A connection establishes a link between Gmail and Google Sheets (or vice versa) to route data through the workflow. Data flows from the output of one node to the input of another. You can have single or multiple connections for each node.

Gmail and Google Sheets integration: Connect Gmail and Google Sheets

Step 4: Customize and extend your Gmail and Google Sheets integration

Use n8n's core nodes such as If, Split Out, Merge, and others to transform and manipulate data. Write custom JavaScript or Python in the Code node and run it as a step in your workflow. Connect Gmail and Google Sheets with any of n8n’s 1000+ integrations, and incorporate advanced AI logic into your workflows.

Gmail and Google Sheets integration: Customize and extend your Gmail and Google Sheets integration

Step 5: Test and activate your Gmail and Google Sheets workflow

Save and run the workflow to see if everything works as expected. Based on your configuration, data should flow from Gmail to Google Sheets or vice versa. Easily debug your workflow: you can check past executions to isolate and fix the mistake. Once you've tested everything, make sure to save your workflow and activate it.

Gmail and Google Sheets integration: Test and activate your Gmail and Google Sheets workflow

Automated Web Scraping: email a CSV, save to Google Sheets & Microsoft Excel

How it works:
The workflow starts by sending a request to a website to retrieve its HTML content.
It then parses the HTML extracting the relevant information
The extracted data is storted and converted into a CSV file.
The CSV file is attached to an email and sent to your specified address.
The data is simultaneously saved to both Google Sheets and Microsoft Excel for further analysis or use.

Set-up steps:
Change the website to scrape in the "Fetch website content" node
Configure Microsoft Azure credentials with Microsoft Graph permissions (required for the Save to Microsoft Excel 365 node)
Configure Google Cloud credentials with access to Google Drive, Google Sheets and Gmail APIs (the latter is required for the Send CSV via e-mail node).

Nodes used in this workflow

Popular Gmail and Google Sheets workflows

Smart Email Outreach Sequence – AI-Powered & Customizable

Automated Email Outreach Workflow This intelligent email automation workflow helps you maximize engagement through domain-based outreach. It utilizes AI-powered personalization and strategic follow-ups to increase response rates. The workflow includes a customizable three-step email sequence (initial email + two follow-ups) sent at optimized 3-day intervals. 🔥 Key Features ✅ Smart Domain Extraction – Automatically extracts domains from email addresses for precise targeting. ✅ Website Intelligence – Uses Jina.ai to analyze recipient websites and craft ultra-relevant messaging. ✅ AI-Powered Personalization – Leverages GPT-3.5 to generate compelling and highly customized email content. ✅ Adjustable AI Prompts – Easily customize AI-generated messages to align with your product, service, or campaign. ✅ Automated Follow-Up Sequence – Sends a structured series of three emails over time to increase engagement. ✅ Human-Like Sending Patterns – Randomized delays help bypass spam filters and improve deliverability. ✅ Error-Resilient Execution – Built-in error handling ensures a smooth, uninterrupted workflow. 🎯 Ideal Use Cases ✔️ Domain Sales & Lead Generation – Engage potential buyers with hyper-personalized emails. ✔️ B2B Partnerships & Outreach – Automate connections with potential business partners. ✔️ Cold Emailing at Scale – Improve engagement with structured, AI-optimized emails. ⚙️ How It Works 1️⃣ Setup & Configuration Integrate Gmail via OAuth for secure email sending. Connect your Google Sheets with leads for automated processing. Customize AI-generated messages by adjusting prompt inputs to fit your strategy. 2️⃣ Workflow Execution Domain Extraction – Automatically extracts recipient domains from email addresses. Website Analysis – Uses Jina.ai to gather insights for ultra-personalized messaging. AI-Powered Email Generation – GPT-3.5 crafts highly engaging outreach emails. Automated Email Sending – Initial email is sent, followed by two optimized follow-ups if no response is received. Engagement Tracking & Adaptation – Ensures delivery success and prevents emails from being flagged as spam. ⚡ Setup Instructions ✅ Preconditions You need a Gmail account with OAuth authentication enabled. Your Google Sheets must contain lead emails formatted correctly. Ensure your n8n instance is running and connected to your workflow. 🛠 Implementation Steps Install and open n8n. Import the workflow JSON file into your n8n instance. Configure your Gmail credentials in the workflow settings. Link your Google Sheets containing the leads' email addresses. Customize AI prompts in the GPT-3.5 node to match your campaign strategy. Test the workflow manually to ensure proper execution. Activate the workflow and let automation take over! 📈 Expected Results 🚀 Higher Response Rates – Personalization improves recipient engagement. 📊 Increased Conversions – Optimized email sequences boost lead-to-client conversions. 💡 Time-Saving Automation – Hands-free execution streamlines your outreach process. 🔧 Ready to supercharge your outreach? Set up the workflow and start automating today! 🚀🔥

Credit Card Payment Reminder & Tracking-For Taiwan Banks

Workflow Description This workflow automates the processing of credit card statement emails from multiple banks. It extracts important payment details, stores them in Google Sheets, and creates calendar reminders in Google Calendar. Additionally, it allows users to update the payment status once the bill has been paid. Key Features Email Processing: Retrieves credit card statement emails from eight Taiwanese banks. PDF Parsing: Extracts payment due date and amount from email content or attached PDF files. Google Sheets Integration: Logs extracted data into a Google Sheets document for record-keeping. Google Calendar Integration: Creates Google Calendar events as reminders for due payments. Webhook for Payment Updates: Allows users to update the payment status via a webhook. Node Configurations Email Retrieval Purpose**: Fetches credit card statement emails from Gmail. Configuration**: Email Filters: SinoPac Bank: from:(newebill.banksinopac.com.tw) SinoPac Bank Credit Card E-Statement Notification Cathay United Bank: from:([email protected]) Cathay United Bank Monthly E-Statement CTBC Bank: from:([email protected]) CTBC Bank Credit Card E-Statement Taipei Fubon Bank: from:([email protected]) Taipei Fubon Bank Credit Card Statement E.SUN Commercial Bank: from:([email protected]) E.SUN Commercial Bank Credit Card E-Statement DBS Bank: from:([email protected]) DBS Bank Credit Card E-Statement Union Bank of Taiwan: from:(聯邦銀行信用卡) Union Bank of Taiwan Credit Card E-Statement (Year Month) Taishin International Bank: from:([email protected]) Taishin International Bank Credit Card E-Statement Extract Payment Information Purpose**: Extracts payment due date, total amount, and minimum payment amount. Methods**: Text-based Extraction: Uses regex to parse email body. PDF Parsing: Extracts text from PDF attachments. Data Processing and Storage 3.1. Consolidate Extracted Data Purpose**: Standardizes extracted payment details. Data Fields**: payment_due_date payment_amount minimum_payment email_id bank email_subject 3.2. Google Sheets Integration Purpose**: Stores the extracted data in a structured format. Configuration**: Sheet Name: n8n-Credit Card Payment Reminder Columns: calendar_id Paid Billing Period Amount Minimum Payment Bank email_id Google Calendar Integration 4.1. Create Calendar Reminders Purpose**: Generates reminders for upcoming payments. Configuration**: Event Title: Credit Card Payment - {{ bank }} Due Date: payment_due_date Reminders: 30 minutes before 60 minutes before 1 day before 4.2. Update Payment Status Purpose**: Updates the calendar event once payment is made. Configuration**: Webhook URL: Automatically updates the Google Calendar event title and description. Webhook for Payment Updates Purpose: Users can mark a payment as **paid via a webhook. Configuration**: Webhook Path: darrell_demo_creditcard_pay_update_path Updates: Marks the payment as Paid Updates Google Calendar and Google Sheets

Domain Outbound : Automate Lead Extraction, and Targeted Outreach

Domain Outbound Machine: Automate Lead Generation, Email Extraction, and Targeted Outreach with n8n Description Domain Outbound Machine is an n8n workflow designed to fully automate the domain sales process: lead generation, email extraction, personalized outreach, and automated email sending. It also stores extracted email addresses and sent emails in an Excel file for tracking and follow-up. How It Works? Domain Input You provide the domain name you want to sell. The workflow takes this domain as the starting point. Google Maps Query Generation The workflow automatically generates 100 Google Maps queries based on the domain's niche or industry. This ensures you target businesses or individuals who might be interested in acquiring the domain. Web Scraping for Emails Using the generated queries, the workflow scrapes relevant websites to extract email addresses. This step ensures you have a targeted list of potential buyers. Email Enrichment For each extracted email, the workflow gathers publicly available information (e.g., LinkedIn, company websites) to enhance personalization. Personalized Email Creation Based on the enriched data, the workflow crafts a custom email for each lead, emphasizing the domain’s value, its relevance to their business, and a compelling call-to-action. Email Sending via Gmail The workflow sends the personalized emails directly through your Gmail account, ensuring timely and professional outreach. Email & Lead Tracking in Excel All extracted email addresses and sent messages are automatically stored in an Excel file, allowing you to track responses and manage follow-ups efficiently. Key Features ✅ Automated Lead Generation – Saves time by automatically finding and extracting potential leads. ✅ Personalized Outreach – Boosts engagement by tailoring each email to the recipient. ✅ Seamless Integration – Uses n8n’s automation to connect Google Maps, web scraping tools, and Gmail in one workflow. ✅ Scalable & Trackable – Adjust the number of queries or emails as needed, while keeping track of everything in Excel. Domain Outbound Machine is perfect for domain investors, digital marketers, and anyone looking to sell domains efficiently. By automating the tedious tasks, you can focus on closing deals and growing your business.
+4

AI News Research Team: 24/7 Newsletter Automation with Citations with Perplexity

Purpose of workflow: This AI-powered workflow automatically generates detailed, well-researched newsletters by monitoring and analyzing specified news topics (like Bitcoin, Nvidia, etc.). It uses a team of AI research agents to gather, analyze, and compile information with automatic citations, saving significant time in newsletter creation. How it works: Multi-agent system: Research Leader: Analyzes topics and creates content outline Project Planner: Breaks down research into specific tasks Research Assistants: Conduct detailed research on assigned subtopics Editor: Combines research and polishes final output Key features: Automated daily monitoring of specified news topics Real-time information gathering using Perplexity AI Auto-citation functionality for source verification Flexible time window filtering (day/week/month) Options for detailed or simple reports Direct email delivery of completed newsletters Step-by-step setup: Perplexity API Setup: Create account at perplexity.ai Navigate to API tab Generate API key Set up credentials with 'Bearer' authentication Workflow Configuration: Connect Google Sheets containing news monitoring topics Configure schedule trigger for daily execution Set up email delivery settings Define report type preferences (detailed/simple) Specify time window for news gathering Integration: Connect with newsletter tools like Kit Import generated content as starting point Edit and customize as needed before publishing

SSL Expiry Alert with SSL-Checker.io

Use Case Managing SSL certificates manually can be time-consuming and error-prone, often leading to unexpected downtime or security risks due to expired certificates. What This Workflow Does This workflow automatically monitors SSL certificates for a list of websites, checks their expiry status using SSL-Checker.io, and sends timely notifications if a certificate is about to expire. Setup Add your credentials for Google Sheets, Gmail, and SSL-Checker.io. Create a Google Sheet with a list of URLs for the websites you want to monitor. Configure the workflow to check the SSL status weekly. Set up email notifications to alert you when a certificate is close to expiry. Activate the workflow to automate monitoring and notification. How to Adjust It to Your Needs Customize the URL Source: Replace Google Sheets with another data source like Airtable or CSV files. Modify Notification Thresholds: Change the expiry threshold (e.g., notify for 14 days instead of 7). Add Additional Actions: Integrate with tools like Slack or Teams for team-wide notifications. Automate Renewal Requests: Add a step to send renewal requests directly to your SSL provider if a certificate is nearing expiry.

Automated Web Scraping: email a CSV, save to Google Sheets & Microsoft Excel

How it works: The workflow starts by sending a request to a website to retrieve its HTML content. It then parses the HTML extracting the relevant information The extracted data is storted and converted into a CSV file. The CSV file is attached to an email and sent to your specified address. The data is simultaneously saved to both Google Sheets and Microsoft Excel for further analysis or use. Set-up steps: Change the website to scrape in the "Fetch website content" node Configure Microsoft Azure credentials with Microsoft Graph permissions (required for the Save to Microsoft Excel 365 node) Configure Google Cloud credentials with access to Google Drive, Google Sheets and Gmail APIs (the latter is required for the Send CSV via e-mail node).

Build your own Gmail and Google Sheets integration

Create custom Gmail and Google Sheets workflows by choosing triggers and actions. Nodes come with global operations and settings, as well as app-specific parameters that can be configured. You can also use the HTTP Request node to query data from any app or service with a REST API.

Gmail supported actions

Add Label
Delete
Get
Get Many
Mark as Read
Mark as Unread
Remove Label
Reply
Send
Send and Wait for Approval
Create
Delete
Get
Get Many
Create
Delete
Get
Get Many
Add Label
Delete
Get
Get Many
Remove Label
Reply
Trash
Untrash

Google Sheets supported actions

Create
Create a spreadsheet
Delete
Delete a spreadsheet
Append or Update Row
Append a new row or update an existing one (upsert)
Append Row
Create a new row in a sheet
Clear
Delete all the contents or a part of a sheet
Create
Create a new sheet
Delete
Permanently delete a sheet
Delete Rows or Columns
Delete columns or rows from a sheet
Get Row(s)
Retrieve one or more rows from a sheet
Update Row
Update an existing row in a sheet

FAQs

  • Can Gmail connect with Google Sheets?

  • Can I use Gmail’s API with n8n?

  • Can I use Google Sheets’s API with n8n?

  • Is n8n secure for integrating Gmail and Google Sheets?

  • How to get started with Gmail and Google Sheets integration in n8n.io?

Need help setting up your Gmail and Google Sheets integration?

Discover our latest community's recommendations and join the discussions about Gmail and Google Sheets integration.
jake chard
Jan Koch
Sergey Komardenkov
sérgio eduardo floresta filho
Julian

Looking to integrate Gmail and Google Sheets in your company?

Over 3000 companies switch to n8n every single week

Why use n8n to integrate Gmail with Google Sheets

Build complex workflows, really fast

Build complex workflows, really fast

Handle branching, merging and iteration easily.
Pause your workflow to wait for external events.

Code when you need it, UI when you don't

Simple debugging

Your data is displayed alongside your settings, making edge cases easy to track down.

Use templates to get started fast

Use 1000+ workflow templates available from our core team and our community.

Reuse your work

Copy and paste, easily import and export workflows.

Implement complex processes faster with n8n

red iconyellow iconred iconyellow icon