Email receipt, payment notice and expense line-item workflow
This n8n workflow runs two Gmail triggers to collect both supplier receipts and bank payment notifications. Document extraction and structured language-model chains capture vendor, date, category and line items, then split multi-item receipts into individual rows. Built-in node error flags protect extraction before clean rows land in Google Sheets.
- Catalogue ID
- #1443
- Functional nodes
- 21
- Connections
- 21
- Trigger
- gmailTrigger
- AI layer
- AI-assisted
Business problem solved
Company expenses arrive across card notifications, bank emails and attached receipts. Sorting hundreds of emails at month-end by hand delays reporting, while lumping multi-line receipts into single rows hides true category spend.
Trigger
Two dedicated Gmail triggers watch receipt emails and bank payment notices through separate intake branches.
Connected systems
- Gmail
- Google Sheets
- Google Gemini
- Groq language model
- Structured output parser
- Self-hosted n8n
Every workflow is deployed on your own server with documentation, a run log and an error queue.
Workflow steps
- 01
Dual-channel expense intake
One Gmail trigger collects invoice and receipt attachments while the second listens for bank payment confirmations.
- 02
File reading and structured parsing
Attachments and email bodies are extracted and parsed into consistent vendor, date, category and amount fields.
- 03
Multi-line expense splitting
The Split Out step separates multi-item documents into individual expense lines for accurate ledger tracking.
- 04
Expense ledger write
Structured expense rows are appended to Google Sheets following your finance column layout.
Error queue and human approval
Built-in state in the catalogue workflow
The verified catalogue workflow carries two built-in node error flags on the invoice extraction and payment extraction steps.
Production layer added by ALTAI
During live deployment, ALTAI connects both built-in error branches to a central error queue, locks category lists to your chart of accounts and adds approval gates for high-value expenses.
Email receipt and expense extraction workflow Frequently asked questions
Supplier receipts and bank payment notices follow different formats. Separate triggers let each branch parse its own structure cleanly.
If a single corrupted PDF or unexpected bank email fails extraction, the built-in error path isolates that item instead of halting the rest of the batch.
Yes. Allowed category values are locked inside the structured schema to mirror your accounting codes.
No. The catalogue build demonstrates Gemini and Groq; on your server we standardise on one approved cloud or local model.
Related n8n workflows
Email PDF and XML invoice extraction workflow
Unpacks ZIP, PDF and XML invoice attachments from Gmail, extracts structured line items with calculation checks, archives to Drive and updates Sheets.
Google Drive PDF and image to CSV workflow
Watches a Google Drive folder for PDFs and scanned images, routes by file type, extracts fields with Gemini and exports clean CSV files.
Stripe invoice to HubSpot and Slack workflow
Matches paid Stripe invoices to HubSpot deals by purchase-order number and alerts Slack immediately when a PO or deal record is missing.

We write the proposal after we have found the problem together
In a thirty-minute call we listen to how you work and talk through where time and customers are slipping away. If you do not need a digital fix, we will tell you that too.
30 minutes · no preparation needed
The call and the week of discovery are both free.Read the terms