Log Gmail invoice attachments to Google Sheets with easybits and Telegram
UnknownWhat this workflow does
This workflow has 11 nodes and runs on Gmail events. Along the way it connects Gmail, Google Sheets, Telegram and Extractor (community).
How it runs
Trigger: On Gmail events.
- Code: runs custom JavaScript code
- Loop: Over Each Attachment (Loop Over Items (Split in Batches)): loops over the items in batches
- Gmail: mark as read
- Check: Is Supported File Type (If): checks a condition and branches into true / false
- Extract: Document Fields (Easybits Extractor): uses Easybits Extractor
- Check: Is Invoice (If): checks a condition and branches into true / false
- Sheets: Find Existing Invoice (Google Sheets): uses Google Sheets
- Check: Is New Invoice (If): checks a condition and branches into true / false
- Sheets: Append Invoice Row (Google Sheets): append
- Telegram: uses Telegram
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other Telegram + Google Sheets templates (674) · Other Gmail + Telegram templates (361)
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: Document Fields).
- 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 (8)
- Gmail Trigger
n8n-nodes-base.gmailTrigger - Code
n8n-nodes-base.code - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Gmail
n8n-nodes-base.gmail - If
n8n-nodes-base.if - Easybits Extractor
@easybits/n8n-nodes-extractor.easybitsExtractor - Google Sheets
n8n-nodes-base.googleSheets - Telegram
n8n-nodes-base.telegram
From the author
Quick overview This workflow polls Gmail for unread emails with attachments, extracts invoice fields using easybits Extractor, deduplicates by invoice number, logs new invoices to Google Sheets, and sends a Telegram alert with key totals. How it works 1.…