← Back to AI Case Studies
AI Agent Systems / AI Process Engineering

AI Agents Running a Business

In Production Type: Multi-Agent AI System Domain: Bookkeeping, Reporting & Operations Built for: Ourselves
verified

We ran it on ourselves first

This system does our own bookkeeping. Real bank transactions, real HST filings, real month-end, real consequences if it gets something wrong. We are describing it in detail because it is the clearest available answer to the question clients actually ask about AI — not “what can it do?” but “how do you know it didn't quietly get something wrong?”

The Challenge

A small consultancy earns from billable work. Everything else — categorising bank transactions, chasing receipts, preparing HST, closing the month, reconciling what was invoiced against what was actually received, triaging correspondence, tracking commitments — is necessary, unbillable, and relentless. It does not scale down when you are busy. It scales up.

The conventional options are to hire someone, to buy software that does part of it, or to keep absorbing the hours. None of those were satisfying. Hiring is not justified at this size. Off-the-shelf tools each solve one slice and leave the joins — which is where most of the time actually goes.

The interesting question was not “where could AI help with this?” It was the harder one: if AI, conventional software and a person all had today's capabilities when this back office was first designed, how would it be designed? That is a different question, and it produces a different system.

What We Built

A set of AI agents, each owning a coherent business domain, running as always-on services with their own memory, their own tools and their own accountability. They talk to each other over a message bus, they hold state in a database rather than in a chat window, and they escalate to a human on their own initiative.

Executive Assistant Agent

Tracks goals, commitments, deadlines and risks; routes incoming work to the right specialist; surfaces things proactively rather than waiting to be asked. It is also the agent that independently verifies the finance agent's numbers.

Finance Agent

The bookkeeping worker. Imports bank data, categorises transactions, prepares HST for filing, produces month-end profit and loss, and maintains the review queue of anything it was not confident about.

Marketing Agent

Owns the website, lead and pipeline tracking, analytics and brand presence — including how the business appears to AI systems that are increasingly the first thing a prospect asks about a supplier.

Per-Project Developer Agents

Domain specialists — Excel/VBA, Power BI, Azure — instantiated per client project, carrying that project's standards and history, and reporting up to the assistant agent.

The structure matters more than the agent count. Each agent owns a domain that hangs together, has tools scoped to that domain, and reports to a parent. That is an org chart, not a pile of prompts — and it is why the system can be reasoned about, audited and extended instead of quietly drifting.

Where the AI Actually Sits

The most important design decision in the whole system is that AI is not the first thing tried, and it is never the last word. Transaction categorisation is the clearest example. Each transaction runs down a ladder, and it stops at the first rung that can answer confidently:

The ladder, in order, with the confidence each rung is allowed to claim:

  • 1. Exact match against the learned rules database — something we have seen and confirmed before. Highest confidence, and it rises slightly the more often that rule has proven correct.
  • 2. Human-defined pattern rules — explicit policy written by a person, applied deterministically.
  • 3. Fuzzy vendor matching — for the same supplier appearing under a slightly different descriptor. Confidence scales with how close the match actually is.
  • 4. The language model — only for what the first three could not resolve, and capped below the auto-commit threshold by design.

That last point is the one worth dwelling on. The AI's answer is deliberately not allowed to be confident enough to post itself to the books. An LLM-derived categorisation can only ever land in the review queue for a human to confirm. Nothing about the model prevents it from claiming certainty — the architecture does, because posting to the accounting records is consequential, externally accountable, and exactly the kind of work where autonomy should be earned rather than assumed.

Auto-commit

high-confidence deterministic matches post without human involvement

Review

middle-confidence and every AI answer queue for confirmation

Escalate

low confidence is left uncategorised and raised, never guessed

The effect is that human attention is spent almost entirely on the genuinely ambiguous minority, and not at all on the large, boring majority that deterministic rules already handle correctly. That is the whole objective — not maximum AI autonomy, but the best allocation of work, judgment and verification between the person and the machine.

The Controls That Make It Trustworthy

“Human in the loop” is not a control. It is a phrase people reach for when they have not decided who actually recommends, decides, executes, verifies and can overrule. These are the controls that do the real work:

