Smart Expense Monitoring in Minutes
This n8n workflow reads your expenses from Google Sheets, categorizes them using predefined keywords, summarizes spending per category, generates AI-powered financial advice using Gemini, stores results in another sheet and sends email alerts for high or normal expenses.
Import the workflow into n8n
Connect:
Update the Settings node:
Ensure:
Date, Description, AmountDate, Category, Total Spent, AI Report, Status, Reviewed OnClick "Execute Workflow"
This workflow automates your expense tracking and financial analysis using a combination of Google Sheets and AI.
It begins by fetching raw expense data from a Google Sheet (Sheet1), where each row contains a date, description and amount. The workflow then processes each row by cleaning the data and assigning a category such as Food, Transport, Subscription, Shopping, Utilities, Health or Other using predefined keyword matching.
Once categorized, it aggregates total spending per category and evaluates whether the spending exceeds a defined budget limit. Based on this evaluation, it generates a detailed, personalized financial advisory report using Google Gemini AI.
Finally, the workflow stores all results in another sheet (Sheet2) and sends an email notification—either a high expense alert or a normal summary—based on the spending status.
To use this workflow, you need:
Import the provided JSON file into n8n
| Date | Description | Amount |
|---|
| Date | Category | Total Spent | AI Report | Status | Reviewed On |
|---|
Update the “Settings — Change These Before Running” node:
Budget Limit → Threshold for high expense detectionSend Report To Email → Recipient emailEmail Sender Name → Display nameCurrency Symbol → Example: Rs.Report Period → Example: This MonthManual Trigger
Read Expenses
Settings Node
Clean & Categorize
Summarize
Build AI Fields
Gemini AI
Collect Data
Save to Sheet2
Condition Check
Budget Limit in Settings nodeMonthly Personal Expense Review
High Spending Alerts
Subscription Cost Optimization
Family Budget Monitoring
Freelancer Expense Tracking
There can be many more variations of this workflow depending on your needs.
| Issue | Possible Cause | Solution |
|---|---|---|
| No data fetched | Incorrect Sheet ID or tab | Verify Sheet1 configuration |
| Categories not accurate | Keyword mismatch | Update categorization logic |
| AI report not generated | Invalid Gemini API key | Reconnect API credentials |
| Emails not sent | Gmail not connected | Reauthorize Gmail OAuth |
| Sheet2 not updating | Column mismatch | Ensure correct headers |
| Always "Normal Expense" | Budget too high | Adjust Budget Limit |
| Missing email recipient | Email not set in Settings | Add recipient email |
If you need help setting up, customizing or extending this workflow, we’re here to support you.
Whether you want:
Reach out to WeblineIndia for expert assistance in building powerful, scalable automation solutions tailored to your needs.