Templates / Review your budget from bank statement CSV with Google Gemini and Gmail

Review your budget from bank statement CSV with Google Gemini and Gmail

Ready for 3.0

by Oka Hironobu ✓ · 37 views · created 2026-07-21 · Document Extraction, AI Summarization

Ready 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)

Basic LLM ChainGoogle Gemini Chat ModelStructured Output ParserGoogle SheetsGmail

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.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.