N
← All work/02·2025·CMS Desk

AutoQuote · CMS-AQI

Multi-Tenant Document AI · 12 Specialised Agents

PRIVATE REPO · NDAConstruction · Procurement

Multi-tenant document AI platform. Ingests invoices, receipts, PODs, credit notes, quotations, subscriptions, and bank statements via email or upload, classifies them, extracts structured data, and stores results.

№ 0112 specialised AI agents
№ 0220 clients in parallel
№ 0395+ fields extracted per receipt
№ 04Per-client sequential queue

The Brief

Problem

Construction clients were drowning in PDFs — supplier invoices, PODs, credit notes — all manually keyed into spreadsheets. Rebate eligibility and reconciliation took weeks per month.

The Architecture

Decision

12 specialised Gemini agents, each handling one document type. Three-tier classification (keyword → Gemini → Agent 1 deep). Per-client sequential queue, cross-client parallel up to 20 simultaneously. Wasabi storage, MySQL data, SSE for real-time progress in the dashboard.

The Outcome

Result

Documents flow from email to dashboard in seconds. Rebate calculations auto-run. POD linking and bank reconciliation reduced from days to minutes.

The Workflow
animated

How it actually works in production.

01

Ingest

Email (IMAP)

multi-mailbox

Manual upload

dashboard

Wasabi S3

fast upload

Processing queue

Processing queue

MySQL · per-client

02

Classify (3-tier)

Keyword match

fast path

Gemini classify

Gemini classify

mid path

Agent 1 deep

fallback

03

12 Specialised Agents (Gemini)

Invoice

Invoice

A02

POD

POD

A03

Quotation

Quotation

A04

Credit note

Credit note

A05

Receipt

Receipt

A06 · 95+ fields

POD linking

POD linking

A07

Rebate × 3

Rebate × 3

A08a/b/c

Bank recon

Bank recon

A09

Generic

Generic

A10

Reclassify

Reclassify

A11

Subscription

Subscription

A12

04

Persist & Notify

MySQL

MySQL

auto_invoices, auto_pods…

Wasabi final

{client}/{type}/{file}

SSE event

live dashboard

Job complete

audit log

Animated · Built in code · No GIFs

Live in production
Visual proof
4 images · 1 video

See AutoQuote · CMS-AQI in action.

Demo video

Email → 12-agent pipeline → MySQL (full demo)

~ 1:20 · coming soon

Image slot

Dashboard — live processing stats

coming soon

Image slot

Classifier with extracted invoice fields

coming soon

Image slot

Rebate manager — auto-eligibility check

coming soon

Image slot

Bank reconciliation — auto-matched lines

coming soon

Stack

Built with

PythonFastAPINext.js 15Gemini 2.5 FlashMySQLMongoDBWasabi S3Hetzner