Skip to content
Silver Shark Sdn Bhd
AI automation8 min read

How AI Can Automate Document Processing

Reading a document and typing its contents into a system is one of the most common tasks in a Malaysian office, and one of the few where AI has clearly earned its place. The interesting part is not the model — it is the workflow you build around it.

Published

Every month a finance team opens several hundred supplier invoices, reads the supplier name, invoice number, date, tax amount, total and often the individual lines, and types them into an accounting system. The layouts differ by supplier. Some are PDFs, some are photographs of paper. The work is unpleasant, it does not scale, and errors are found later during reconciliation.

This is the clearest case for AI in a business workflow, because the difficulty is precisely the thing traditional software is bad at: reading a document whose layout you have not seen before.

Why templates were never enough

Older document capture worked by template: define where on the page each field sits, then read those positions. It works when documents are identical and breaks when a supplier changes their invoice layout, which they do without telling you. Maintaining templates for two hundred suppliers is its own full-time job.

Modern models read documents the way a person does — by understanding the content, not the coordinates. A model can find the invoice total on a layout it has never seen because it understands what an invoice total is. That is what makes the approach viable across many suppliers without per-supplier setup.

What the workflow looks like

The model is one step in a longer chain. The chain is what makes it trustworthy.

  1. 01Collection — documents arrive from an inbox, a watched folder, an upload page or a scanner, and are stored with their original file intact.
  2. 02Extraction — the model reads each document and returns structured fields, with a confidence signal per field rather than one score for the document.
  3. 03Business rule checks — does this supplier exist, does the purchase order match, do the line items sum to the total, is the tax calculation correct? Deterministic code does this, not the model.
  4. 04Review queue — anything below the confidence threshold or failing a rule is shown to a person, source document beside extracted data, for one-click correction.
  5. 05Posting — approved records are written into the accounting or ERP system with the original document attached to the record.
  6. 06Feedback — corrections are recorded, so accuracy on recurring document types can be measured and improved.

Steps three and four are where most of the engineering effort goes, and they are what separate a system you can run finance on from a demonstration.

The review step is the product

It is tempting to aim for full automation with no human involvement. For anything financial, that is usually the wrong target. A better design accepts that some proportion of documents need a human glance and makes that glance as fast as possible.

A well-designed review screen shows the document image and the extracted fields side by side, highlights the exact location each value came from, focuses the cursor on the uncertain field, and accepts a correction with a single keystroke. Reviewing a flagged document should take a few seconds, against a minute or more to key one from scratch.

What accuracy to expect

Be sceptical of quoted accuracy figures, including favourable ones, because they depend entirely on document quality and field type. Clean digital PDFs read far better than photographs of creased paper. Header fields like invoice number and total read more reliably than line-item tables. Handwriting remains genuinely difficult.

The only number that matters is the one measured on your documents. Any serious proposal should include a test against a representative sample of your real files — including the bad scans — with the resulting pass rate reported before you commit. If a vendor quotes an accuracy figure without having seen your documents, they are quoting someone else’s result.

Data handling

Business documents contain commercial and often personal information, which is subject to Malaysia’s Personal Data Protection Act. Three things should be decided explicitly during design rather than assumed.

  • Where processing happens — a commercial model provider under a business agreement that excludes training on your data, or a model running on infrastructure you control.
  • What is retained — how long documents and extracted data are kept, and where.
  • What is excluded — document categories that should never be sent for AI processing at all.

Is it worth it?

A rough test: estimate documents per month, minutes each currently takes end to end, and the cost of the errors you find later. Against that, weigh development effort plus a per-document running cost, since AI processing carries an ongoing charge that conventional automation does not.

In our experience the case is comfortable above a few hundred documents a month, marginal below a hundred, and much stronger when a person is spending most of a working day on it. Below that threshold, the honest answer is often to fix the input instead — asking your ten largest suppliers to send a structured file removes the problem entirely and costs nothing.

And if your documents are already structured and the rules are fixed, do not use AI at all. Conventional automation will be cheaper, faster and more predictable.

From reading to doing

Recognise your business in this?

If something here described your operation a little too accurately, that is usually a sign there is a straightforward first project available. Tell us which part, and we will tell you what it would take.