Archive and log invoices from Gmail with SFTP and Google Sheets
Ready for 3.0What this workflow does
This workflow has 27 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). Along the way it connects Gmail and Google Sheets.
How it runs
Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).
- Fetch Invoice Emails (Gmail): get many
- Filter: keeps only the items that match a condition
- Normalize PDF Attachments (Code): runs custom JavaScript code
- Extract Text from PDF (Extract from File): extracts data from a file (pdf)
- Parse Invoice Details (Code): runs custom JavaScript code
- Filter: keeps only the items that match a condition
- Filter: keeps only the items that match a condition
- Filter: keeps only the items that match a condition
- Filter: keeps only the items that match a condition
- Upload Utility Invoices SFTP (FTP): upload
…plus 11 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102)
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (9)
- Manual Trigger
n8n-nodes-base.manualTrigger - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Gmail
n8n-nodes-base.gmail - Filter
n8n-nodes-base.filter - Code
n8n-nodes-base.code - Extract from File
n8n-nodes-base.extractFromFile - FTP
n8n-nodes-base.ftp - Google Sheets
n8n-nodes-base.googleSheets - No Operation, do nothing
n8n-nodes-base.noOp
From the author
Quick overview Automatically collect PDF invoices from Gmail, identify supported providers, extract and validate invoice data without AI, archive PDFs via SFTP, and update Google Sheets. Supports Octopus Energy, Dimensione, Google Cloud, and Hetzner, with…