AI at Build Time, Determinism at Run Time
2026-09-12
An agent at a real estate brokerage wants a flyer for a listing.
Before: they email marketing. Someone opens InDesign, swaps five photos and a price into a template that already exists, exports a PDF, emails it back. That happens for every flyer, every postcard, every brochure. The design work was done months ago. A person performs the substitution by hand, every time.
After: the agent fills out a form. The PDF comes back.
That’s the whole project in one example, and the interesting part isn’t the automation. It’s that the automation doesn’t call a model.
The Setup
Bosshardt Realty Services is a family brokerage in Gainesville, Florida — residential, commercial, property management, corporate relocation. I’ve been their fractional CTO since March, about ten hours a week.
Five things were true when I started:
The intranet was WordPress. Self-hosted. Patches, plugins, DNS, backups. It offered quick links and a marketing request form that dropped submissions into email.
Marketing ran on InDesign and human memory.
Nothing agents did was captured. Requests lived in inboxes. No record of what was ordered, by whom, for which listing, at what cost.
Salesforce was licensed but hollow. Left Main sat on top for back-office transaction management. Agents weren’t in it. They were never going to be in it.
Billing had drifted. Prices lived in several places. Accounting’s Print Log carried identical numbers in its “Total Charges (Marketing)” and “Total Charges (Agent)” columns — the format has two columns because the real process has allowances, and the system was filling both with the same number.
The Bet That Everything Else Hangs From
The brokerage needs its data in Salesforce. Agents need something fast and mobile that doesn’t require training.
Those are different requirements. Trying to satisfy both with one interface is how brokerages end up paying for licenses nobody opens and a CRM full of stale data.
So I split them. Agents use a portal built for agents. The portal writes to Salesforce. Nobody learns Salesforce. Nobody buys a seat for someone whose entire interaction with the company CRM is ordering a postcard.
A constraint fell out of this that I’d repeat anywhere: the portal never writes to the managed package. Left Main’s own transaction records stay under human control. A managed package is someone else’s contract, and automating writes into it turns their upgrade into my outage. The portal owns its custom objects and stops there.
The Flyer Doesn’t Need a Model
This is the part I’d argue with people about.
Swapping a photo and a price into a flyer template is not an AI problem. It’s a deterministic transformation. Paying per token to perform it on every request is a recurring bill for something a function does for free.
I used Claude Code heavily to build that function — the PDF region-mapping engine, the schema system, the billing logic, the test suite. The running system doesn’t call a model to render a flyer. It calls PyMuPDF.
The intelligence got spent once, at construction, instead of metered forever at execution.
There’s a version of this project where every flyer generation is an LLM call, the demo is more impressive, and the brokerage has a four-figure monthly bill for string substitution. That version is worse in every way that matters.
Twenty-eight request types now exist — flyers, postcards, brochures, seller’s guides, buyer’s guides, newsletters, signs, name badges, commercial mailers. Each is defined by a schema rather than a hand-built form. Adding one is configuration, not a new view.


The same schema idea drives the PDF generation. A designer builds a pixel-perfect template once, in the tool they already use. I map regions of that PDF — text, text boxes, images — to field values. The designer’s work is preserved exactly. The swapping is automatic.
Staff still see every request, and every submitted field is editable. Agents are doing their best; staff frequently need to fix formatting or add missing detail. That’s not a failure state, it’s the workflow.

Where AI Actually Earns Its Place
Three features generate text: agent bios, listing descriptions, and meeting agendas.
All three route through Conduct, the dispatcher I wrote about in April. Local model first, on hardware already paid for. Cloud as fallback, not default.
Listing descriptions are tuned per purpose, because a 220-character Just Sold postcard and a 1,400-character flyer are genuinely different writing tasks. The job metadata carries the purpose, the character budget, and the originating request type — so Conduct can route on it and score the result, rather than having the requirement buried in English inside a prompt.
That last bit took me a correction to get right. I had the character budget stated only in the prose. A router can’t read prose.
Spend is capped at $5 per agent per month, metered in dollars rather than in calls — Conduct is a router, and a job it forwards to a paid model spends real money that a call-counter scores as free. Free local work contributes nothing to the ceiling, so it’s effectively unlimited.
Two decisions there went the unobvious way.
AI cost is an input cost, and agents never see it. Like postage, or electricity, or labor. It’s a component of what a request costs the brokerage, not a line on an agent’s statement. An agent billed thirty-four cents for using a tool the brokerage asked them to use is a support call that costs more than the line item.
Running out pauses the work rather than billing for it. Every allowance has two properties: an amount, and whether you may spend past it. The postage budget bills the overage. The AI ceiling refuses the call. A ceiling that bills instead of stopping isn’t a ceiling.
Getting the Money Right
Rebuilding billing wasn’t on the brief. It became necessary once request volume made the existing approximations visible.
I separated two books. The price book is what things cost, and moves when a vendor requotes. The credits book is what the brokerage absorbs, and moves when partner compensation policy changes. A product can have a price and no allowance, or an allowance and no price. Conflating them is what produced the duplicate columns.

