Ovishatech logo
· Akshay Lokhande · 1 min read

How We Use AI for OCR: From Receipt to Structured Data

Inside the OCR feature we built into our own accounting workflow — what it extracts, how we keep it honest, and where it still needs a human.

Most "AI-powered" claims on software studio websites are marketing copy with nothing behind them. We wanted ours to be different, so before writing another word about our AI specialty, we shipped a real feature: OCR auto-fill on expense receipts inside our own admin panel.

The problem it solves

Every business has the same small tax on productivity: someone uploads a receipt, then someone else re-types the vendor name, the amount, and the date into a form. It's tedious, it's error-prone, and it's exactly the kind of task a vision-capable AI model is good at.

How it works

When a receipt image is attached to an expense record, a button appears: Extract with AI. Behind it:

  • The image is sent to a vision-capable model as a data URL, alongside a prompt asking for a strict JSON response — vendor, amount, date, category, and a confidence score.
  • We validate the response server-side. If the model invents a category that isn't one of ours, we discard it rather than pollute the data.
  • Nothing is auto-saved. The extracted fields show up as a suggestion card, and a human clicks Apply to confirm.

That last point matters more than it sounds. AI should accelerate data entry, not replace judgment — especially for anything that touches your books.

What we learned building it

The interesting engineering problem wasn't calling the model — that's a single HTTP request. It was everything around it: handling a model that wraps its JSON in markdown fences despite being told not to, deciding what happens when the image genuinely isn't a receipt, and making sure a failed request degrades to a clear error message instead of a blank screen.

If you're evaluating whether to add an AI feature to your own product, that's the real lesson: the model call is 10% of the work. The other 90% is making it trustworthy enough that people actually rely on it.

AIOCRProduct

Keep reading

All posts →
Have a project in mind?
Book a free strategy call