Block 1 - Gmail Trigger
- Type / Role
- n8n-nodes-base.gmailTrigger - gmailTrigger
- Config choices
- Version 1.2
This workflow is provided as-is. Please review and test before using in production.
Extract Gmail Metadata to Google Sheets This n8n template shows how to fetch new emails from a Gmail account, extract key metadata (sender name, email, subject, and message body), and append each e...
n8n-nodes-base.gmailtrigger, n8n-nodes-base.code, n8n-nodes-base.set, n8n-nodes-base.googlesheets, n8n-nodes-base.stickynote
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Mohammed Abid.
Original n8n.io sourceExtract Gmail Metadata to Google Sheets
This n8n template shows how to fetch new emails from a Gmail account, extract key metadata (sender name, email, subject, and message body), and append each email as a new row in a Google Sheet for record-keeping or follow-up workflows.
Good to Know
Gmail API Quotas: Gmail’s API has usage limits—make sure your application stays under 2500 read requests per day or implement exponential backoff on rate limit errors.
OAuth Credentials: You’ll need to configure OAuth2 credentials in n8n to authenticate with Gmail.
Sheet Structure: Prepare your Google Sheet with columns: Timestamp, Sender Name, Sender Email, Subject, Message.
How It Works
Gmail Trigger: Watches for new emails matching your search criteria (e.g., is:unread).
Extract Metadata: A Function node reads the incoming payload and pulls:
Name and Email from headers or body text
Subject from common subject fields
Message from body, text, or snippet
Timestamp from current system time
Append to Sheet: The Google Sheets node appends each processed email as a row in your target spreadsheet.
How to Use
Import the Template: Click "Use Template" in your n8n instance.
Configure Credentials:
Gmail OAuth2: Set up your Gmail account credentials in n8n.
Google Sheets: Authorize with your Google account and select the spreadsheet.
Adjust Search Criteria: Modify the Gmail Trigger to filter specific labels or queries.
Activate and Test: Enable the workflow and send a test email.
Verify Sheet: Check your Google Sheet for new rows with the extracted email data.
Requirements
n8n@latest
Gmail OAuth2 Credentials
Google Sheets API enabled in your Google Cloud project
Customizing This Workflow
Additional Fields: Extend the Function node to capture attachments, threads, or labels.
Notification Flow: Add Slack or email nodes to notify your team of important messages.
Data Enrichment: Integrate with NLP or sentiment analysis APIs to annotate messages.
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.
| Workflow | Extract Gmail metadata to Google Sheets |
|---|---|
| Complexity | intermediate |
| Nodes | 7 |
| Categories | Ticket Management |
| Author | Mohammed Abid |
| Published | 26 Jul 2025 |
Use the JSON export at /data/workflows/6496/6496.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
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.
Extract Gmail Metadata to Google Sheets This n8n template shows how to fetch new emails from a Gmail account, extract key metadata (sender name, email, subject, and message body), and append each e...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
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 Ticket Management use case.