← Back

Adding AI to Your ERP Without Replacing the System

TL;DR

An AI assistant can prepare an ERP change without being allowed to commit it. Follow a purchase-order amendment through validation, approval and recovery.

Conceptual illustration for Adding AI to Your ERP Without Replacing the System

AI ERP integration connects an AI-assisted task to the records and workflows in an existing enterprise resource planning system. The useful boundary is simple: AI may interpret a request or propose a change, while the application and ERP enforce permissions, validation and the final transaction.

You do not need to replace the ERP to test that approach. Start with one operation, such as explaining a purchase-order discrepancy or preparing a delivery-date amendment. A general assistant with broad production write access is a much larger project than either of those tasks.

The example below follows a fictional purchase-order amendment. It is a design walkthrough, not a claim that Pixelfield has deployed this exact workflow for a client.

Choose a workflow with a clear end state

“Connect AI to the ERP” is too broad to estimate or test. “Prepare a proposed delivery-date change for an open purchase order, with a buyer approving it before submission” is specific enough to inspect.

Identify what the system reads, what it produces and what it must never change. In this example it reads the order, supplier reference and current delivery date. It produces a structured proposal. It cannot alter the supplier's bank details, release payment or change the order value.

Check whether the ERP already supports the task through its own workflow or extension. Adding an external model is not automatically better than configuring an existing feature. The useful reason to add AI is an interpretation problem—such as extracting a request from varied supplier messages—not merely moving a field between two systems.

Keep the original manual route available during the pilot. That gives staff a way to finish legitimate work when the integration cannot resolve an ambiguity.

Confirm the supported integration surface

Ask for the ERP product, version, deployment model, available APIs and licence conditions. “It has an API” does not establish that your specific entity can be updated with the required business rules.

For example, Microsoft's Dynamics 365 Finance and Operations OData documentation describes access through exposed data entities. That is a concrete integration surface, but it does not mean every business operation should be implemented as an arbitrary field update. Validate the supported operation in your environment.

Prefer a documented business action over direct database writes that bypass the application's rules. Confirm authentication, company or tenant scope, pagination, throttling and error responses in a sandbox.

A connector also needs an owner. When the ERP is upgraded, someone must check the contract and the regression cases. Treat that ongoing responsibility as part of the integration cost.

Separate read access from write authority

A model that can read an order does not need permission to amend it. Give each operation the smallest useful scope and keep authorisation outside the model's text response.

The application should decide which records the signed-in person may access. Do not let a prompt such as “show me all suppliers” expand that scope. The same rule applies when documents contain instructions: a supplier's attachment is data, not an instruction to change your security policy.

For a proposed write, the model should return constrained fields that the application validates. A fluent explanation is not evidence that a supplier ID, quantity or date is correct. Show the underlying record and source message to the approver.

Our AI integration guide explains the broader API boundary. For ERP work, the additional concern is preserving the business transaction and its audit trail.

ERP integration separates read access, a typed proposal, approval of the current record version and one controlled commit.
Illustrative purchase-order amendment. AI proposes a change; application controls validate and authorise the ERP write.

A purchase-order amendment, step by step

Suppose a supplier asks to move the delivery date of fictional order PO-1042. The integration reads the open order and prepares an old-value/new-value comparison, together with the source message.

The buyer approves the proposed change. Before committing it, the application re-reads the record and checks that the relevant version and business state still match. If another user has closed the order or changed the date, the old approval is no longer sufficient.

Situation Required behaviour What the user sees
Valid request, unchanged order Submit the approved operation Confirmed ERP reference and new date
Order changed after approval Stop and revalidate Current values and a request to reconsider
Duplicate supplier message Recognise the existing operation Existing result, not a second amendment
Timeout after submission Check whether the write committed Pending verification, not a false failure
Request includes prohibited field Reject that part of the request Explicit reason and permitted next step

Keep the operation identifier through every stage. If the ERP supports an idempotency mechanism, use it according to its contract. If it does not, design duplicate detection and reconciliation around a stable business reference; do not assume that retrying a POST is harmless.

The final response should distinguish “proposal prepared”, “submitted” and “confirmed”. Those are different states. Telling a buyer the date has changed before the ERP confirms it creates a new operational problem.

Map business meaning, not just field names

A supplier's product code may differ from your item ID. A quantity may refer to boxes while the ERP expects individual units. A date may be a requested delivery date rather than a promised dispatch date.

Build explicit mappings and preserve the original value alongside the interpreted value. If a mapping is ambiguous, route it for review. Guessing the nearest product name is not an acceptable substitute for a verified identifier.

Include company, currency, tax treatment and units where the operation depends on them. The model should not infer those from a familiar-looking document without validation against the relevant record.

This is also why extraction accuracy alone is an incomplete success measure. A system may copy every character correctly and still create the wrong business transaction. Test the result in the ERP, including its downstream state.

For invoice-specific extraction and matching, see our separate AI invoice-processing guide. The amendment workflow here deliberately focuses on controlled changes to existing records.

Plan for partial success and uncertain outcomes

Networks fail at inconvenient moments. A request can reach the ERP and commit even when the caller never receives the response. Mark that state as unknown until it has been reconciled; do not immediately submit the operation again.

A multi-step workflow can also stop halfway through. For example, the ERP amendment succeeds but a notification fails. Retrying the notification should not repeat the amendment. Store each step's result and make recovery specific to that step.

Microsoft's compensating transaction pattern explains that undoing a distributed workflow may require business-specific compensating actions rather than a simple database rollback. In an ERP, a correction may need an authorised reversal or a new transaction. Deleting the evidence is not a recovery strategy.

Name the person responsible for unresolved operations. A queue of “unknown” results without ownership is just manual work hidden behind an automation dashboard.

Test the exceptions before expanding access

Create a sandbox set with valid requests, stale records, missing identifiers, incorrect units, duplicate messages and permission failures. Include a timeout after submission and a rejected approval.

Measure whether the intended ERP state was reached, whether any unauthorised field changed, and whether a reviewer could understand the evidence. Also record review time and recovery effort. A faster draft is not a saving if staff spend longer checking it.

Use a read-only or proposal-only phase before allowing writes. That lets you inspect mapping and interpretation failures without changing production records. A limited write pilot can follow once the operation contract and recovery path have been demonstrated.

Keep logs useful but proportionate. Record operation IDs, versions, decisions and outcomes; avoid copying sensitive documents into every diagnostic system. Our human-in-the-loop AI guide covers how to make approval a meaningful control rather than a decorative button.

What a good first integration brief contains

Download the ERP integration worksheet and define one read scope, one allowed operation, the approval rule and the recovery owner. Attach a normal example and two exceptions that currently require experienced staff.

Ask an implementation partner to demonstrate the supported API action, record-level permissions and duplicate handling in your environment. Request the failure demonstration as well as the successful one.

Pixelfield's AI integration services can help build that bounded workflow around the ERP you already use. The aim is less retyping and clearer decisions while keeping the system's business controls intact.

Michal Vávra
Written by
Head of AI & Development

Michal has been with Pixelfield since September 2012 and has held technical leadership roles since 2017. He is the technical force behind our most demanding builds, combining AI expertise with the infrastructure and software architecture needed to make it work in production. His work spans LLM applications, multi-agent orchestration and complex integrations. He sets the engineering standards behind reliability, performance and scale, and guides the team through the decisions that determine how a system runs long after launch.