Categorise bank transactions and email monthly P&L with Gemini and Google Sheets
Ready for 3.0What this workflow does
This AI workflow has 37 nodes and runs when someone submits an n8n form (“Categorise a bank statement”) (plus 3 other triggers). Along the way it connects Google Sheets, Google Gemini Chat Model and Gmail.
How it runs
Trigger: When someone submits an n8n form (“Categorise a bank statement”) (plus 3 other triggers).
- Read CSV rows (Extract from File): extracts data from a file (csv)
- Config (Edit Fields (Set)): sets 1 field: sheet_id
- Set report recipient (Edit Fields (Set)): sets 2 fields: report_email, sheet_id
- Email the error (Gmail): uses Gmail
- Normalise transactions (Code): runs custom JavaScript code
- Read transactions for learning (Google Sheets): uses Google Sheets
- Read all transactions (Google Sheets): uses Google Sheets
- Were transactions found? (If): checks a condition and branches into true / false
- Find corrected rows (Filter): keeps only the items that match a condition
- Build monthly P&L (Code): runs custom JavaScript code
…plus 20 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other Google Gemini + Google Sheets templates (819) · Other Google Gemini + Gmail templates (518)
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 (15)
- n8n Form Trigger
n8n-nodes-base.formTrigger - Extract from File
n8n-nodes-base.extractFromFile - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - n8n Form
n8n-nodes-base.form - Edit Fields (Set)
n8n-nodes-base.set - Google Sheets
n8n-nodes-base.googleSheets - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Filter
n8n-nodes-base.filter - Split Out
n8n-nodes-base.splitOut - Gmail
n8n-nodes-base.gmail - Error Trigger
n8n-nodes-base.errorTrigger
From the author
Quick Overview This workflow categorises uploaded bank-statement CSV transactions using Google Sheets rules and Google Gemini, saves enriched rows to Google Sheets with VAT and review flags, learns new rules from your corrections daily, and emails a monthly…