⚡ WhatsApp expense tracker with PostgreSQL database & AI-powered reports

2,942 views · ⚡ Personal Productivity

Description

Track Personal Finances with WhatsApp and AI Assistant

Transform your WhatsApp into a powerful personal finance command center. This AI-powered workflow converts natural language messages into structured financial data, automates record-keeping, and delivers instant insights—all within your favorite messaging app.

Who is this for?

This template is perfect for:

What problem is this workflow solving?

Traditional expense tracking requires switching between apps, manual data entry, and complex spreadsheets. Most people abandon these systems within weeks. This workflow solves the friction by:

What this workflow does

Smart Transaction Processing

Send natural messages like Spent 300 on groceries at Walmart and the AI automatically extracts:

Intelligent Message Classification

The workflow automatically routes messages to three processing branches:

Advanced Reporting

Generate instant reports by messaging:

Database Integration

All transactions are stored in PostgreSQL with proper schema:

CREATE TABLE financial_transactions (
 date DATE NOT NULL,
 category TEXT NOT NULL, 
 type TEXT NOT NULL,
 amount NUMERIC(12,2) NOT NULL,
 person TEXT
);

Setup

Prerequisites

Quick Setup Steps

  1. Import the workflow template into your n8n instance
  2. Configure credentials:
  1. Create database table using the provided SQL schema
  2. Test the connection by sending a sample message
  3. Customize the scheduled report timing (default: 8 AM daily)

Verification Checklist

How to customize this workflow to your needs

AI Model Configuration

Database Options

Message Classification

Customize the classification system:

Reporting Customization

Advanced Features

Complete Package Included

When you download this template, you get everything needed for immediate implementation:

Ready-to-Use n8n Workflow

Comprehensive Documentation Bundle

Built-in Workflow Documentation

Technical Implementation Details

Bonus Resources

Example Usage

Log Expenses:

Log Income:

Generate Reports:

Expected Responses:

✅ Logged: expense | Rent | ₹1,200.00 | Landlord ✅ Logged: income | salary |₹12,000.00|company

📊 Today’s Summary: Income: ₹0.00 Expenses: ₹1,245.50
Savings: -₹1,245.50

📈 March vs April: Expenses: ₹15,000 vs ₹12,500 (-16.7%) Top categories: Rent, Food, Transport

🔗 Nodes Used

Postgres, WhatsApp Business Cloud, Schedule Trigger, AI Agent, Structured Output Parser, Calculator

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup