Search Suggest

Posts

Intelligent Process Automation (IPA) Architecture: RPA, OCR & HITL Guide

Learn how Intelligent Process Automation (IPA) pairs OCR, RPA, and human review to build verified ERP drafts. Includes a printable 10-page playbook.

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.

Focus: Intelligent process automation & enterprise AI  |  Notation: BPMN 2.0  |  Example tools: UiPath, Automation Anywhere, Celonis, LangChain

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.

Approved intake: invoice, email attachment or scanned PDF
Extraction: document text or OCR + field interpretation Return proposed values, source locations, missing fields and the extraction version.
Eligible for a draft Required fields, source evidence, supplier match, amount checks and the approved routing policy all pass.
Needs human review A required value is unclear, the amounts disagree, or the document belongs to an untested layout.
Outside the pilot A payment instruction or supplier bank change goes to its separately authorised process. No draft bot action is permitted for that request.
Eligible cases only: create one ERP draft and verify its record ID and values.
A corrected case returns to validation. A reviewer fixing an OCR error does not thereby approve a payment or waive a business rule.

Three questions determine the route. Answer them in order: a strong answer to the last one cannot cancel a “no” to the first.

1. Is the action permitted?Check the workflow scope, authority of the service identity, and any required independent approval.
2. Is the proposed record supported by evidence?Check the pinned schema, document spans, supplier record, currency, duplicate status and applicable accounting rules.
3. Is automatic routing justified for this field and document type?Use measured performance on representative cases. If a critical value lacks reliable evidence, send it to review.

What Automation Teams Often Get Wrong

Operational reality — valid JSON can still contain the wrong amount

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: Discover the processMap observed case paths, existing approvals, manual effort and failure costs.
Phase 2: Capture and validateExtract proposed fields into a versioned schema, with evidence for critical values.
Phase 3: Execute and reconcileUse an approved connector, prevent duplicate business actions and verify the destination record.
Phase 4: Review and improveResolve exceptions, audit accepted cases and evaluate changes before release.

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.

A field is uncertain or a business check fails
1. Resolve the caseInspect the source. Record a correction, rejection or escalation.
2. Recheck the recordValidate the revised values against the same schema, permissions and business rules.
3. Evaluate a future changeUse authorised, quality-checked examples to test a candidate model or rule. Do not retrain production automatically on each edit.

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

Compare design choices, failure modes and acceptance tests
Dimension Rules-based RPA IPA approach Primary failure mode Acceptance test
InputMaps 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.
DecisionApplies 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.
ExceptionsHandles 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.
ExecutionCan 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 managementVersion 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 costLicences, 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.

Interactive routing preview & printable field guide 10-page playbook below

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.

Process miningField evidenceHITL routing
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.

Faisal Shahzaib · Enterprise Automation & AI Guides Save as PDF · A4 · Scale 100% · Background graphics on · Browser headers and footers off
Faisal Shahzaib.
Automation Architecture Field Guide · 10 Pages

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.

01 · CAPTURERead the right field

Keep the source label and location alongside each critical proposed value.

02 · DECIDERoute by evidence

Separate uncertain readings from actions that the workflow is never allowed to take.

03 · EXECUTEVerify one result

Reconcile the saved draft and preserve the business reference across retries.

First principle: A model proposes facts. Business rules and accountable people determine whether those facts justify an action. The destination record—not a green status icon—is the evidence that the action completed.
For process owners, automation architects, reviewers and enterprise AI teams. Includes a printable workflow inventory and a 30-day pilot roadmap.
IPA BlueprintChoosing the approach

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.

InputStart withEvidence to inspect
Structured e-invoiceA supported connector, schema checks and business rules.Correct field mapping, source identity, currency and duplicate handling.
Stable digital PDFEmbedded text and deterministic labels where reliable.Subtotal, tax and amount due remain distinguishable across examples.
Scans with varied layoutsOCR plus a field extractor with source evidence and review.Critical-field accuracy by layout, image quality and supplier.
Ambiguous emailClassify 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.
Selection rule: Prefer a bounded, measurable workflow with an available owner and a safe manual path. High volume alone does not make a process suitable for automation.
IPA BlueprintPipeline architecture

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.

1. IngestCase reference
2. ExtractProposed facts
3. ValidateDecision and reason
4. ExecuteVerified result
StageWhat it producesWhen to stop
IngestCase ID, approved source reference, intake time and document type.Unsupported input, inaccessible source or unresolved duplicate.
ExtractProposed values, evidence locations, missing fields and extractor version.Unreadable source or a critical value without usable evidence.
Validate and routeSchema result, business-rule results, policy version and review decision where required.Failed rule, missing approval, or action outside the permitted scope.
Execute and verifyDurable 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.

Audit exercise: Pick one completed draft and one rejected case. Can a reviewer explain both outcomes without asking the developer who built the bot?
IPA BlueprintPhase 1 · Discovery

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.

MethodQuestion it answersDeliverable
Event-log process miningWhich recorded steps recur, and where do cases wait or loop?Variant counts, elapsed times and known gaps in event coverage.
Operator walkthroughWhich decisions, calls or approvals are absent from the logs?BPMN map with business rules, owners and exception paths.
Limited task observationIs a specific manual handoff a useful integration candidate?A purpose-limited observation record; no unrelated employee activity.
Cost baselineWhat 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.

