Customer work

Finance Intelligence and Automated Financial Operations

A deterministic-first pipeline that turns scattered bank alerts and statement PDFs into one dashboard — for an individual managing several personal businesses.

Implemented and in use
Business context

The client is an individual managing multiple personal businesses, each generating its own stream of bank alerts, card statements, and email notifications across separate accounts. Financial visibility was split across inboxes and PDFs, with no single place to see spend across accounts and businesses together. This page replaces an earlier public version of this case study, which stated an unsupported monthly time-saved figure and an unsupported fee-leakage detection claim. Neither claim is supported by anything on record — no time study, log, or client statement exists for the first, and no leakage-detection logic was found for the second. Both are withdrawn here, not restated. The client is also corrected: this is not an enterprise finance team.

The operational problem

Tracking transactions by hand across several accounts and businesses means re-reading alert emails and statement PDFs one at a time, categorising each charge from memory, and trying to reconstruct a current picture of spend that nobody keeps reliably up to date. A missed alert means a transaction with no record until the statement eventually arrives.

Why existing processes are insufficient

Bank and card portals each show their own slice of activity; none of them shows transactions across multiple accounts and businesses in one place. Manual categorisation drifts — the same merchant gets tagged differently over time depending on who's doing it and when — and there is no systematic way to catch a transaction that was never recorded at all.

Proposed solution

A pipeline that watches the inboxes themselves for bank alerts and statement PDFs, extracts transaction data deterministically wherever possible, falls back to an LLM only for cases the deterministic parser can't resolve with confidence, remembers how a merchant has been categorised before, and writes everything into a single backend that a purpose-built dashboard reads from.

Solution architecture

  Gmail inboxes              Bank/card statement PDFs
       │                              │
       └───────────┬──────────────────┘
                    ▼
        ┌─────────────────────────┐
        │  Trigger / router         │
        │  workflow (n8n)            │
        └─────────────────────────┘
                    │
                    ▼
        ┌─────────────────────────┐
        │  Regex-first parser        │
        │  LLM fallback for          │
        │  genuinely ambiguous cases │
        └─────────────────────────┘
                    │
                    ▼
        ┌─────────────────────────┐
        │  Dedupe + merchant-memory  │
        │  categorisation            │
        └─────────────────────────┘
                    │
                    ▼
        ┌─────────────────────────┐
        │  Supabase backend          │
        │  (schema, RLS)              │
        └─────────────────────────┘
                    │
                    ▼
        ┌─────────────────────────┐
        │  10-module dashboard        │
        │  transactions, statements, │
        │  categories, merchants,    │
        │  clients, accounts,        │
        │  credit cards, analytics,  │
        │  drill-down, CSV export    │
        └─────────────────────────┘
  1. Step 1
    Gmail inboxes + statement PDFs
  2. Step 2
    n8n trigger / router
  3. Step 3
    Regex-first parser, LLM fallback
  4. Step 4
    Dedupe + merchant-memory categorisation
  5. Step 5
    Supabase backend (RLS)
  6. Step 6
    10-module dashboard
Data and application integrations

Input: Gmail-delivered bank/card alerts and statement PDFs — not a manual upload step. Internal: a regex-first extraction layer handles the common, well-structured case deterministically; an LLM (Gemini) is invoked only as a fallback for cases the regex parser can't resolve with confidence; a dedupe check and merchant-memory layer apply before anything is written to Supabase. Human-facing: a 10-module dashboard — transactions, statements, categories, merchants, clients, accounts, credit cards, analytics, drill-down, and CSV export, with cross-filtering across modules. Coverage: the project's own requirements call for coverage across multiple card issuers and inboxes — a design requirement, not a confirmed delivered count; this page states it as "designed to cover multiple card issuers and inboxes," not a specific number.

Technology stack
  • n8n (inbox-triggered ingestion and routing)
  • Regex-first deterministic parsing core
  • Gemini as an LLM fallback for ambiguous parses only
  • Supabase (Postgres with row-level security, user-scoped writes)
  • Purpose-built frontend dashboard
End-to-end workflow
  1. 1
    Arrive

    A bank alert or statement PDF lands in a watched inbox.

  2. 2
    Route

    A router workflow triggers ingestion.

  3. 3
    Parse

    The regex-first parser attempts extraction.

  4. 4
    Fallback

    Cases the parser can't resolve with confidence fall back to the LLM.

  5. 5
    Dedupe

    A dedupe check runs against existing records.

  6. 6
    Categorise

    Merchant-memory applies prior categorisation if the merchant has been seen before; if not, it's categorised and the categorisation is remembered for next time.

  7. 7
    Write

    The record is written to Supabase.

  8. 8
    Dashboard

    The dashboard reads live from Supabase across its 10 modules, with drill-down, CSV export, and cross-filtering.

Implementation methodology

The core design decision is deterministic-first parsing: regex handles the common, well-structured case, and the LLM is invoked only where the parser genuinely cannot resolve a case with confidence. This keeps most transactions traceable to a parsing rule rather than to a model inference, which matters both for auditability and for cost and latency. Multi-issuer and multi-inbox coverage is built into the design as a requirement; it is not restated here as a delivered, confirmed count.

Security and governance

Supabase row-level security scopes data access per user. Because the client is a single individual across several personal businesses rather than a shared enterprise team, the access model reflects that scope rather than a multi-seat organisational permission structure.

Deployment considerations

The platform is implemented and in use by the client. Hosting details and day-to-day production operating status beyond "in use" are not confirmed on the record available to us — this page states that plainly rather than implying a fuller operational picture than is known.

Expected operational benefits

A single place to see transactions across accounts and businesses, instead of per-portal visibility.

Categorisation applied consistently through merchant memory instead of manual re-tagging each time a statement arrives.

No time-saved or leakage-detection figure is stated — neither has been measured, and this page does not repeat the earlier unsupported claims.

What makes this technically challenging

Building a parser robust enough across the different formats used by different card issuers and alert templates that the common case resolves deterministically, while reserving the LLM — with its added cost, latency, and audit overhead — for the genuinely ambiguous remainder. Keeping merchant memory accurate as new merchants and new statement formats appear over time is an ongoing part of that same problem, not a one-time build task.

Implemented and in use

Status: Implemented and in use by the client. The client is an individual managing multiple personal businesses — not an enterprise finance team, and this page does not describe it that way. Hosting and day-to-day production status beyond "in use" are unconfirmed; this page will be updated once that is established. This page no longer states the unsupported monthly time-saved figure or the unsupported fee-leakage detection claim that appeared on an earlier public version of this case study — neither is supported by anything on record.

Want to talk about something like this?