Allowances come in two shapes: counted (50 color sides per listing per month) and dollar-denominated (a $185 monthly postage budget). Consumption is derived, never stored — remaining balance is computed by summing what earlier requests covered, so there’s no running total to drift out of step with the charges themselves.
Doing this surfaced four live defects, each quietly mischarging for months:
| Defect | Effect |
|---|---|
| Seeded placeholder prices outranking real ones | Buyer’s guides billed at $120 instead of $15 |
| Postage priced in the catalog but never charged | 65% under-charge on postcards |
| Flat-charge path ignoring quantity | 250 postcards billed at three cents total |
| Requote dropping postage | Silent under-charge on every revision |
Volume doesn’t create defects like these. It makes them expensive.
I also moved when billing happens. A charge lands when a request is marked complete, not when it’s submitted. That matches how the marketing team already described their own process, and it fixes two things at once: a canceled request used to stay charged, and an instant deliverable whose PDF failed to assemble used to charge the agent for something they never received.

Agents see what was included, not just what they owe.

The Part That Compounds
Fifteen Salesforce custom objects now deploy from source control: transaction properties, transaction contacts, transaction tasks, task templates, client profiles, daily agent usage.
For agents, the effect is that data stops being re-entered. A listing’s address, price, beds and baths get captured once and reused by every request that needs them.
For the brokerage, the effect is larger and slower. There is now a historical record. What was ordered, for which listing, by which agent, at what cost, at which stage of which transaction. None of that existed. It’s the raw material for every operational decision they’ll want to make over the next five years, and it only accumulates if you start capturing it.
Transactions move through defined stages — listing side runs Listing Appointment through Closed, buyer side runs Buyer Consultation through Closed. Each transition generates the tasks that stage requires, from templates the brokerage controls. Agents don’t invent their own checklists.
The piece management actually cares about is the review layer. Completed tasks carry a Management Review state — Unconfirmed, Confirmed, or Missing Something — that lives in Salesforce only and that the portal never reads or writes. Managers review completed tasks at critical stages and confirm the work was genuinely done: the disclosure really was delivered, the signature really was collected.
That turns compliance from an annual audit that finds problems late into a routine check that catches them while they’re still fixable.
The Phone Is the Office
Realtors spend most of their working life out of the building, on a phone, between showings.
A web portal beats email. It’s still a thing you have to open.
So the portal exposes an MCP server. Agents connect it to Claude on iOS, or ChatGPT, or whatever assistant they already use, and manage their work conversationally from the car. Find a property. Submit an open house. Upload photos. Create a seller’s guide. Advance a transaction to its next stage.
It’s the same domain logic the web portal uses, not a parallel implementation. MCP is a second front door onto one system. That’s why it didn’t double the maintenance burden.
What I Didn’t Build
A Salesforce replacement. Salesforce is the system of record and stays that way. The portal is a front end with opinions.
A chat interface for everything. There’s a backlog item for an agent-facing chat assistant. It’s not built, because most of what agents need is a form that takes ten seconds, and a chat box that takes ninety is a downgrade dressed as innovation.
Automated writes into Left Main. Deliberate. Human review checkpoints stay human.
A document-processing platform. The PDF engine does one thing: map schema regions onto a template. It is not a general document-understanding system and doesn’t pretend to be.
Per-agent AI budgets. One number for everybody today. The plumbing resolves per user so it can become per-agent, but I’m not building the admin screen for a case that doesn’t exist yet.
Where It Actually Stands
The portal is live on Cloud Run with Google OAuth, and it replaced the WordPress site. Bios, profiles, notifications, ledger, agendas, open houses, and the Coming Soon listing site are all in production.
The marketing rework — request pipeline, price book, credits book, billing-at-completion, listing photos, listing descriptions, the AI ceiling — is built, tested, and deliberately held out of production pending user-acceptance testing with the operations and marketing leads.
That hold is a choice. The billing changes touch real money, and one careful UAT pass is cheaper than a rushed correction to somebody’s commission statement.
There’s also a production billing audit queued, to run in report mode before anything gets corrected. I’d rather know the size of the problem than discover it while fixing it.
Current state of the build: 1,775 tests at a 92% branch-coverage floor, enforced on every push alongside lint, a secrets scan, static analysis, a dependency audit, and a browser smoke test. That matters more with AI-assisted development, not less. Generated code is fast to produce and easy to over-trust. The gate is what converts speed into something you can deploy on a Friday.
What I’d Tell Another Brokerage
Split the agent experience from the system of record. Buying every agent a CRM license to capture data they’d rather not enter produces expensive, stale data.
Don’t automate the vendor’s managed package. Own your own objects.
Use AI to build the deterministic thing, not to be the deterministic thing. The most expensive architecture is one that calls a model every time a template needs a photo swapped.
Fix billing before the volume arrives.
And start capturing history on day one. The biggest long-term asset here isn’t the flyer generator. It’s six months and counting of structured operational data that didn’t exist before and couldn’t be reconstructed after the fact.
Screenshots show the application running against seeded demonstration data. No client or agent information appears in any of them.
If you’re running a brokerage with the same InDesign-and-inbox problem, or you’re doing fractional work and want to compare notes on where the AI actually belongs in a build like this, get in touch.