All AI Use CasesAI Use Case · Property Management

Invoice Processing Automation for CRE: Vendor PDFs to a Yardi-Ready Export

John Paul Elias built CRE-Agent, an open-source tool that takes commercial real estate vendor invoices from PDF to a Yardi-ready export. The model only reads the invoice. Code checks every number, and nothing exports until a person signs off.

By CRE AI Studio Editorial · Nov 30, 2026 · 7 min readAI-assisted draft, checked against the creator's original post.
Short answer: In CRE-Agent, invoice processing automation runs in five steps: route each vendor PDF to text or vision extraction, pull the line items with an LLM, check quantity times unit price, the subtotal and the total with exact Decimal math (within $0.02), suggest a GL code from a CRE chart of accounts, and lock the Yardi CSV until a person approves it. Anything that fails a check is marked NEEDS_REVIEW.
Workflow by John Paul Elias: five-step diagram for CRE invoice processing automation. Step 1, route each vendor PDF: text PDFs go to structured extraction, scanned PDFs go to vision mode. Step 2, an LLM extracts vendor, line items and totals. Step 3, a Decimal math gate checks quantity times unit price, the subtotal and the total within $0.02, plus required fields and 90% confidence; anything off is NEEDS_REVIEW. Step 4, the tool suggests a GL code from a CRE chart of accounts and traces each call. Step 5, a person signs off before the Yardi CSV and audit JSON can export.
Workflow by John Paul Elias, summarized from his public LinkedIn post (Nov 28, 2026) and the CRE-Agent repo.

What John Paul Elias Built: Invoice Processing Automation From Inbox to Yardi

John Paul Elias, an AI and backend systems engineer, posted CRE-Agent on LinkedIn on Nov 28, 2026, and put the code on GitHub under an MIT license. It handles commercial real estate accounts payable, "specifically taking vendor PDFs from inbox to a Yardi-ready export without trusting an LLM to do the accounting math."

The work he set out to cut: reading vendor invoices for HVAC, roofing, landscaping and utilities, checking whether the numbers add up, mapping each one to the right general ledger (GL) code, and formatting batches for Yardi. His concern with handing that to a chatbot: "A model misreading a scanned digit or guessing a total breaks the whole batch." So the model does the messy reading, and "deterministic code and a human reviewer control everything that touches the ledger."

The Invoice Processing Automation Pipeline, Step by Step

  1. Route the PDF. PyMuPDF checks each invoice. Clean text PDFs go to fast structured extraction. Scanned or image-only PDFs escalate to vision mode, rendered as PNG pages (the repo caps this at 5 pages and 150 DPI).
  2. Extract the line items. A Python 3.13 FastAPI service sends the invoice to Gemini, OpenAI or Anthropic models, or to an offline mock provider for testing, and gets back structured fields and line items.
  3. Run the math gate. Decimal arithmetic checks that quantity times unit price equals each line total, that the subtotal is consistent, and that line items plus tax minus discount equals the amount due within plus or minus $0.02. Required fields must be present and extraction confidence must reach 90%. Any miss flags the invoice NEEDS_REVIEW.
  4. Suggest the GL code. The tool recommends a code from a CRE chart of accounts (5100 to 7100 in the sample). Every extraction and coding call is traced in Langfuse, or in local logs when no Langfuse keys are set, and a golden evaluation script tests the pipeline.
  5. Sign off, then export. A Next.js and shadcn/ui workbench shows the results. The export endpoint will not produce the Yardi CSV or the audit JSON until a person turns on approval.

Elias also describes it as built to plug into existing stacks: triggering runs from n8n, routing NEEDS_REVIEW alerts to Slack, and syncing vendor and invoice statuses into Salesforce, Yardi or other ERPs. Those are hookups the FastAPI service allows; the repo itself documents the API, the workbench and the export.

What the Invoice Processing Automation Test Run Shows

The repo's evaluation runs four sample vendor invoices that a script generates:

  • A clean text HVAC invoice: coded 6100, VALID.
  • A clean text roofing invoice: coded 6200, VALID.
  • A scanned, image-only landscaping invoice: sent to vision mode, coded 6300, NEEDS_REVIEW for confidence.
  • A utility invoice with a deliberate $150.00 mismatch: coded 6500, caught by the math gate as NEEDS_REVIEW.

These are generated test files, not a live portfolio. The repo doesn't report accuracy on real invoices, which is the first thing to measure on your own.

Why Invoice Processing Automation Needs a Deterministic Math Gate

"You can't afford silent hallucinations," Elias writes. A language model can read a messy invoice well and still get a digit wrong, and an AP batch has no room for a total that is almost right. Splitting the work keeps each part doing what it is good at: the model reads, code adds, and a person approves. The $0.02 tolerance covers rounding without letting a real error through, as the $150 utility sample shows.

The human gate sits in two places: the workbench and the export API itself. Even a script that calls the API directly can't pull a Yardi file before sign-off. As he puts it, effective automation in finance "eliminates 90% of repetitive prep work so reviewers only verify the output."

How an 800-Unit Property Manager Uses Invoice Processing Automation