Separation of duties between agents

The agent that produces the numbers is not the agent that verifies them. Reconciliation is owned by a different agent, which independently re-derives the totals from the underlying data and reports variances. An agent marking its own homework is not assurance.

Independent re-derivation, not agreement

Verification recalculates revenue, expenses and tax credits straight from source records and compares. It also checks month-over-month variance, that expected recurring entries are actually present, and that year-to-date figures remain continuous.

Corrections become permanent policy

When a human overrides a categorisation, the system does not merely accept it — it reads the correction back, learns it as a rule, and never asks again. Every minute of human judgment spent is converted into deterministic behaviour that no longer needs a human or a model.

Hard rules the AI cannot talk itself past

Some actions are simply not delegated. Correspondence is drafted but never sent. Certain records are produced from the system of record rather than recalculated. Where an error would be irreversible or externally visible, the authority stays with the person.

None of these are AI features. They are process controls — the same ones a competent finance function has always had — deliberately carried across into a system where some of the work is now done by a model.

Engineering Details Worth Knowing

A few decisions that made the difference between a demo and something that has kept running:

  • ✓ Tiered model routing. Routine, high-volume work goes to an open-source model running on local hardware, where it can take as long as it likes overnight at no marginal cost. Novel or ambiguous work goes to a frontier model. The system chooses per request, not per project.
  • ✓ Prompt caching on the expensive path. Stable instructions are cached rather than resent, which materially changes the running cost of an always-on system.
  • ✓ State in a database, not in a conversation. Agent memory, messages, tasks and knowledge live in PostgreSQL. Restarting an agent loses nothing, and every decision has somewhere to be looked up afterwards.
  • ✓ Provider fallback. No critical function is coupled to a single AI vendor. If one provider is rate-limited or down, the work routes elsewhere instead of stopping.
  • ✓ Timeouts on everything external. Every database call, HTTP request and tool invocation has an explicit timeout. A hung call surfaces as a logged failure to investigate, never as an agent silently waiting forever.

Most of that list is ordinary, unglamorous software engineering. That is rather the point. The gap between an AI demonstration and an AI system you can actually depend on is filled almost entirely with boring engineering, and it is the part most AI projects skip.

The Method Behind It

We call this way of working AI Process Engineering, and it is how we approach client work as well. It does not start from “where can we insert AI into the existing process?” — that question can only ever produce an automated version of a process someone designed under yesterday's constraints.

It starts from a harder question: if humans, AI and conventional software had their present capabilities when this process was first designed, how would we design it today? The existing process is then treated as evidence about requirements, controls and organisational knowledge — not as the architecture to be preserved. Requirements survive. Controls survive. Outcomes survive. Historical implementation choices have to justify themselves like anything else.

The second half of the discipline is being explicit about decision rights. For every consequential action, somebody or something must be identified as having authority to recommend, decide, execute, verify, override and stop. Human review is itself a cost — it introduces delay, inconsistency and, worst of all, rubber-stamping. A human checkpoint has to earn its place exactly like any other control.

“The right human, in the right loop, for the right reason.”

And its corollary: if a human is in the loop, know why. If AI is out of the loop, know why.

Where It Got To

The system is in production and has been running the business's back office rather than demonstrating that it could:

  • ✓ Bank transaction categorisation, HST preparation and month-end close run as routine operations rather than as recurring projects
  • ✓ Human attention is concentrated on a small review queue instead of spread across every transaction
  • ✓ The rules base grows with every correction, so the same judgment is never requested twice
  • ✓ Reported figures are independently re-derived by a separate agent before anyone relies on them
  • ✓ The framework has become the basis for the AI systems we build for clients — tested on our own operations first

The honest summary is that the AI is the least interesting part. What makes it work is the allocation of authority around it.

Technology

Python PostgreSQL Claude API Ollama (local models) Model Context Protocol Microsoft Graph QuickBooks API AI Process Engineering

Want this shape of system in your business?

If you have back-office work that is necessary, repetitive and quietly expensive — and you want AI applied to it with real controls rather than blind trust — let's talk about how it would look for you.