Skip to main content

Log new Gmail messages automatically in Google Sheets

Workflow preview

Workflow preview
100%
Log new Gmail messages automatically in Google Sheets preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

‍ Description This workflow automatically fetches new Gmail messages since the last run and appends them into a Google Sheet with their ID, snippet, and timestamp. It’s designed for professiona...

Best for

  • CRM automation workflows
  • Multimodal AI automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.manualtrigger, n8n-nodes-base.stickynote, n8n-nodes-base.googlesheets, n8n-nodes-base.code, n8n-nodes-base.summarize, n8n-nodes-base.merge, n8n-nodes-base.gmail

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Robert Breen.

Original n8n.io source

1.1 Workflow description

Title
Log new Gmail messages automatically in Google Sheets
Workflow name
Log new Gmail messages automatically in Google Sheets

🧑‍💻 Description

This workflow automatically fetches new Gmail messages since the last run and appends them into a Google Sheet with their ID, snippet, and timestamp.

It’s designed for professionals, small business owners, and operations teams who need a simple way to keep an ongoing log of emails, build lightweight CRMs, or power downstream automations like email tracking, reporting, or follow-up reminders.


⚙️ Setup Instructions for Gmail → Google Sheets Email Log

1️⃣ Connect Gmail

  1. In n8n → Credentials → New → Gmail OAuth2
  2. Log in with your Gmail account & approve access
  3. Attach this credential to the Get new messages node in the workflow

2️⃣ Connect Google Sheets

  1. Copy this Google Sheet template into your own Drive
  2. In n8n → Credentials → New → Google Sheets (OAuth2) → log in with your Google account & save
  3. In the workflow, select your Spreadsheet ID and Worksheet (Sheet1 by default) in the Google Sheets nodes

🧠 How Email Logging Automation Works

  • Get Current Emails → Reads the last logged messages from Google Sheets
  • Get Max Date → Finds the most recent email timestamp
  • Combine → Passes the last timestamp and today’s date together
  • Get New Messages → Fetches all new Gmail messages after the last logged date
  • Add Emails to Sheets → Appends message ID, snippet, and date to the sheet

🎛️ Customization Guidance

  • Filter by Sender or Subject → Modify the Gmail query to only log messages from specific addresses or with certain keywords.
  • Track Labels → Add Gmail labels to your sheet to separate categories (e.g., “Leads,” “Support,” “Invoices”).
  • Auto-Reply → Extend with an additional Gmail node to send automated responses to new messages.
  • Send Alerts → Add a Slack or Email node to ping your team whenever a new email is logged.
  • Analytics → Use Google Sheets formulas or connect to BI tools to analyze trends like response times or sender frequency.

📬 Contact

Need advanced customization (e.g., multi-inbox tracking, CRM integration, or automated follow-ups)?

📧 [email protected]
🔗 Robert Breen
🌐 ynteractive.com

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - When clicking ‘Execute workflow’

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 2 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Sticky Note52

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Sticky Note50

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - Sticky Note54

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Add Emails to Sheets

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 7 - Get Todays Date

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 8 - Get Current Emails

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 9 - Get Max Date

Type / Role
n8n-nodes-base.summarize - summarize
Config choices
Version 1.1

Block 10 - Combine

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 11 - Get new messages

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

3. Summary Table

Workflow Log new Gmail messages automatically in Google Sheets
Complexity intermediate
Nodes 11
Categories CRM, Multimodal AI
Author Robert Breen
Published 26 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/7857/7857.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Log new Gmail messages automatically in Google Sheets do?

‍ Description This workflow automatically fetches new Gmail messages since the last run and appends them into a Google Sheet with their ID, snippet, and timestamp. It’s designed for professiona...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your CRM, Multimodal AI use case.