Parse reference letters from Gmail with easybits and Google Sheets
UnknownWhat this workflow does
This workflow has 10 nodes and runs on Gmail events. Along the way it connects Gmail, Google Sheets and Extractor (community).
How it runs
Trigger: On Gmail events.
- Split Out: Attachments (Code): runs custom JavaScript code
- Filter: keeps only the items that match a condition
- Loop Over Letters (Loop Over Items (Split in Batches)): loops over the items in batches
- Remove Label: References (Gmail): remove labels
- Extract Reference: Letter (Easybits Extractor): uses Easybits Extractor
- Add Label: Processed (Gmail): add labels
- Normalize Reference: Fields (Code): runs custom JavaScript code
- Score Reference: Sentiment (Code): runs custom JavaScript code
- Append Row: References (Google Sheets): append
Services it uses
Other Google Sheets + Gmail templates (2,102)
Before you upgrade to n8n 3.0
We can't fully verify this one: it relies on 1 community package, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).
- Check that @easybits/n8n-nodes-extractor is verified or supports 3.0 (used in Extract Reference: Letter).
- Also check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll).
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (7)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - Code
n8n-nodes-base.code - Filter
n8n-nodes-base.filter - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Easybits Extractor
@easybits/n8n-nodes-extractor.easybitsExtractor - Google Sheets
n8n-nodes-base.googleSheets - Gmail
n8n-nodes-base.gmail
From the author
Quick overview This workflow watches a Gmail label for reference-check emails, extracts structured fields from attached reference letters using easybits Extractor, calculates a sentiment score, and appends one comparable row per letter to a Google Sheets…