Jason Brenizer (@jbrenizer) pointed to a working example on X on Nov 29, 2026. Ping Hsu owns Spotted Properties, an 800-unit property management company in Hamilton, Ontario. He told The Property Management Show that his team used to spend every Thursday processing invoices. Now they check the statements once, a virtual assistant makes sure no invoice was missed, and invoices take about two hours a week.

His portfolio is mostly residential (student rentals, single family and multifamily, with a small share of mixed-use commercial), but the AP problem is the same one Elias is solving. What Hsu describes:

  • The boring work first. AI answering phones didn't work for him. Moving data and paperwork between DocuSign, Google Calendar and QuickBooks Online did. He started by having Claude run administrative tasks and builds his own services with Claude Code, sometimes ChatGPT.
  • Invoices inside the maintenance flow. A request moves from diagnosis to vendor assignment, scheduling, quotes for the owner if wanted, tenant confirmation, the invoice turned into a bill, payment, and the cost on the owner's rental statement.
  • People still decide. AI picks a vendor and gives its reasoning, and a person approves or rejects it. His team members are the final approvers for work the agents produce.
  • Twenty tests before rollout. He runs 20 tests on a process, shows the team the results were consistent, then builds the process for everyone.

He told the show the AI workflows have cut about 55% of his team's work, and he suggests most property managers start with accounting, where he keeps hearing of too many invoices and too many checkpoints. Disclosure from the same episode: Hsu also founded Acel Cortex Solutions, which builds AI agents for property management back offices.

How to Try Invoice Processing Automation With CRE-Agent

The repo runs end to end without any API keys. Copy .env.example to .env, set LLM_PROVIDER=mock, and run docker compose up --build. The workbench opens at localhost:3000 and the API docs at localhost:8000/docs. python scripts/eval_pipeline.py --provider mock runs the four sample invoices. Swap in your own chart of accounts (app/data/chart_of_accounts.json) and a real provider when you test real invoices.

Elias didn't publish a chat prompt. If you want to try the same split by hand on a few invoices first, the prompt below is CRE AI Studio's, not his. It keeps the arithmetic in code rather than in the model's head.

CRE AI Studio prompt (not from the source post). Use redacted invoices and a tool that can run code, such as Claude with code execution.

I'm attaching vendor invoices for a commercial property and our chart of accounts.
1. For each invoice, extract: vendor, invoice number, invoice date, property, each line item (description, quantity, unit price, line total), subtotal, tax, discount and amount due. If a field is missing or unreadable, write MISSING. Do not guess.
2. Use code, not mental math, to check: quantity x unit price = line total for every line; the line totals add up to the subtotal; subtotal + tax - discount = amount due, within $0.02.
3. Suggest one GL code per line from my chart of accounts only, with a one-line reason. If nothing fits, write NO MATCH.
4. Mark each invoice VALID or NEEDS_REVIEW and list every reason it needs review.
5. Return one CSV row per line item and a short exceptions list. Do not post or pay anything; a person will review this first.

What to Check Before Invoice Processing Automation Touches Your Ledger

  • Your own accuracy baseline. Run a month of real invoices you already coded by hand and compare fields, totals and GL codes before you trust it.
  • The math stays in code. If a tool lets the model total the invoice, add a code check behind it.
  • Your chart of accounts. The sample uses codes 5100 to 7100. Load yours, and check how it handles splits across properties and recoverable versus non-recoverable expenses.
  • Scans. Image-only invoices are where extraction confidence drops. Expect more NEEDS_REVIEW on those.
  • Your Yardi import format. Confirm the CSV columns match the batch import your Yardi setup accepts before the first live export.
  • Approval and trust accounting. Keep a person approving every payment and owner statement, and follow the trust accounting rules where you operate.
  • Data handling. Vendor invoices carry bank and tax details. Know which model provider sees them, or test with the mock provider first.

FAQ: Invoice Processing Automation for CRE

What does invoice processing automation do with a vendor invoice?

In CRE-Agent it reads the PDF (text extraction for clean PDFs, vision for scans), pulls the vendor, line items and totals, checks the math with code, suggests a GL code from a CRE chart of accounts, and holds the Yardi CSV and audit JSON until a person approves the batch. Anything that fails a check is marked NEEDS_REVIEW.

Can AI do the math in invoice processing automation?

Elias's design says no. The LLM only reads the invoice. Python Decimal arithmetic checks quantity times unit price, the subtotal, and the total (line items plus tax minus discount) within $0.02. A missing required field or extraction confidence under 90% also sends the invoice to review.

Does invoice processing automation work with Yardi?

CRE-Agent produces a Yardi-ready CSV plus an audit JSON file, and the export endpoint refuses to generate either until human approval is switched on. Elias describes syncing statuses into Yardi or other ERPs as an integration option; the repo's documented output is the export file.

How much time can invoice processing automation save a property manager?

Ping Hsu of Spotted Properties, an 800-unit manager in Hamilton, Ontario, told The Property Management Show that invoice processing used to take his team a full day every Thursday and now takes about two hours a week of checking statements. CRE-Agent's repo reports results on four generated sample invoices, not on a live portfolio.

Want more AI workflows for CRE?

Join hundreds of CRE professionals learning AI through weekly lessons, live Q&A, and 24/7 founder access.

Cancel anytime.