Auto invoice & receipt OCR to Google Sheets – Drive, Gmail, & Telegram triggers
Ready for 3.0What this workflow does
This workflow has 21 nodes and runs on Google Drive events (plus 2 other triggers). Along the way it connects Google Sheets, Google Drive, Telegram and Gmail.
How it runs
Trigger: On Google Drive events (plus 2 other triggers).
- Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
- Loop Over Emails (Loop Over Items (Split in Batches)): loops over the items in batches
- Create File Name For Telegram (Code): runs custom JavaScript code
- Google Drive: uses Google Drive
- Loop Over Attachments (Loop Over Items (Split in Batches)): loops over the items in batches
- If: checks a condition and branches into true / false
- Google Save Files (Google Drive): uses Google Drive
- Move file to base64 string (Extract from File): extracts data from a file
- Create File Name (Code): runs custom JavaScript code
- Split Out Binary Files (Code): runs custom JavaScript code
…plus 8 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other Google Drive + Google Sheets templates (720) · Other Telegram + Google Sheets templates (674)
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Still check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll) (Gmail Trigger).
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (12)
- Edit Fields (Set)
n8n-nodes-base.set - Extract from File
n8n-nodes-base.extractFromFile - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - Google Sheets
n8n-nodes-base.googleSheets - Google Drive
n8n-nodes-base.googleDrive - Telegram Trigger
n8n-nodes-base.telegramTrigger - Gmail Trigger
n8n-nodes-base.gmailTrigger - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - If
n8n-nodes-base.if - Wait
n8n-nodes-base.wait - Google Drive Trigger
n8n-nodes-base.googleDriveTrigger
From the author
The Best Invoice & Receipt OCR Automation - FREE (for a limited time) Automatically process invoices and receipts using Gemini OCR, extracting data directly into Google Sheets from multiple sources including Google Drive, Gmail, and Telegram. This powerful…