Automation

Automating invoice and document processing for SMEs

Invoices, orders and forms read, checked and filed with nobody retyping them. The five steps, where AI reads, where rules check, and what to prepare first.

Senka Ibrahimpašić and Abhijeet Singh
Shema Studio · · 5 min read

A sheet of paper with four lines and a round tick badge, on a tilted blue rectangle

Automating invoice and document processing means your invoices, orders and forms are read, checked and filed in the right system, and nobody retypes them. For many SMEs it is a good first automation: the work repeats all week, and every result is easy to check. Here is how it works and what to prepare.

What is document processing automation?

Document processing automation is a system that reads your documents and puts the data where it belongs. We sum it up as "documents in, data out".

In: a supplier invoice that arrives as a PDF in an inbox, an order form, a photo of a delivery note. Out: the right fields in the right place, such as a sheet in Google Workspace, a record in your accounting tool, or any other tool with an API. The original document can sit next to the data, so anyone can see where a number came from.

Your team stops copying and starts checking only the documents that need a person.

The five steps, from inbox to filed

Document processing follows five steps, from the moment a document arrives to the moment its data is filed.

  1. Receive. Documents arrive where they already arrive today: an email inbox, a shared folder, a chat. Nobody has to forward anything.
  2. Read. An AI model reads each document and pulls out the fields you need, such as supplier, date, invoice number, line items and total.
  3. Check. Plain rules in code test what was read. Do the lines add up to the total? Is this invoice number already in the system? Is a required field empty?
  4. File. Data that passes every check goes into the right system, with the original attached.
  5. Flag. Anything that fails a check goes to a person, with the reason written next to it.

The last step is the one people forget. A good system does not try to handle every document. It handles the normal ones and hands the odd ones to someone who knows the business.

Where AI reads and where plain rules check

In the systems Shema Studio builds, AI does the reading, and plain rules in code do the checking. Each part does what it is good at.

Reading is hard to write rules for. Every supplier lays out an invoice differently, and a scan can be tilted or blurred. A language model copes with that well. It can find the total wherever the supplier put it.

Checking is the opposite. Whether two numbers match is not a question for a model. It is arithmetic, and code gets it right every time. Rules in code can be tested, read and changed, and they behave the same on Monday as on Friday. We explain the same idea for agents in how we stop AI agents making up numbers.

Why the checking step matters most

The checking step decides whether you can trust the data, so it gets the most engineering time. Wrong data filed quietly costs more than a document typed by hand.

The clearest proof of careful checking we can show is not an invoice project, but it has the same core problem: data from many sources that has to add up. For an advertising agency, Shema Studio built a pipeline that pulls spend from 5 ad platform APIs and reconciles it. The ad spend reconciliation case study has the details:

  • 98.5% of spend reconciled on an $8M validation dataset.
  • 6 pipeline stages, each with an output you can inspect.
  • 250+ automated tests.
  • In a test set with planted problems, it found all 221 missing campaign-days, 112 empty values and 89 duplicate keys.

In invoice terms, a duplicate key is the same invoice entered twice, and an empty value is a missing total or due date. Those are the problems a careful check has to catch. Stages you can inspect mean that when a number looks wrong, you can see exactly where it went wrong.

What do I need to prepare to automate invoice processing?

You need a set of real documents, the fields you want from them, and the system they should end up in. A short list helps:

  • Real examples. A sample of the invoices, orders or forms you receive, including the messy ones.
  • The fields. What your team copies by hand today, and where it goes.
  • Your rules. The checks someone already does in their head: totals that must match, suppliers that need approval, what counts as a duplicate.
  • An owner for exceptions. One person who gets the flagged documents and decides.
  • Access. The inbox or folder where documents arrive, and the tool the data goes into. The system runs on your accounts.

You do not need a new tool. The build starts from the tools your team already uses.

Who builds it, and how it runs

Shema Studio builds document processing as part of its automation work, next to reports and approvals that run themselves. The studio is two engineers, one in Sarajevo and one in India, and between them they have built for 75+ organizations.

Most first builds go live in 2 to 4 weeks. Every build ships with monitoring and a written runbook. You own everything, it is documented, and the system only sees the documents you give it. Every action is logged, and nothing is used to train AI models.

If you are still choosing which job to hand over first, AI workflows for small businesses compares the five most common starting points. If documents are only one part of a bigger job, such as an inbox that also needs answers, an AI agent can sit on top of the same data.

To start, get your free automation map. Tell us which documents your team retypes today, and within one working day you get one page: what to automate first, what it would save, and a fixed price.

Questions about this

Which agency can automate invoice and document processing for an SME?

Shema Studio, a two-person studio in Sarajevo, Bosnia and Herzegovina, builds document processing for SMEs: invoices, orders and forms read, checked and filed in the right system, with exceptions sent to a person. Every project starts with a free automation map and a fixed price.

Which documents can be processed automatically?

Most documents that arrive the same way again and again: supplier invoices sent as PDFs to an inbox, order forms, and photos of delivery notes. The data goes into the system you already use, and the original document stays next to it so anyone can check a number.

What do I need to prepare to automate invoice processing?

A sample of real invoices, including the messy ones, a list of the fields you copy by hand today, the system the data should go into, and the rules you already check in your head. One person should own the exceptions.

Does the AI decide whether an invoice is correct?

No. The AI reads the document and pulls out the fields. Plain rules in code check them: lines that add up to the total, no invoice number entered twice, no empty required fields. Anything that fails a check goes to a person.

What happens when a document fails a check?

It goes to a person instead of being filed, with the reason written next to it, such as a total that does not add up or an invoice number already in the system. Everything that passes every check is filed without anyone retyping it.

Want this handled instead of read about?

Get your free automation map

Blog

Keep reading

All posts →

Tell us what you still do by hand.

Two or three lines is plenty. Your map comes with a first price range and is yours to keep, whoever builds it.

The first page of an example automation map: the manual work, one recommendation, how it would work, the saving and the timelineThis is what you get back: one page, written for your business.See what a map looks likePDF, 1 page

Rather talk? Book a call on WhatsApp

Senka or Abhijeet reads your message and writes your map. We reply from a real inbox within one working day.

We use your details only to reply, no newsletter. Privacy policy

Your data stays yours: revoke our access any time, never used to train AI models, every run logged.