Skip to content
Cal Schramm

Agent demo

Same question. Two bots. Only one matches the dashboard.

Most AI data bots guess. They read raw tables, write SQL on the spot, and hand you a number that sounds right. Ask again and you get a different one. The agent I build reads certified data and follows written playbooks. Pick a question and watch both answer.

Example data

Mesa Ridge Supply is a made-up distributor. I built this data to show the pattern. It is not from any employer, and every company and customer name is invented.

Meet Mesa Ridge Supply

An industrial distributor with 3 warehouses, 240 customers and 400 products. Its CFO's dashboard is the official number. Let's see which bot matches it.

  • Warehouses in Phoenix, Denver and Dallas
  • 240 customers, 400 products
  • Q3 2026 net revenue: $9.18M

Pick a question

Official dashboard: $9.18MWhat the CFO's dashboard says for the same question.

Generic$10.57MGoverned$9.18MOfficial$9.18M

Generic bot

Writes its own SQL on raw tables

$10.57M

Revenue last quarter was $10.57M.

Off by +$1.39M (+15.1%) vs official

What went wrong

  • Counted cancelled orders

    No filter on status, so 184 cancelled orders worth $0.50M at list price stay in.

  • Used the wrong date

    Filtered on order_date. That measures orders booked, not revenue earned. $0.47M of September orders had not shipped yet.

  • Ignored discounts

    Multiplied by list price. Customer discounts worth $0.43M were never taken off.

  • Kept deleted lines

    Did not drop rows the ERP sync marked as deleted ($0.08M).

Show the SQL it wrote
SELECT SUM(l.qty_ordered * l.unit_price) AS revenue
FROM raw.erp_order_header h
JOIN raw.erp_order_line l ON l.order_id = h.order_id
WHERE h.order_date BETWEEN '2026-07-01' AND '2026-09-30'

Same question, asked again. Watch what changes.

Follow one number

Run 1. Generic bot answered $10.57M, +$1.39M (+15.1%) vs official. Governed agent answered $9.18M, matches the official dashboard.

What's under the governed agent

Three layers. None of them is exotic. Most companies skip them and go straight to the chatbot.

Certified data

Raw system data gets cleaned once, the same way, for everyone. Then it lands in a few certified tables, each with an owner and tests.

More

Raw, then cleaned, then certified. Data teams call these the bronze, silver and gold layers. The gold layer is what the dashboard and the agent read.

One definition per KPI

Revenue, on-time delivery, gross margin and inventory turns are each defined once. The dashboard and the agent use the same definition.

More

This is a semantic or metric layer. The agent asks for a metric by name. It never writes the math itself.

Written playbooks

Short instructions that tell the agent which certified metric answers which kind of question, and what never to do.

More

These are agent skills: plain text files the agent reads before it answers. When a question has no certified metric, the playbook says to stop and say so.

Why the generic bot drifts

  • It has to guess what revenue means. These tables allow at least four reasonable guesses.
  • Raw tables have traps: duplicate rows, voided invoices, three spellings of cancelled. One missed filter changes the answer.
  • Every time, it writes fresh SQL. Different SQL, different number.

Every answer, side by side

All five questions, every generic run, and the governed answer.

What was our revenue last quarter?

Generic: $10.57M · $10.14M · $9.42M

Governed: $9.18M

Official: $9.18M

What was our on-time delivery in Q3?

Generic: 64.2% · 97.3% · 42.7%

Governed: 85.9%

Official: 85.9%

What was our gross margin in Q3?

Generic: 30.9% · 28.1% · 27.9%

Governed: 27.1%

Official: 27.1%

How fast is our inventory turning?

Generic: 0.02 turns · 6.8 turns · 1.3 turns

Governed: 5.0 turns a year

Official: 5.0 turns a year

Who were our top 5 customers last quarter?

Generic: Apex Builders appears twice. Lone Star Facilities is missing. · Apex Builders Inc jumps to #1 with double its real revenue. · Apex Builders appears twice again, and every total is too high.

Governed: Front Range Controls, Apex Builders Inc, Granite Mechanical, Sonoran Fabrication, Lone Star Facilities

Official: Front Range Controls, Apex Builders Inc, Granite Mechanical, Sonoran Fabrication, Lone Star Facilities

What this means for a company

One version of the truth

The board deck, the ops review and the chatbot show the same number. The meeting goes to what to do about it, not whose number is right.

KPIs that cascade

One definition of on time, read at every level. The executive team sees 85.9% for the quarter. The Denver manager sees 81.4%. The Denver shipping lead sees 76.8% for September. Same rule, so the numbers roll up.

AI people actually use

When the answer is the same every time, people stop double-checking it and start acting on it.

One definition of on time, read at three levels. The numbers roll up, so nobody argues about whose number is right.

  1. Executive team

    85.9%

    Company, Q3

  2. Denver operations manager

    81.4%

    Denver warehouse, Q3

  3. Denver shipping lead

    76.8%

    Denver warehouse, September

I did the operating model half of this at Katerra. After several acquisitions in about a year, I coordinated and directed contractor teams with the COO so the company had one set of operational KPIs, from the executive team to the front line.

Read the Katerra story

I build this for real

At Axon I applied this pattern. I built a governed operations data warehouse, an MCP hub as the single entry point for agents, and an agentic ERP integration people use from ChatGPT, Claude and Cursor. This demo runs on made-up data. The pattern is the one I build.

Read the Axon story

Which numbers does your team argue about?

Tell me how your KPIs are defined today and where the numbers don't match. I'll tell you where I'd start.

Let's talk