How to connect an AI agent to your ERP without replacing any system
An integration layer, read access by default, explicit writeback points and logging of every action let an agent work with the ERP without changing it.
- AI
- ERP
- Integration
- Automation
Why the ERP does not need to be replaced
When a company wants to bring in an AI agent, the first question is usually whether the ERP has to change. In most cases it does not. The ERP holds customers, price lists, stock and orders, and it carries years of configuration and business rules. Replacing it to make room for an agent is a risk with no benefit. What is needed is a controlled entry point between the agent and the system, so that the ERP remains the source of truth.
An integration layer between the agent and the ERP
The agent should not connect directly to the ERP database. Between the two sits an integration layer: a dedicated service that exposes specific, well-defined operations, such as checking the status of an order, reading the price of an item for a customer or checking available stock. The agent can only do what the layer allows, and the layer is the only component that knows the details of the ERP.
This design has two practical consequences. If the ERP is updated or migrated, only the layer needs to be adapted, not the agent. And if the AI model or provider changes, the ERP stays untouched. This is the approach behind ResolHub, the integration layer of NEXA, the operations platform that Auratech has built and runs for Resol: it reads the ERP and serves the data to the rest of the modules.
Read access by default
Every agent should start with read-only access. Most useful use cases, such as answering a customer, preparing a summary or validating a piece of data, only need to query. If the agent cannot write, a model error cannot damage production data. Write access is opened only when a specific use case justifies it.
Explicit writeback points
When the agent has to leave a result in the ERP, such as a new order or an incident, the write is defined as an explicit, bounded point. Instead of granting a general permission, the team documents which table or document can be created, with which fields and under which conditions. In ResolHub, for example, writes are limited to specific writeback tables, and the rest of the ERP stays read-only.
Each writeback point should be able to answer four questions: what it writes, who authorises it, how it is validated before saving and how it is undone if necessary.
Permissions per role
The agent acts on behalf of someone. A person in sales, one in after-sales and a finance manager should not see the same data. The integration layer must apply the permissions of the role of the user making the request, not those of a technical account with full access. This way the agent cannot reveal a price, a margin or an invoice to someone who would not have access to it in the ERP.
Logging of every action
Every query and every write is recorded: who requested it, what the agent did, which data it read, what it wrote and when. This log is used for auditing, for understanding an error and for improving the agent with real cases. It also makes it possible to answer precisely when someone asks why a particular order was created.
Handover to a person
The agent must know when to stop. If the data is ambiguous, if the customer has not been identified with certainty or if the operation falls outside the defined rules, the task passes to a person with the full context: what was understood, what was queried and what is missing. The handover is part of the design, and it prevents a doubtful case from ending up as incorrect data in the ERP.
What to check before starting
- What access the ERP offers: API, views, integration tables or scheduled exports.
- Which data the first use case really needs, so that no more than necessary is exposed.
- Which writes are essential and who is accountable for them.
- Which roles exist in the ERP and how they are reflected in the integration layer.
- Where the logs are stored and for how long.
- Who receives the cases the agent hands over and through which channel.
If you would like to explain how your ERP works and which process you want to automate, we can review it together and assess what a reasonable first step would be.