An invoice for $1,080 can become a perfectly formatted record for $1,000 if a model reads the subtotal instead of the amount due. Intelligent Process Automation (IPA) combines document recognition and language processing with the repeatable actions of Robotic Process Automation (RPA). The important design choice is what happens between reading and writing. This guide follows an invoice from intake to a verified draft in an enterprise resource planning (ERP) system: what the model may propose, what the software must check, and when a person must decide.
Governance first: Write down the action a bot is allowed to take. In this guide, the pilot may create an invoice draft for an existing supplier. It may not release a payment, change bank details, or approve its own exception. Name the business owner, review lead, and person authorised to pause the workflow before enabling writes.
The Root Mechanism: Let Models Read and Rules Govern the Write
When an approved system sends a structured invoice, a connector can validate and enter it without a model. A scanned invoice poses a different problem: someone must determine which printed number is the total, which date is the invoice date, and which supplier the document names. Use optical character recognition (OCR) to read the scan and natural language processing (NLP) where interpretation is needed. Treat their output as a proposal, not as a transaction.
Three questions determine the route. Answer them in order: a strong answer to the last one cannot cancel a “no” to the first.
What Automation Teams Often Get Wrong
The subtotal trap: A document shows a $1,000 subtotal, $80 tax and $1,080 total. Both $1,000 and $1,080 are valid monetary values. A type check accepts either. Checking the source label and reconciling subtotal plus tax against the proposed total catches the error on this invoice.
- Adding AI to a problem that rules already solve. A validated electronic invoice may need a field mapping, not OCR or an LLM. Compare against the simplest workable baseline.
- Treating a confidence score as permission. An OCR score may describe character recognition, not whether the text is the correct business field. A model’s self-reported “98%” is not a calibrated probability of a correct transaction.
- Calling a pilot successful because extraction is fast. Measure from receipt to a verified outcome, including review time, queue delays and rework. A faster reader can still feed a slower process.
- Testing only familiar layouts. Copies of the same invoice in development and test sets make results look better than they are. Hold out independent cases, including unfamiliar suppliers or later time periods.
- Giving a bot more authority than the task requires. A service identity that creates drafts does not need permission to edit supplier banking records. Document text must not determine which tools or permissions are available.
Step-by-Step Technical Execution Protocol
These four phases describe the implementation project. Each produces something the next owner can inspect: a process map, an extraction contract, a tested write path, and a staffed review process.
Phase 1: Process Discovery and Mining
Start with one process owner and one finish line, such as “a verified invoice draft exists in the ERP.” Use authorised event records containing a case reference, activity and timestamp to identify common paths, repeated work and waiting time. Then ask operators what the logs omit: a phone confirmation, a rejected credit note, or an approval conducted outside the system.
Process mining reconstructs paths from system events. Task mining observes selected user interactions and raises different privacy questions. Prefer existing records and interviews when they answer the question. If observation is necessary, agree its purpose, scope, notice, access and retention before collection. Model the agreed workflow using Business Process Model and Notation (BPMN).
Phase 2: Cognitive Capture and Evidence Checks
Use embedded document text when it is reliable; reserve OCR for images or scans. Define required fields, allowed values, money representation, source references and how to represent “not found.” Compare rules, a document-processing service and a model on the same labelled cases before deciding whether custom training is worthwhile.
Validate the shape of the output and then its meaning. A schema can require a currency code; it cannot establish that the invoice actually uses that currency. Test field accuracy and materially wrong automatic acceptances by supplier, layout and scan quality. Minimise sensitive data before transfer to an external processor, and check retention settings for requests, responses, logs and backups.
Phase 3: Deterministic Bot Orchestration
Prefer a documented ERP or CRM API with explicit permissions and a way to look up the outcome. When an approved legacy application offers only a UI, use stable accessibility or application selectors, check the screen state before submission, and verify the saved record afterwards. Stop if the expected state changes.
Identify the business action, not the model run. Reprocessing the same invoice with a new model must not create a second draft. Use a durable operation reference tied to the business case, and destination-enforced idempotency or uniqueness where supported. If the ERP may have saved the draft but the reply was lost, reconcile the existing outcome before considering a retry. An unresolved write belongs in a reconciliation queue, not in a blind retry loop.
Phase 4: Human-in-the-Loop Review and Controlled Releases
Give the reviewer the proposed value, the corresponding source excerpt, the failed check and the available decisions. A reviewer can correct, reject or escalate. Revalidate a correction before execution. Retain the reason, reviewer identity and decision reference under the organisation’s access and retention rules.
Review a sample of accepted cases as well as exceptions. Otherwise, the team learns which mistakes operators corrected but never sees the confident mistakes that went straight through.
Comparison Matrix: Rules-Based RPA vs. Intelligent Process Automation
| Dimension | Rules-based RPA | IPA approach | Primary failure mode | Acceptance test |
|---|---|---|---|---|
| Input | Maps known fields or stable patterns. | Adds interpretation for text, images and variable layouts. | Right data type, wrong source field. | Inspect source evidence on held-out document variants. |
| Decision | Applies explicit rules to known inputs. | Combines proposed values with independent checks and risk-based routing. | A score overrides a mandatory approval. | Confirm that a forbidden action stays blocked even with a high score. |
| Exceptions | Handles anticipated exceptions through configured branches. | Adds review for ambiguous or unsupported interpretations. | Queue grows faster than reviewers can clear it. | Measure arrivals, handling time, completions and oldest open case. |
| Execution | Can use an API, connector or application UI. | Uses the same mechanisms after validation and approval. | A timed-out write is submitted twice. | Replay the approved test case and reconcile one destination record. |
| Change management | Version rules and application integrations. | Also version extractor, schema, routing policy and evaluation set. | An upgrade changes field meaning without changing its type. | Compare old and new outputs without production writes. |
| Operating cost | Licences, maintenance and exception handling. | Also includes inference, labelling, review and quality sampling. | Time released is reported as cash saved. | Compare fully loaded cost per correctly completed case. |
Critical Edge Cases & Operational Pitfalls
- A supplier changes its layout, not your schema. The output can still contain every required field while the values become less accurate. Monitor verified errors by layout and temporarily route an unfamiliar variant to review.
- The same invoice arrives through two channels. Email and portal uploads may have different file hashes and intake IDs. Check for an existing business case; send uncertain matches to review rather than silently merging or duplicating them.
- A timeout leaves the outcome unknown. “No reply” is not “no draft.” Preserve the operation reference and check the ERP. If the result cannot be established, hold further writes for that case.
- A queue target starts driving unsafe approvals. An ageing backlog is a reason to investigate staffing, input changes or pilot volume—not to lower a financial control without evaluation.
- Redaction stops at the model request. Sensitive text may still appear in traces, screenshots or reviewer exports. Inspect the whole data path and limit access to source evidence.
- A retired process leaves an active bot. Keep an inventory of owners, destinations, service identities and approved versions. Retirement includes stopping schedules, resolving pending work and revoking obsolete access.
Master IPA Implementation Checklist
Tick each item when you have evidence, not just a design intention. These web checkboxes do not provide permanent storage; use the printable ownership sheet for your review record.
Would you create the draft, review the document, or stop?
Open an example to see its route. These are illustrative cases, not a live ERP dashboard.
Known supplier; total reconciles; all required checks pass
Create a draft if the action is authorised and the duplicate check is clear. Record the ERP reference and verify the saved values. Payment approval remains separate.
High extraction score; subtotal appears in the total field
Send to review. Show the source labels and failed arithmetic check. Validate the corrected record before allowing a write.
Invoice attachment requests new supplier bank details
Stop that action. Send the request to the organisation’s independent supplier-change procedure. Neither the attachment nor the extraction score authorises a change.
Interactive 10-Page Intelligent Process Automation Playbook
Use the ownership worksheet on page 8 to record responsibilities and the 30-day plan on page 9 to run a bounded pilot. To save the playbook, open the individual post in a current Chrome or Edge browser and select Print / Save 10-Page PDF. Check the A4 preview before saving.
A practical blueprint for RPA, OCR and enterprise AI
Intelligent Process Automation:
From Source Document to Verified ERP Draft
Follow one invoice through extraction, validation, human review and execution. At each handoff, know who owns the decision and what evidence shows that it worked.
Keep the source label and location alongside each critical proposed value.
Separate uncertain readings from actions that the workflow is never allowed to take.
Reconcile the saved draft and preserve the business reference across retries.
01 · The input problem
When is rules-based automation enough?
Choose the least complex approach that meets the accuracy and control requirements. One workflow can use different routes for different input types.
| Input | Start with | Evidence to inspect |
|---|---|---|
| Structured e-invoice | A supported connector, schema checks and business rules. | Correct field mapping, source identity, currency and duplicate handling. |
| Stable digital PDF | Embedded text and deterministic labels where reliable. | Subtotal, tax and amount due remain distinguishable across examples. |
| Scans with varied layouts | OCR plus a field extractor with source evidence and review. | Critical-field accuracy by layout, image quality and supplier. |
| Ambiguous email | Classify or route it to the appropriate team. | An uncertain classification cannot authorise a financial action. |
Define “done”
For this pilot, a correct draft exists in the ERP and its reference has been verified. “OCR finished” and “API request sent” are intermediate states.
Five-minute candidate scan
- Name the input and final action.
- Count cases and common variants.
- Identify a costly or irreversible error.
- Check whether rules already suffice.
02 · Runtime architecture
Four stages, four inspectable outputs
Keep the source document, the model’s proposal, the approval decision and the ERP result distinct. They answer different audit questions.
| Stage | What it produces | When to stop |
|---|---|---|
| Ingest | Case ID, approved source reference, intake time and document type. | Unsupported input, inaccessible source or unresolved duplicate. |
| Extract | Proposed values, evidence locations, missing fields and extractor version. | Unreadable source or a critical value without usable evidence. |
| Validate and route | Schema result, business-rule results, policy version and review decision where required. | Failed rule, missing approval, or action outside the permitted scope. |
| Execute and verify | Durable operation reference, destination ID, checked values and final state. | Unknown commit status or mismatch between approved and saved values. |
Trace one field
For the total, a reviewer can locate the printed amount, see what was extracted, see any correction, and compare the approved value with the ERP draft.
Keep the trail proportionate
Use access-controlled references where possible. A general operations log does not need a copy of the invoice, credentials or full prompt.
03 · Baseline and scope
Map what people actually do
An ERP event log can reveal a three-day gap. An operator can tell you whether it was a queue, a missing purchase order or a necessary approval. Use both sources before redesigning the process.
| Method | Question it answers | Deliverable |
|---|---|---|
| Event-log process mining | Which recorded steps recur, and where do cases wait or loop? | Variant counts, elapsed times and known gaps in event coverage. |
| Operator walkthrough | Which decisions, calls or approvals are absent from the logs? | BPMN map with business rules, owners and exception paths. |
| Limited task observation | Is a specific manual handoff a useful integration candidate? | A purpose-limited observation record; no unrelated employee activity. |
| Cost baseline | What does a correctly completed case cost today? | Volume, touch time, rework and operating costs for one defined period. |
Compare like with like
Use the same start, finish and case population before and after the pilot. Report unresolved cases separately so a growing backlog cannot look like an improvement.
Estimate payback honestly
Simple payback in months = one-time implementation cost ÷ positive monthly net cash benefit. If the benefit is staff capacity rather than reduced spending, report the hours separately.
04 · Extraction contract
A field needs a value and a reason to trust it
This fictional invoice has no discounts, freight or other adjustments. The excerpt uses integer minor units: for USD, 108,000 cents represents $1,080.00.
{
"schema_version": "invoice-draft.v1",
"invoice_ref": "DEMO-17",
"currency": "USD",
"subtotal_minor": 100000,
"tax_minor": 8000,
"total_minor": 108000,
"total_evidence": {"page": 1, "label": "Amount due"}
}
| Check | Example | What it cannot prove alone |
|---|---|---|
| Schema | Required fields exist; monetary values use the agreed representation. | That the proposed total came from the right printed line. |
| Source evidence | Resolve the stored page and field location to the actual “Amount due” value. | That the supplier is authorised or the invoice is genuine. |
| Business rule | For this invoice, 100000 + 8000 = 108000. Match the supplier and relevant order independently. | That every invoice uses this formula; credit notes and adjustments need their own rules. |
Evaluation set
Keep labelled test cases separate from tuning examples. Include poor scans, unseen layouts, credit notes and absent fields. Evaluate critical fields individually.
Missing is a valid result
If the currency or amount is not supported by the source, return an explicit missing state and route it. Do not fabricate a value to satisfy a required field.
05 · Bot orchestration
One approved business action, one verified draft
A retry is a delivery event, not a new invoice. Preserve the same operation reference across retries and model upgrades. A genuinely amended invoice needs an explicit amendment decision.
| Observed state | Appropriate next step | Evidence to retain |
|---|---|---|
| Approved; not yet sent | Submit through the authorised interface using the registered operation reference. | Approved payload version, rule decision and operation reference. |
| Destination confirms creation | Read back or otherwise reconcile the draft ID, supplier, currency and amount. | Destination reference and verification result. |
| Reply lost after submission | Look up the existing operation. Do not assume that a timeout means failure. | Unknown-outcome status and reconciliation owner. |
| Saved record differs | Stop downstream work. Apply the ERP’s authorised correction procedure. | Discrepancy, correction decision and cross-reference to the original record. |
API first
Prefer a supported interface with scoped permissions, documented limits and destination-side duplicate protection. A local “already sent?” check alone cannot prevent two concurrent writes.
UI fallback
Use a reviewed UI flow only where permitted. Verify the target application, expected state and saved result. If a layout change makes the target ambiguous, stop.
06 · Review and release decisions
Measure the errors that would escape review
There is no universal confidence threshold for financial documents. Choose a routing policy against labelled outcomes, the consequences of a wrong decision and the capacity to review exceptions.
| Route | Decision rule | Measure |
|---|---|---|
| Mandatory independent review | Required by policy for the action, regardless of score. | Approval completeness and time to decision. |
| Uncertain or unsupported | A critical field lacks evidence, a rule fails, or the variant has not been evaluated. | Correction reasons, reviewer effort and oldest open case. |
| Eligible for automatic draft | All mandatory checks pass and measured error risk is acceptable for this bounded action. | Material errors in a representative sample of accepted cases. |
Worked shadow-mode example — illustrative, not a benchmark
Review workload
Of 1,000 weekly cases, 600 would qualify for drafts and 400 would go to review. At 3 minutes each, the review queue needs 20 staff-hours, before escalation and quality sampling.
Quality of proposed accepts
If 2 of 100 sampled proposed accepts have a material error, the observed sample rate is 2%. It is not proof of the exact population rate or of acceptable risk.
Release discipline: Quality-check reviewer corrections, keep evaluation data independent, test the candidate model with the pinned schema and rules, and promote it only after an accountable release decision.
07 · Print and complete by hand
Automation Portfolio & Bot Ownership Sheet
Complete one sheet for each pilot or release. Store it with your automation Center of Excellence (CoE) or equivalent governance records. Record references—not secrets or customer documents.
1. Ownership and scope
2. Controls and evidence
3. Workflow and execution ledger
| Workflow / variant | Bot or API owner | Write gate / review owner | Reconciliation / recovery reference |
|---|---|---|---|
4. Pre-release verification
- Scope and permissions checked.
- Held-out evaluation reviewed.
- Duplicate and lost-reply tests passed.
- Review queue and stop procedure tested.
5. Decision and sign-off
Security notice: Do not write API keys, passwords, customer identifiers, raw invoice text or bank details on this sheet. Use approved internal evidence references.
08 · Run a bounded pilot
A 30-day plan to reach a release decision
The deadline is for a decision, not a compulsory cutover. If the evidence is insufficient or review capacity is unavailable, extend shadow mode or keep the manual process.
- Days 1–3: Pick one workflow, name the owner and define the permitted final action.
- Days 4–6: Map the real process. Record baseline volume, handling time, rework and approval steps.
- Days 7–9: Approve the data path and prepare representative labelled examples. Separate tuning and test cases.
- Days 10–12: Build the simplest viable extractor and record source evidence for critical fields.
- Days 13–15: Test schema, business and routing checks. Document failures as well as successes.
- Days 16–18: Exercise the approved connector in a test environment. Check duplicate delivery and uncertain outcomes.
- Days 19–20: Staff the review queue, rehearse escalation and test the stop control.
- Days 21–27: Run the candidate in shadow mode without production writes. Compare proposals with independently verified outcomes.
- Days 28–29: Review material errors, estimated workload, costs and unresolved cases with the owner.
- Day 30: Sign a decision: limited draft-only release, another evaluation cycle, or no deployment.
Pilot decision record
09 · Reference sheet
Core IPA glossary and technical references
IPA
Intelligent Process Automation combines interpretation of inputs with repeatable workflow execution and explicit decisions about exceptions.
IDP
Intelligent Document Processing turns documents into proposed structured values, often using OCR, layout analysis or language models.
HITL
Human-in-the-loop review gives an accountable person evidence and authority to correct, reject or escalate a case.
BPMN
Business Process Model and Notation describes activities, events, gateways and handoffs in a shared workflow diagram.
Drift
Input drift changes what the extractor sees. A schema change alters the output contract. Either can require testing; one does not imply the other.
Idempotency
Repeating the same business operation has no additional intended effect—for example, retrying creation does not create a second invoice draft.
Official specifications and guidance
Scope: This guide is for education and architecture planning. The examples are not universal acceptance thresholds, assurances of compliance or forecasts of return on investment. Production authority remains with the organisation’s designated owners.
Save or Print the 10-Page Intelligent Process Automation Playbook
Bring the process inventory, bot ownership sheet and 30-day roadmap to your next architecture review. Use them to document what the pilot may do, what it must refuse, and who owns an uncertain outcome.
Authoritative Technical References & Further Reading
- OMG: Business Process Model and Notation, Version 2.0.2 — workflow activities, gateways and handoffs.
- JSON Schema: Draft 2020-12 — machine-readable structure and validation constraints.
- NIST: Artificial Intelligence Risk Management Framework 1.0 — governance, measurement and management of AI risk.
- NIST SP 800-53 Rev. 5: Security and Privacy Controls for Information Systems and Organizations — access control, audit and accountability considerations.
- W3C: Data on the Web Best Practices — provenance, versioning and metadata practices.
Disclaimer: This guide provides general educational and architectural planning information. It is not legal, security or compliance advice for a specific organisation. Confirm data-processing obligations, vendor terms, approval requirements and system permissions with the responsible process, security and compliance owners before enabling production writes.
Digital publisher and technical researcher covering digital assets, emerging technology, and automated systems. Oversees editorial content and publishing operations at Nexibound.