From inbox to system of record
- Intake: documents arrive by email, upload, scan or from another system.
- Classification: the system decides what each document is, because an invoice and a delivery note need different fields.
- Text recognition: optical character recognition (OCR) turns scans and photos into text. Digital PDFs often skip this step.
- Extraction: a model finds the values: supplier, invoice number, dates, line items, totals.
- Validation: rules check the result. Do the lines add up to the total? Does the purchase order exist? Is the supplier known?
- Review: anything that fails a rule or falls below a confidence threshold goes to a human review queue.
- Export: approved data goes to the accounting, ERP or transport system, linked to the original file.
OCR alone gives you text. IDP knows which text is the total and whether it makes sense.
Checks that matter more than the model
A confidence score helps decide what to route for review, but it is not proof. Cross-checks against your own records catch what a score misses. One rule worth having everywhere: if a known supplier's bank details change on an invoice, stop and confirm through a separate channel, because altered bank details are a common invoice fraud pattern. Matching an invoice to its order and its receipt is the idea behind a three-way match.
Arabic and English documents
In the Gulf, one document often mixes Arabic and English, right-to-left and left-to-right text, and both Western and Eastern Arabic numerals. Dates may follow the Hijri or the Gregorian calendar. Test extraction on real documents from your own suppliers in both languages, including poor scans and phone photos, before trusting any accuracy figure.
Common mistakes
- Judging a tool by a demo on clean sample files.
- No review queue, so errors flow straight into the ledger.
- Losing the link between extracted data and the original document, which auditors will ask for.
- Measuring nothing. Track the share of documents that pass without a touch, the correction rate per field and the time per document.
Read how we build document processing pipelines, and see accounts payable automation for one place they are put to work.