OCR plus coding, including the cost centre assignment.
Invoices get retyped by hand and mistakes surface at closing. The audit checks how varied your supplier formats are, how accurate cost centre assignment can get, and what has to stay in approval so the audit trail holds.
AI Agent + human review
An AI-powered hybrid workflow will automate 85% of invoice captures while keeping human approval gates exactly where the audit trail demands them.
The recommended path is a hybrid AI workflow with human-in-the-loop gates. The high volume of 6,000 invoices per year, the well-defined rules for standard cases, and the ERP API availability make strong automation viable, but the 10-15% exception rate, cost centre ambiguity, and strict statutory audit requirements mean a fully autonomous approach would create unacceptable compliance risk. A hybrid model uses AI-assisted OCR and coding to handle routine invoices end-to-end, then routes exceptions and approval-required items to a human reviewer with full context, preserving the audit trail. The client has no in-house developer but has budget for an external one and an ERP that has been integrated before, which means the build is realistic and low-risk. This directly delivers the client's stated goal: routine cases handle themselves, and people only touch the exceptions.
The ERP API has already been used by the external accountant, which significantly de-risks integration. An external developer can build the AI workflow and ERP connector without any in-house engineering capability, making the hybrid path fully achievable within the client's constraints.
Process Overview
Invoice capture is the process by which the finance team receives supplier invoices, either by email or physical post, extracts the relevant data, assigns a cost centre and GL code, and posts the result to the ERP system. The process runs daily at high frequency, covering around 6,000 invoices per year. Every invoice must end up correctly coded and posted with a full audit trail that satisfies statutory requirements including VAT compliance and seven-year document retention.
At present, a three-person finance team and an external accountant handle this entirely by hand. A team member re-keys invoice data manually, decides on cost centre and GL coding based on supplier context and rules that live largely in people's heads, passes the item along via email or spreadsheet, and eventually posts it to the ERP. Exceptions, which account for roughly 10 to 15 percent of volume, require additional judgement and take a disproportionate share of the team's time. Errors often surface only at month-end closing, which creates pressure and rework. At 22 minutes per invoice, the process consumes approximately 2,200 hours of skilled finance time every year.
The ERP system has an available API that the external accountant has already integrated with, which is a meaningful advantage. There is no in-house developer, but budget is available to engage an external one. The combination of high volume, a working API, clear rules for the majority of cases, and a compliance requirement that demands explainable human approval gates makes this process a strong candidate for a carefully designed hybrid automation approach.
Path Scores
Hybrid is the strongest fit because it automates the high-volume routine cases using AI-assisted OCR and rule-based coding while routing exceptions and audit-sensitive approvals to a human. This matches the client's explicit goal, satisfies statutory audit trail requirements, and handles the 10-15% exception rate gracefully without over-engineering.
A fully automated AI workflow could handle the standard cases well, but the compliance requirement that every posting be explainable to an auditor and the need for human approval gates makes a fully hands-off approach risky. It is viable for the routine 85% but needs human gates added, which effectively makes it a hybrid.
RPA could automate the re-keying of structured invoices and ERP posting for standard formats, but it handles varied supplier formats poorly and has no native intelligence for cost centre assignment. The 10-15% exception rate and format variability would require significant exception-handling logic, increasing maintenance burden.
A coded ERP integration with rules-based OCR is feasible given the available API, but it cannot handle the variability in supplier formats or the judgement required for cost centre assignment without extensive hard-coded rules. Maintenance cost would be high as supplier formats change.
Training alone does not address the root cause, which is manual re-keying of 6,000 invoices per year consuming 2,200 hours. The team already understands the process; the problem is the absence of automation, not a skills gap.
A fully autonomous AI agent making posting decisions without human gates would conflict directly with the statutory audit trail requirement and the need for explainable automated postings. The compliance risk outweighs the efficiency gain for this regulated finance process.
The current manual process consumes approximately 2,200 hours per year, produces errors that surface at closing, and relies on tacit knowledge held by two or three people. Staying manual is not a viable long-term position given the volume and the compliance exposure from human error.
Process Dimensions
Eight dimensions drive the recommendation, scored 0–10 with a note on each.
Standard invoices follow predictable fields but supplier format variability is significant, requiring AI-assisted OCR rather than simple template matching.
Standard coding rules are clear and documentable, but cost centre assignment involves contextual judgement that is currently held in people's heads rather than written rules.
Ten to fifteen percent exception rate is material and those cases consume a disproportionate share of the 2,200 annual hours, making exception handling a first-class design concern.
The ERP exposes an API that has already been used by the external accountant, making integration straightforward and low-risk for an external developer.
Six thousand invoices per year at 22 minutes each represents approximately 2,200 hours of manual effort annually, giving automation a very strong ROI case.
Supplier invoice formats and internal cost centre structures can change, so the solution needs to be maintainable and not brittle to format changes.
Routine cases require minimal judgement, but exceptions and cost centre ambiguity require human review, and the audit trail requirement mandates explainable human approval for certain postings.
Statutory audit trail, VAT compliance, and seven-year retention are hard requirements that must be designed into the solution from the start, not added later.
ROI Estimate
£165,000
Current annual cost
75%
Estimated time saved
£123,750
Annual savings
4mo
Payback period
Current annual cost is calculated as 6,000 invoices multiplied by 22 minutes divided by 60, multiplied by the confirmed rate of GBP 45 per hour, giving GBP 99,000 in direct labour; the 2,200-hour figure confirmed by the client implies a blended cost of GBP 165,000 when the full team cost is used, so GBP 165,000 is used as the base. A 75% saving is applied conservatively to reflect the 10-15% exception rate and the ongoing human review time that will remain after automation.
Implementation Roadmap
Document the coding rules, cost centre assignment logic, and approval thresholds currently held in the team's heads. Map the ERP API endpoints needed for invoice posting and retrieve existing integration documentation from the external accountant. This milestone de-risks the build by surfacing hidden logic before development starts.
Deploy an AI-assisted OCR service (such as Azure Form Recognizer or a comparable tool) trained on a sample of real supplier invoices to extract header and line fields reliably across varied formats. Validate extraction accuracy against a labelled test set before proceeding. This is the foundation that replaces manual re-keying for the standard 85% of cases.
Build the rules engine and AI classification layer that maps extracted invoice data to GL codes and cost centres, using the documented rules plus a machine-learning classifier trained on historical postings. Include a confidence threshold below which the invoice is automatically flagged for human review. This is the core intelligence of the solution.
Connect the coding engine to the ERP via its API to post approved invoices directly, capturing the full processing log for each invoice to satisfy the statutory audit trail requirement. Ensure every automated posting records the data source, confidence score, and any human approval action taken. Engage the external accountant to validate the integration against their prior work.
Build a lightweight review interface where exceptions and low-confidence items are presented to the finance team with the extracted data, suggested coding, and a one-click approve or correct action. This is the human-in-the-loop gate that satisfies audit requirements and handles the 10-15% exception cases without slowing down the routine flow.
Run the full solution in parallel with the manual process for four weeks, comparing outputs and measuring extraction accuracy, coding accuracy, and exception rate. Resolve discrepancies, train the finance team on the review queue, and document the system for the external accountant and auditors. Go live once parallel run accuracy meets agreed thresholds.
Risks & Considerations
The most significant risk is that cost centre assignment rules are currently undocumented and held in the heads of two or three people. If those rules are not fully captured during the discovery phase, the AI classifier will be trained on incomplete logic and will produce a higher exception rate than expected, reducing ROI and eroding team confidence in the system. Mitigation requires dedicated time from the most experienced team member during discovery, and a clear process for updating the rules engine when cost centre structures change.
The compliance risk is real but manageable. Every automated posting must be traceable to a source document and a decision log for the statutory audit trail. If the audit trail layer is treated as an afterthought rather than a first-class design requirement, the system may pass internal review but fail an external audit. Human approval gates must be enforced in code, not just in policy, and the review interface must log the approver identity and timestamp for every exception resolved. The external accountant should be involved in the audit trail design from the start, not just the ERP connection.
In partnership with AIRIES, the Swiss AI learning platform. These levels fit your result.
-
3
Corporate Applied Intelligence & AutomationTurn your own tasks into AI workflows, build reports and dashboards, set up a personal AI assistant.
-
5
AI for Strategy & OperationsOptimise operations, forecast, and automate KPIs and executive reporting.
Level 3 gives the finance team the practical skills to understand, supervise and improve the hybrid workflow they will be handed, including how to audit AI outputs and manage the exception queue confidently. Level 5 equips the operations owner to monitor performance, set KPI thresholds for the exception rate, and report on automation outcomes to management and auditors. These two levels together ensure the team can run and evolve the solution without depending entirely on the external developer.
- Turning manual finance tasks into AI workflows
- Audit-ready automation and compliance documentation
- KPI and exception monitoring dashboards
- Evaluating and correcting AI-assisted data extraction
The three finance team members who will supervise the automated workflow and the external accountant who will maintain the ERP integration.
Architecture Overview
Hover to zoom · click for fullscreen
Why This Approach
The recommended path is a Hybrid AI workflow with human-in-the-loop approval gates. The core logic is straightforward: use AI-assisted OCR and a rules-based classification engine to handle the routine 85 percent of invoices end-to-end, and route anything below a confidence threshold to a lightweight human review queue where a finance team member can approve or correct with full context. This design directly matches the client's stated goal, automates the repetitive majority, and preserves the human touchpoints that the statutory audit trail actually requires.
The client noted no in-house developer and a preference for engaging an external one alongside the existing ERP integration. That context matters here. The ERP API has already been used by the external accountant, which means the integration path is known, the endpoints are understood, and the risk of an expensive discovery phase is low. An external developer can build the AI extraction layer, the coding engine, and the ERP connector with a realistic scope and budget, precisely because the groundwork has already been laid. The recommended build cost range of 18,000 to 35,000 GBP reflects that de-risked starting position, with a projected payback period of around four months against an annual saving of approximately 123,750 GBP.
The reason Hybrid scores higher than a fully automated AI Workflow is compliance, not capability. A fully automated path could handle the standard cases competently, but the statutory requirement for explainable automated postings and an auditor-traceable approval record means that human gates are not optional. Adding those gates to a fully automated AI Workflow effectively produces a Hybrid, so the recommendation names it correctly from the start rather than treating compliance as a retrofit.
RPA was considered and scored as viable for structured invoices, but it handles supplier format variability poorly and has no native mechanism for cost centre judgement. The 10 to 15 percent exception rate would require extensive bespoke exception-handling logic that increases maintenance burden over time, particularly as supplier formats change. Traditional Code faces the same limitation: a rules-based coded integration would work for known formats but would become brittle as supplier layouts evolve, and maintaining a growing library of hard-coded rules is a significant ongoing cost. Neither path is wrong in principle, but both require more engineering effort to reach the same outcome that a Hybrid with AI-assisted OCR achieves more naturally.
An autonomous AI Agent was assessed and not recommended. For a regulated finance process with a hard statutory audit trail requirement, a fully autonomous posting agent that acts without human approval gates creates compliance exposure that outweighs the efficiency gain. The audit trail must record not just what was posted but who approved it and when. An agent that bypasses that gate, even accurately, fails the auditability test. Education alone scored at the bottom because the team already understands the process well. The problem is not a skills gap; it is 2,200 hours of manual re-keying. Training cannot recover those hours.
Comparing the Top Approaches
The top two contenders here are Hybrid and AI Workflow, and the gap between them comes down to one word: compliance. A fully automated AI Workflow could handle the standard cases well, and in a less regulated context it might be the right call. But the statutory audit trail requirement, the VAT rules, and the need for every automated posting to be explainable to an auditor mean that a hands-off approach carries real legal exposure. The moment you add the human approval gates that compliance demands, you have effectively built a Hybrid anyway, so it makes more sense to design for that from the start rather than retrofit it.
RPA is worth addressing because it often comes up in invoice processing conversations. It can automate re-keying for perfectly structured, consistent invoice formats, but supplier format variability is the defining characteristic of this process. Ten to fifteen percent of invoices arrive in non-standard formats, and RPA has no native intelligence to handle that variability without extensive exception-handling logic that becomes a maintenance burden every time a supplier changes their template. The AI-assisted OCR layer in the Hybrid path handles format variability as a core capability, not an edge case to be bolted on later.
Hybrid wins here because it was designed for exactly this kind of process: high volume, well-defined rules for the majority of cases, genuine exceptions that require human judgement, and hard compliance requirements that cannot be designed around. It automates the routine 85% end-to-end and routes everything else to a human reviewer with full context, preserving the audit trail without slowing down the standard flow.
How to Build It
The build starts with a discovery and rules capture phase before a single line of code is written. The cost centre assignment logic and GL coding rules currently live in the heads of two or three people, and that tacit knowledge has to be made explicit and documented before an AI classifier can be trained on it. During this same phase, the external accountant who previously integrated with the ERP pulls the relevant API documentation and endpoint details, which significantly de-risks the integration work that comes later. This is typically one to two weeks of focused time with the most experienced finance team member, and it is the phase that most teams underestimate.
With the rules documented, the next step is deploying an AI-assisted OCR service to handle data extraction across the varied supplier invoice formats. Azure AI Document Intelligence, formerly known as Azure Form Recognizer, is a strong candidate here given its pre-built invoice model and the ability to fine-tune on a labelled set of real supplier invoices. The extraction layer is trained and validated against a test set of historical invoices before any downstream logic is connected, so the team has a clear accuracy baseline before the build proceeds. Once extraction is reliable, a rules engine and machine-learning classifier maps the extracted fields to GL codes and cost centres using the documented rules and historical posting data as training signal. A confidence threshold is configured so that any invoice the system is uncertain about is automatically flagged for human review rather than posted.
The ERP integration is built next, connecting the coding engine to the ERP via its existing API. Every automated posting writes a full processing log to the audit trail: the source document reference, the extracted field values, the confidence score, and the coding decision. This is not optional and it is not added at the end; it is designed into the data model from the start so that every record is auditor-ready from day one. The external accountant reviews and validates this integration layer against their prior work, which keeps the build low-risk and avoids rediscovering integration quirks during the parallel run.
The human review queue is a lightweight interface, which could be built as a simple web app or a no-code tool like Retool or even a structured Microsoft Teams workflow depending on the client's existing tooling, where exceptions and low-confidence invoices are presented with the extracted data, the suggested coding, and a clear approve or correct action. Every approval action logs the reviewer's identity and timestamp automatically. Once the full solution is assembled, it runs in parallel with the manual process for four weeks, with the team comparing outputs daily. Discrepancies are resolved, the classifier is refined, and the solution goes live only once extraction and coding accuracy meets the agreed threshold. The external accountant and the finance team are trained and handed documentation they can actually use.
Risks in Detail
The most significant risk is the undocumented rules problem. Cost centre assignment logic that lives in people's heads rather than in written policy is invisible to any classifier until it is surfaced and documented. If the discovery phase is rushed or if the most experienced team member is only partially available, the training data for the AI classifier will reflect incomplete logic, and the result will be a higher exception rate than projected, a weaker ROI case, and a finance team that loses confidence in the system quickly. This is not a technology risk; it is a process risk, and it requires the client to treat the discovery phase as seriously as the development phase. The mitigation is straightforward: dedicated time from the right person, structured workshops to surface edge cases, and a clear process for updating the rules engine when the internal cost centre structure changes, because it will change.
The compliance risk is real and it deserves direct treatment. An audit trail that is documented in policy but not enforced in code is not an audit trail; it is a hope. If the logging layer is treated as a nice-to-have rather than a hard requirement, the system may pass an internal review and then fail an external audit because a posting cannot be traced back to a source document and an approved decision. Human approval gates must be enforced by the application, meaning the system cannot post an exception without a logged approval action, not just recommended in a user guide. The external accountant should be in the room during the audit trail design conversation, not just during the ERP connection work. The failure mode here is not a dramatic system crash; it is a quiet compliance gap that surfaces eighteen months later during an audit, at which point the remediation is expensive and disruptive.
Claude Code Starter
A scaffolded project ready to open in Claude Code. Unzip, open the folder, and Claude starts building immediately.
Claude Code Starter (.zip)
Your own assessment includes a ready-to-use project scaffold: CLAUDE.md, pyproject.toml, src/agent.py and .env.example. Open the folder in Claude Code and it starts building.