Phase exit: The owner signs off on a process map, the draft-only scope, the manual fallback and the measures that will decide whether the pilot continues.
IPA BlueprintPhase 2 · Capture

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"}
}
CheckExampleWhat it cannot prove alone
SchemaRequired fields exist; monetary values use the agreed representation.That the proposed total came from the right printed line.
Source evidenceResolve the stored page and field location to the actual “Amount due” value.That the supplier is authorised or the invoice is genuine.
Business ruleFor 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.

Phase exit: The team can demonstrate a case that passes the schema but fails a business check. If every test case succeeds, the rejection path has not been demonstrated.
IPA BlueprintPhase 3 · Execution

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 stateAppropriate next stepEvidence to retain
Approved; not yet sentSubmit through the authorised interface using the registered operation reference.Approved payload version, rule decision and operation reference.
Destination confirms creationRead back or otherwise reconcile the draft ID, supplier, currency and amount.Destination reference and verification result.
Reply lost after submissionLook up the existing operation. Do not assume that a timeout means failure.Unknown-outcome status and reconciliation owner.
Saved record differsStop 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.

Recovery boundary: Rolling back a connector or model changes future processing. It does not undo a draft already saved. Reconcile existing records and use an approved reversal or amendment where appropriate.
IPA BlueprintPhase 4 · Human review

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.

RouteDecision ruleMeasure
Mandatory independent reviewRequired by policy for the action, regardless of score.Approval completeness and time to decision.
Uncertain or unsupportedA 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 draftAll mandatory checks pass and measured error risk is acceptable for this bounded action.Material errors in a representative sample of accepted cases.

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.

Read the denominators: 600/1,000 is proposed automation coverage. 2/100 is observed error among sampled proposed accepts. Neither is a production straight-through completion rate while the system is only observing.

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.

IPA BlueprintPrintable process inventory

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

Workflow / business owner / date
Permitted action and destination
Prohibited actions / mandatory approvals
Bot owner / stop authority / delegate

2. Controls and evidence

Extractor / schema / rule / connector versions
Routing policy / evaluation evidence reference
HITL owner / service target / escalation
Data handling / audit / retention reference
Workflow / variantBot or API ownerWrite gate / review ownerReconciliation / 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

Decision: proceed / revise / remain manual
Approver / date / next review

Security notice: Do not write API keys, passwords, customer identifiers, raw invoice text or bank details on this sheet. Use approved internal evidence references.

IPA Blueprint30-day rollout roadmap

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–15 · Discovery and capture
  1. Days 1–3: Pick one workflow, name the owner and define the permitted final action.
  2. Days 4–6: Map the real process. Record baseline volume, handling time, rework and approval steps.
  3. Days 7–9: Approve the data path and prepare representative labelled examples. Separate tuning and test cases.
  4. Days 10–12: Build the simplest viable extractor and record source evidence for critical fields.
  5. Days 13–15: Test schema, business and routing checks. Document failures as well as successes.
Days 16–30 · Execution and review
  1. Days 16–18: Exercise the approved connector in a test environment. Check duplicate delivery and uncertain outcomes.
  2. Days 19–20: Staff the review queue, rehearse escalation and test the stop control.
  3. Days 21–27: Run the candidate in shadow mode without production writes. Compare proposals with independently verified outcomes.
  4. Days 28–29: Review material errors, estimated workload, costs and unresolved cases with the owner.
  5. Day 30: Sign a decision: limited draft-only release, another evaluation cycle, or no deployment.
Workflow / release candidate / decision date
Observed errors, review effort and unresolved risks
Decision / approved volume limit / owner / next checkpoint
Reopen the decision when a critical supplier layout, business rule, destination interface, model or data-processing agreement changes.
IPA BlueprintGlossary, sources & scope

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.

Object Management Group — BPMN 2.0.2https://www.omg.org/spec/BPMN/2.0.2/
JSON Schema — Draft 2020-12https://json-schema.org/draft/2020-12
NIST SP 800-53 Rev. 5 — Security and Privacy Controlshttps://doi.org/10.6028/NIST.SP.800-53r5
W3C — Data on the Web Best Practiceshttps://www.w3.org/TR/dwbp/
Final three rules: Do not confuse a valid field with a true field. Do not confuse a score with approval. Do not confuse a sent request with a verified transaction.

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

  1. OMG: Business Process Model and Notation, Version 2.0.2 — workflow activities, gateways and handoffs.
  2. JSON Schema: Draft 2020-12 — machine-readable structure and validation constraints.
  3. NIST: Artificial Intelligence Risk Management Framework 1.0 — governance, measurement and management of AI risk.
  4. NIST SP 800-53 Rev. 5: Security and Privacy Controls for Information Systems and Organizations — access control, audit and accountability considerations.
  5. 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.

Faisal Shahzaib, Digital Marketer and Technical Researcher
Faisal Shahzaib
Digital Marketer, faisalshahzaib.com · Bangladesh

Digital publisher and technical researcher covering digital assets, emerging technology, and automated systems. Oversees editorial content and publishing operations at Nexibound.

```

Post a Comment

Faisal Shahzaib Welcome to WhatsApp chat
Hello! How can I help you today?
Type here...