Code RoomInvoice to purchase order matching
MediumPrep Room Coding #55

Invoice to purchase order matching

Vibe & agenticAI agents & automationMid–Senior~15 min

Month-end close drags because someone has to match every supplier invoice against its purchase order and chase the mismatches. Design an agent that does the matching — reading invoices from the inbox, pulling purchase orders from your accounting system, and flagging discrepancies in amount, quantity, or terms for a human to resolve. What does it get access to, what can it never approve on its own, and how would you verify its match accuracy? Finish by selling me the business case in a minute.

Implement
classify_invoice_match(po_number: str, invoice_total_cents: int, po_total_cents: int, invoice_quantity: int, po_quantity: int, is_duplicate: bool) → str
Examples
in["PO-1041",125000,125000,10,10,false]out"clean"
in["PO-1041",126500,125000,10,10,false]out"price-variance"
in["",50000,50000,4,4,false]out"missing-po"
What a strong answer looks like

Turn the fuzzy goal into a bounded agent task. Say what the agent reads, what it may do on its own versus draft for a human, and what it must never touch. Then earn the trust: how you’d verify it before rollout, and the pitch (the problem, what you built, why it matters).

0:00 of about 15 min

Agent build: design the agent in plain language (or narrate it). The coach grades the decomposition, the guardrails, the verification plan, and the pitch.

Which questions mattered is sealed until you submit. Telling you now would just be handing over the edge cases.