What it does
Invoice Processing replaces the daily grind of keying vendor invoices into an ERP by hand. You supply the invoice batch and the matching purchase orders — paste them, or fill the guided form — and it extracts every line item, three-way matches each invoice against its PO, assigns a cost centre and GL account code, cross-checks VAT against the computed figure, and prepares DRAFT ERP vendor-bill records plus routed approval requests for you to export. You do not have to run the whole pipeline to get one answer. Each step is its own tool. Ask "is the VAT right on these?" and it runs `check_vat` alone. Ask which invoices disagree with their purchase orders and it runs `match_to_purchase_orders`. `run_full` is there as the orchestrated path for a whole folder, but it is one option rather than the only door. Every number is computed deterministically. The analyzer derives each line amount, subtotal, VAT and total, performs the match, assigns the coding and flags the exceptions — no model call is involved in any of it. The language model narrates the exception summary and nothing else; it never invents an amount, a vendor or an account code. Vendor names and invoice descriptions are sanitised before they reach the prompt, because invoice text is written by third parties. An exception carries the reason, not just a flag: "invoice net 8000 versus PO 7000", with a severity, so a reviewer can act without opening the source document. The guardrail is structural rather than advisory. The agent has no payment authority and no live-system access. Every ERP record is emitted with draft status and every invoice is routed to a human approver — there is no code path that pays or posts anything. This is a provided-data agent by design. There are no connectors and no credentials to configure: it works on the batch you give it and sends nothing to any external system. Built for AP specialists and accountants processing invoices in volume.
Example prompts
- Process this month's invoice batch against our purchase orders
- Is the VAT correct on these invoices?
- Which invoices do not match their purchase orders?