AI Document Processor: data extraction with human review
A sample case study designing an AI pipeline to extract invoices and tax withholdings into web tables with mandatory human review before saving.
Sample project designed to show our workflow. Not a client project.
Problem
A professional services firm receives dozens of invoice formats, tax withholdings, and contracts weekly, copying figures manually with high typo risks.
What we built
An AI-driven document extraction system with a split-screen web interface where humans inspect and approve data before it enters the database.
01. Business context
At accounting practices, corporate tax consultancies, and notary offices in South Tangerang and Jakarta, administrative paperwork arrives in heavy waves at the start of every month. Operational staff receive dozens of PDF files from clients and vendors encompassing commercial invoices, tax withholding slips (PPh 21 and PPh 23), scanned expense receipts, and legal agreement contracts.
The primary challenge is format heterogeneity. No universal template exists: some vendors attach crisp digital PDFs with structured tables, others send tilted or faded paper scans, and some transmit photos of paper receipts taken on mobile cameras under dim desk lighting.
We designed the AI Document Processor as a CHESTAADOTCOM sample project to evaluate how modern language models and computer vision can accelerate data ingestion without compromising financial accuracy. Our guiding principle was unyielding: speed gains must never sacrifice bookkeeping and legal integrity.
02. Problem
Manually copying figures from dozens of varied documents into accounting tables is grinding, repetitive labor. After reviewing fifteen consecutive documents, staff fatigue sets in, sharply elevating the likelihood of critical typing errors—such as transposing digits in a Tax Identification Number (NPWP) or adding an extra zero to an invoice subtotal.
Traditional Optical Character Recognition (OCR) software relying on rigid coordinate templates breaks easily. As soon as a vendor alters their logo placement or introduces a new discount row, template-based OCR misaligns values into completely wrong ledger fields.
Conversely, letting an AI model extract and write directly into production databases without human verification is a recipe for disaster. Generative models occasionally hallucinate, confuse transaction dates with invoice numbers, or misread faded numerals on low-resolution scans.
03. Approach
Our architecture enforces a human-in-the-loop workflow. The AI acts as an ultra-fast initial reader, while human professionals retain authority as quality control gatekeepers validating every extracted row.
We built a web review interface centered on a split-screen layout: the source document scan renders in the left pane with responsive zooming, while structured extraction fields sit immediately adjacent in the right pane.
Every extracted field displays a confidence indicator. If the model detects ambiguous source text or scores confidence below 95%, the system highlights that field in high-contrast yellow and snaps reviewer cursor focus directly to it.
The system offers one-click verification and keyboard shortcuts. Staff inspect extracted values in seconds, make inline edits if needed, and press approve to commit verified rows into the core database.
04. System flow
The document processing lifecycle proceeds through five sequential phases from digital receipt to audit storage. When ambiguous fields are identified, the pipeline prioritizes highlighted human review before records enter primary ledgers.
05. Implementation
To validate system resilience under real-world conditions, we tested the pipeline against more than one hundred heterogeneous document samples. These spanned clean digital PDFs, government-standard tax filings, faint thermal receipts, and skewed paper agreements.
On the frontend, we added comprehensive keyboard shortcut support. Reviewers navigate between fields using the Tab key, approve rows with quick key combinations, and zoom scans without lifting their hands from the keyboard.
06. Design targets
All performance figures below are engineering design objectives evaluated during design simulation testing at CHESTAADOTCOM, not claims from commercial client deployments.
- Uncertain data markers: Always flagged (Confidence scores < 95% highlighted in yellow for review)
- Human approval gate: Mandatory approval (0 rows committed to final tables without a staff click)
- Audit correction trail: 100% recorded (Tracks reviewer identity, original AI text, and timestamp)
07. Design notes
Amid widespread AI hype, the easiest trap for software engineers is promising complete hands-off autonomy. In this sample case study, we consciously rejected that promise.
In legal, accounting, and tax contexts, the real-world cost of fixing a faulty entry that slipped into tax filings is exponentially higher than the twenty seconds a staff member takes to inspect a split-screen view.
We intentionally designed low-confidence field alerts with prominent yellow highlights that cannot be overlooked. This visual cue prevents rubber-stamping by actively directing the reviewer’s attention to items requiring genuine judgment. Every adjustment is recorded in an immutable audit log, ensuring complete accountability if external audits occur.