Capture Gmail messages and log them automatically to Google Sheets
Workflow Description
Automates email processing by monitoring Gmail for new messages, extracting key data fields, and automatically inserting them into a Google Sheets spreadsheet. Includes conditional logic, filtering options, and data consolidation from multiple sources.
How it works
- 1.Trigger automation when a new email arrives in Gmail
- 2.Extract and process email content and key data fields
- 3.Write extracted email data to rows in Google Sheets
- 4.Apply conditional filters to identify relevant messages
- 5.Merge data from multiple sources when necessary
- 6.Execute additional workflows for further processing
Use cases
- Archive inquiry details and contact information from incoming emails automatically
- Centralize important notifications and alerts in a single tracking spreadsheet
- Document project-related emails by filtering on keywords and sender information
Requirements
- Active Gmail account with full API access permissions
- Google Workspace account or Google Sheets with edit permissions
- Basic understanding of email data structure and required fields for extraction
Service Value
Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.
Apps Used
Details
How to Use
- 1.Click "Download Template"
- 2.Open your n8n dashboard
- 3.Go to Workflows > Import from File
- 4.Select downloaded file and configure credentials
Nodes Used (46)
When clicking ‘Test workflow’
Manual Trigger
Get list of owners
HTTP Request
Get list of clients for owner
HTTP Request
Sticky Note1
Sticky Note
If
If
Edit
Set
Increment Page
Set
Split Out1
Split Out
Merge al the entries
Code
If linkedin url is empty
If
if new post
If
Get list of clients
Execute Workflow
When Executed by Another Workflow
Execute Workflow Trigger
Get last post
Execute Workflow
Gmail
Gmail
Search for user by link
HTTP Request
Do nothing
No Op
Merge profileURL
Code
Set last_post
Set
Set last_position
Set
if new position
If
Set data here
Set
Sticky Note
Sticky Note
Change this for testing
Filter
Create entry with email
Google Sheets
Get rows from document
Google Sheets
Search for user profile by names
HTTP Request
Profile URL not found?
If
Set the profile URL
Set
Set the profile URL1
Set
Update last post
Google Sheets
Updates last position
Google Sheets
Set post_updated
Set
Set position_updated
Set
Generate the email text
Code
Merge on email
Merge
Split Out owners
Split Out
Get current owner
Filter
Sticky Note2
Sticky Note
Sticky Note3
Sticky Note
Sticky Note4
Sticky Note
Sticky Note5
Sticky Note
Sticky Note6
Sticky Note
Sticky Note7
Sticky Note
Sticky Note10
Sticky Note
Sticky Note8
Sticky Note