An AI maintenance layer for property portfolios that takes a tenant email from inbox to dispatched work order in under 30 minutes, handling 60 to 85% of requests without a human touching them. The harder and more valuable part is the eval system that proves the agent works and blocks bad changes before they ship.
The problem
A 500-unit portfolio gets 30 to 50 maintenance emails a day, mixed with rent questions, lease disputes, spam and noise complaints. Done badly by AI it is worse than nothing: a missed water-damage flag floods the unit below, and a wrong unit number sends a vendor to the wrong door.
What I built
A LangGraph pipeline that filters out non-maintenance mail, extracts unit, issue and duration, classifies category, urgency and risk flags, routes the request, and picks a vendor from the client's approved list by trade and zone
When something critical is missing, it emails the tenant, pauses, and resumes when they reply
High-stakes judgments are model calls. Things that must never be guessed, like which vendor or what the database says, are plain code. Tools that change data sit behind an MCP server
How I know it works
Read every trace by hand before writing any grader, then grouped failures into named modes and tagged each to a root cause
Code graders first, LLM judges only for subjective calls. The urgency judge started at TPR 90% / TNR 53% (it was approving wrong answers). After fixing its rubric it reached TPR 95% / TNR 93% on the dev split
A CI gate on every pull request blocks a change if any code grader drops 10% or the overall rate drops 5%. It reads its baseline from main, so a change can't move its own goalposts
Trace review during a DSPy experiment caught 13 mislabeled records in the dataset
Choosing a model
A cost and latency bake-off through a LiteLLM gateway found gpt-4o-mini about 15x cheaper per correct triage than Gemini 3.5 Flash at similar quality. It also caught a runaway vendor-search loop caused by an empty vendor table, and a reasoning setting that quietly raised cost about 100x.
This is a public view of a customer project. The agent and eval harness are real and runnable. The customer data and final calibrated numbers are not included.
Stack
Python, LangGraph, FastAPI, Postgres, MCP (FastMCP), LiteLLM, OpenAI, Langfuse, DSPy, GitHub Actions, Docker
0 likes · 0 views · Dec 1, 2026
A LangGraph agent that turns tenant emails into dispatched work orders, backed by validated LLM judges and a CI gate that blocks regressions.