Log new Gmail messages automatically in Google Sheets
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.
Nodes used (6)
- Manual Trigger
n8n-nodes-base.manualTrigger - Google Sheets
n8n-nodes-base.googleSheets - Code
n8n-nodes-base.code - Summarize
n8n-nodes-base.summarize - Merge
n8n-nodes-base.merge - Gmail
n8n-nodes-base.gmail
What it does
π§βπ» 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