Use this efficient n8n workflow to automatically log new Gmail messages into Google Sheets. Perfect n8n template for creating lightweight CRMs or tracking communications using an n8n node.
Download this n8n workflow template and start using it instantly.
Users who need an audit trail or historical log of all incoming emails.
Teams building lightweight, self-managed customer relationship management (CRM) systems.
Developers looking for a reliable n8n template to monitor mailbox activity.
Anyone seeking to synchronize their email activity with a structured database like Google Sheets.
Keeping track of all incoming emails can be challenging, especially when you need a structured, queryable log outside of your mailbox. This robust n8n workflow solves that by providing an automated mechanism to fetch and record new Gmail messages into a Google Sheet.
Unlike simpler setups, this n8n template intelligently determines the last run time by reading the existing data in the Google Sheet first. This ensures that the Gmail n8n node only fetches emails received since the last successful log, preventing duplication and ensuring high efficiency. The resulting output is a tidy spreadsheet containing the message ID, snippet, and the exact timestamp when the n8n workflow processed the message, making this an essential n8n node sequence for data management.
This n8n workflow initiates execution via a manual n8n trigger (designed to be run manually or scheduled).
datetime recorded. This date is crucial for filtering new emails.receivedAfter filter. This ensures that the workflow efficiently retrieves only messages newer than the last recorded entry.To deploy this useful n8n workflow, follow these steps:
id, snippet, and datetime) into your own Google Drive.This n8n workflow utilizes several key n8n nodes:
When clicking ‘Execute workflow’ (Manual Trigger): The primary n8n trigger used for running the automation, typically set up for scheduled execution.
Get Current Emails (Google Sheets n8n node): Operation set to 'Get All'. Reads all data from the spreadsheet. This is the first step in the data lifecycle of this n8n template, used to establish the history.
Get Max Date (Summarize n8n node): Function set to find the 'max' value for the datetime field retrieved from the sheet. This extracted value (maxdatetime) is critical for the efficiency of the overall n8n workflow.
Get Todays Date (Code n8n node): Executes JavaScript to generate the current ISO 8601 timestamp. This ensures a uniform logging date for all new emails processed during the current n8n run.
Get new messages (Gmail n8n node): Operation set to getAll. Crucially, it uses an expression filter: receivedAfter: {{ $json.maxdatetime }}. This is how the n8n node limits the results to truly new emails.
Add Emails to Sheets (Google Sheets n8n node): Operation set to appendOrUpdate. It maps the incoming data from the Gmail n8n node to the sheet columns, appending new rows with the message ID, snippet, and the current logging timestamp.
Use this powerful n8n workflow to automatically log food calories from images sent via LINE directly into Google Sheets using OpenAI Vision. Deploy this n8n template for health tracking.

A robust n8n workflow to automatically log e-commerce orders into dynamically created monthly Google Sheets tabs, complete with conditional formatting and status tracking. Start building custom n8n templates today.

Use this powerful n8n workflow to automate logging your daily mood and local weather conditions directly to Notion using a Telegram input. This n8n template ensures consistent personal data tracking.

This powerful n8n workflow uses an AI agent to transcribe voice messages or parse text input from Telegram, extract detailed nutritional data, and log it automatically to Google Sheets.

Professional services consultant with over 10 years of experience solving complex business problems across industries. I specialize in n8n and process automation—designing custom workflows that integrate tools like Google Calendar, Airtable, GPT, and internal systems. Whether you need to automate scheduling, sync data, or streamline operations, I build solutions that save time and drive results.







































