What This Workflow Does
Manually logging every coffee, grocery run, or money you lent a friend into a spreadsheet is tedious and easy to forget. This automation solves that by turning your Slack workspace into a personal finance assistant. You simply message the bot in plain English like "₹500 cash food" or "borrowed ₹1000 from John," and the AI agent intelligently parses the transaction, calculates your updated balances, and logs everything into your Google Sheets—after showing you a preview for approval.
The workflow maintains a conversational memory, so you can reference past transactions naturally. It also sends you a daily summary at 11 PM with your current cash and online balances, plus any active debts. It's designed for individuals, freelancers, or small teams who want detailed financial records without the friction of traditional budgeting apps.
Beyond simple expense tracking, it handles the nuances of personal finance: separating cash and digital payments, tracking who owes you money (and who you owe), managing repayments, and categorizing spending—all through a simple, chat-based interface you already use daily.
How It Works
The automation runs on two parallel tracks: a scheduled daily check-in and an on-demand AI agent triggered by Slack mentions.
1. Scheduled Daily Summary
Every day at 11 PM, the workflow automatically fetches the latest balances from your Google Sheets, retrieves all active debts, and sends you a formatted Slack message. This serves as both a daily financial snapshot and a gentle prompt to log any transactions from the day.
2. AI-Powered Transaction Processing
When you mention the bot in Slack (e.g., @FinanceBot ₹200 online shopping), a multi-phase process begins:
Phase 1 - Parse & Analyze: The AI (Google Gemini) extracts the amount, payment type (cash/online), category, and transaction type (expense, income, borrowed, lent, repaid). It uses PostgreSQL to remember the context of your conversation.
Phase 2 - Calculate & Preview: The system reads your current balances from Google Sheets, applies the transaction, and sends you a clear preview of the changes. You simply reply "yes" to approve or "no" to cancel.
Phase 3 - Update Database: Upon approval, the workflow generates a unique transaction ID, timestamps the entry, updates the debt records if applicable, and writes the new balances and transaction details to your Google Sheets.
Phase 4 - Confirmation: You receive a success message in Slack with your updated balances and a summary of active debts, completing the loop.
Who This Is For
This template is ideal for:
- Individuals and Freelancers who want to track personal and business expenses without manual data entry.
- People who lend/borrow money frequently and need a system to track who owes what.
- Teams or households sharing expenses who want a central, transparent record.
- Anyone comfortable with Slack who prefers conversational commands over form-based apps.
- Tech-savvy users looking to experiment with AI agent automation for practical daily tasks.
What You'll Need
- An n8n instance (cloud or self-hosted).
- A Slack workspace with permission to create apps.
- A Google account to create and access a Google Sheets spreadsheet.
- A Google Gemini API key (free tier available).
- A PostgreSQL database (a free Supabase instance works perfectly).
- Basic familiarity with connecting APIs and following setup guides.
Pro tip: While the template uses Google Gemini, the notes suggest Claude might provide better results for financial parsing. You can easily swap the AI model node if you have access to Claude's API.
Quick Setup Guide
- Download & Import: Click the "Download Template" button and import the JSON file into your n8n instance.
- Prepare Your Google Sheet: Create a new Sheet with three tabs named exactly
Balances,Transactions, andDebts. Add the required header rows as shown in the template documentation. - Create a Slack App: Go to api.slack.com/apps, create a new app, and add the Bot Token Scopes:
app_mentions:read,chat:write, andchannels:read. Install it to your workspace and note the Bot User OAuth Token. - Get Your AI Key: Obtain a free API key from ai.google.dev for Google Gemini.
- Set Up PostgreSQL: Create a new database (Supabase is recommended for a free, easy start). Note your connection details.
- Configure n8n Credentials: In your n8n workflow, set up credentials for Google Sheets (OAuth2), Slack API (using your Bot Token), Google Gemini API, and PostgreSQL.
- Update Node Parameters: Point all Google Sheets nodes to your new spreadsheet, select your Slack channel, and set a unique session key in the PostgreSQL Chat Memory node.
- Activate & Test: Turn on the workflow, invite your Slack bot to a channel, and send a test message like
@YourBot ₹100 cash lunch. Approve the preview and verify the Sheet updates.
Key Benefits
Save 5+ hours per month by eliminating manual spreadsheet updates. What used to be a weekly chore becomes a few seconds of conversation.
Eliminate data entry errors with AI-powered parsing that consistently categorizes transactions, ensuring your financial records are accurate and reliable.
Gain real-time financial visibility with daily balance summaries and an always-up-to-date transaction log, helping you make better spending decisions.
Never forget who owes you money again. The system automatically tracks debts, marks them as settled upon repayment, and includes them in your daily summaries.
Use tools you already know—Slack for input, Google Sheets for storage—reducing the learning curve and making financial tracking a natural part of your workflow.