workflows.fit
Back to n8n workflows
n8n templateFreeBy Robert Breen

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 o...

Data & StorageProductivityCommunicationHITLDevelopmentCore NodesManual TriggerSticky Note
Loading interactive preview...

Template notes

πŸ§‘β€πŸ’» 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](https://docs.google.com/spreadsheets/d/1t5VXtbo9g7SvGDPmeZok4HG1K-WI1PS0DNBylzmhVwg/edit?usp=drivesdk) 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