Review your budget from bank statement CSV with Google Gemini and Gmail
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.
Nodes used (9)
- n8n Form Trigger
n8n-nodes-base.formTrigger - Extract from File
n8n-nodes-base.extractFromFile - Code
n8n-nodes-base.code - 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 - Google Sheets
n8n-nodes-base.googleSheets - Switch
n8n-nodes-base.switch - Gmail
n8n-nodes-base.gmail
What it does
Quick Overview This workflow collects a bank statement CSV and monthly budget via an n8n form, summarizes spending totals and top merchants, gets a structured budget review from Google Gemini, logs the result to Google Sheets, and emails a tailored report via Gmail based on whether you are over, on track, or under budget. How it works 1. Receives a form submission with the user’s email, monthly budget, and an uploaded bank/card statement CSV. 2. Extracts transaction rows from the CSV and calculates total spend plus a top-spending-by-merchant summary. 3. Sends only the aggregated totals and top merchants to Google Gemini to generate a structured budget review with status, overspend areas, savings opportunities, a summary, and a monthly plan. 4. If Gemini fails to return a usable review, sends a failure email to the user with CSV formatting guidance. 5. Formats the AI output into email-ready fields (including budget difference and bullet lists) and appends the review to a Google Sheets spreadsheet. 6. Routes by budget status and sends a tailored Gmail message (over budget, on track, under budget, or a generic fallback) to the submitted email address. Setup 1. Add credentials for Google Gemini (PaLM) API, Google Sheets OAuth2, and Gmail OAuth2. 2. Select the target Google Sheets spreadsheet and ensure it has a sheet/tab for appended rows (for example, “Budget Reviews”). 3. Activate the form trigger and share the generated form URL so users can upload a CSV statement and enter their budget.