All work

Principal Full-Stack & AI Architect

KEES

Multi-Tenant Commercial Energy Bill Processing Platform

Built with

  • TypeScript
  • Node.js
  • Next.js
  • Supabase (PostgreSQL)
  • AWS Textract
  • Mistral AI
  • AWS S3
  • Docker
  • DigitalOcean
  • Nginx
  • Chart.js
KEES operations overview showing bills uploaded, items needing review, ready bills and recent document activity
Client
KEES Sustainability
Sector
Commercial energy consultancy
Role
Architect & lead developer
Platform
Next.js, Node.js, Supabase

Overview

The project

KEES is a sustainability consultancy that manages energy for commercial clients with many sites and meters. Every month their team receives stacks of supplier bills that need turning into clean data for cost tracking, carbon and SECR reporting.

I designed and built a platform that reads those bills automatically, matches each one to the right client, site and meter, and gives the team a clear queue of anything that needs a human check.

The challenge

What needed solving

Commercial energy consultants were spending hours manually keying data from complex, multi-supplier PDF utility bills into spreadsheets, creating bottlenecks and high risk of transcription errors.

  • Every supplier lays out its bills differently, with many charge lines per bill
  • Each bill has to be tied to the correct client, site and meter (MPAN/MPRN)
  • Errors flow straight into client cost and carbon reports

The solution

What I delivered

  • Ingestion

    Bulk bill upload with a reliable queue

    A multi-tenant web app accepts drag-and-drop batches of up to 100 PDF bills, stored securely in AWS S3. Each file becomes its own job that can be stopped, restarted or retried.

  • AI extraction

    OCR and AI that know when they are unsure

    AWS Textract reads each bill and Mistral AI normalises it into structured data, with a confidence score on every field so low-confidence values are flagged rather than trusted.

  • Data model

    A data model that mirrors the real world

    A relational PostgreSQL/Supabase model maps organisations, client companies, sites and individual meters to consumption registers, tariffs and standing charges.

  • Review & reporting

    Human review, dashboards and exports

    An editable review screen for confirming flagged fields, Chart.js consumption dashboards per client, and automated Excel exports that match the consultancy's existing formats.

  • Infrastructure

    Secure, isolated deployment

    Docker containers on hardened DigitalOcean Droplets behind an Nginx SSL reverse proxy, with UK GDPR compliance and role-based access control.

In use

How a commercial energy bill moves through KEES, shown with client details blurred.

  1. Step 1

    Bills go in

    Consultants pick a client and drop in a batch of PDFs. Each file becomes its own job in a persistent queue that can be stopped, restarted or retried.

    KEES Upload Bills page with upload, extract, match and review steps, a client selector, a PDF drop zone and queue counters showing 105 completed
  2. Step 2

    Extracted, matched and checked

    Supplier, period, consumption and every charge line are read automatically, matched to a registered meter and validated before the bill is marked ready.

    KEES bill detail for a British Gas electricity bill marked ready for approval with zero issues, showing supplier, invoice date, net, tax and gross totals and a supply charges table
  3. Step 3

    Exceptions surface first

    The operations overview shows what needs attention, what has moved recently and how the processing queue is doing.

    KEES operations overview with bills uploaded, needs review, ready and queued counters, an exceptions table and recent document activity
  4. Step 4

    Client insights

    Saved consumption records roll up into per-client usage and cost views, filterable by site, meter and energy source, with export.

    KEES client insights page with site, meter and bill counts, at-a-glance cost and usage figures and a monthly energy usage chart stacked by site

The outcome

The result

PDF bills per batch
Up to 100
Confidence scored
Every field
Excel exports as before
Same format

Replaced repetitive manual data entry with a repeatable, auditable AI workflow while laying the data foundation for half-hourly load profiling and carbon reporting.

Your project next

Let's discuss your project

Whether it's a new SaaS platform, an AI document workflow, or a build that needs rescuing, tell me where you are and where you need to get to.

Currently open to select 4–12 week Outside IR35 product engineering sprints & advisory builds.

“I was impressed by Orzo Blue's agility, competence, and communication skills”

Yariv Erel, Founder, Podium X