Skip to content
Nextlink EXIMSoftware engineering & AI agents
All work

Distribution, 40-person finance teamShowcase project

Turning 1,200 supplier invoices a month from email into ERP entries, with a review queue

An automation that reads supplier invoices arriving by email, extracts and validates line items against purchase orders, posts matched invoices to the ERP, and queues exceptions for a person.

1,200+

invoices a month processed

81%

posted with no human touch

~110 h

finance hours saved monthly

Services
Workflow automation, AI integration, Backend
Stack
Python · FastAPI · Postgres · Google Workspace API · Tally / SAP connector · Anthropic
Duration
5 weeks

The problem

Supplier invoices arrived as PDF attachments in a shared mailbox. Two people spent most of their week typing them into the ERP and matching against purchase orders.

Errors were common: wrong GST amounts, duplicate entries, invoices posted to the wrong cost centre.

Month-end closing slipped regularly because the backlog grew in the last week.

How it fits together

  1. Shared mailbox
  2. Extract (LLM)
  3. Validate + match PO
  4. Post to ERP
  5. Review queue
Anything that fails validation is reviewed by a person before posting.

What we did

Deterministic first, LLM second. Email ingestion, duplicate detection and PO matching are plain code. The language model only handles the step code is bad at: pulling structured fields out of hundreds of invoice layouts.

Every extracted invoice is validated: totals must add up, GSTIN must be valid, PO must exist and have remaining quantity. Fail any check and it goes to a review screen with the PDF and the extracted fields side by side.

Posting to the ERP is idempotent and logged, so a retry never creates a duplicate.

We ran the system in shadow mode for three weeks alongside the manual process to measure extraction accuracy (99.2% on amounts) before letting it post anything.

What changed

81% of invoices post straight through; 19% land in a review queue that one person clears in about an hour a day.

Duplicate postings went to zero. Month-end close moved from day 6 to day 2.

Cost per invoice in model calls: under ₹1.

Next case study

A field-service SaaS with offline mobile app, built from scratch in 12 weeks

Have a similar problem?

Tell us about it. We'll share what we'd do differently the second time, and what it would cost.