Skip to content

AI Worker and ERP: data, permissions, audit trail

DYNAMINDS Labs team · · 6 min

AI Workers

In brief

An AI Worker operates in the ERP like a new person on the team: it has its own account, roles limited to one process, and it leaves a trace of every operation. It retrieves data through an API, database views, or file exports, and most often saves results as draft documents that a person approves. The log records who did what and when, based on which document, and who approved the result. This setup lets an auditor reconstruct every entry and revoke access in one step.

Its own account instead of a shared login

An AI Worker gets its own service account in the ERP, not access through the login of one of your employees. This is the basic decision on which the rest of the security depends.

A shared login means the document history does not show whether an order was created by a salesperson or by the AI Worker. You also cannot revoke permissions for one without revoking them for the other. A separate account solves both problems:

  • every ERP entry has an author who can be told apart from people,
  • the account's permissions match one process and can be reviewed in the same place as people's permissions,
  • revoking access means disabling one account, with no effect on the rest of the team.

On the DYNAMINDS Labs page we state this principle briefly: an AI Worker sees only what you grant it permissions for in the system, and you revoke them with one click.

Ways to access data

An AI Worker can read and write ERP data in several ways, and the choice depends on the system and on what your IT department already maintains.

MethodWhen it fitsWhat to watch for
ERP APInewer systems with a documented APIrequest limits, API versions, permissions at the operation level
Read-only database viewsolder systems without an API, reading datawrites only through the system's own mechanisms, never directly to tables
File importsystems with a document import mechanismfile validation on the ERP side, handling of rejected records
EDIdocument exchange with partnersthe AI Worker handles exceptions, not the message itself
UI automationno other optionsfragile when screens change, harder to log

When choosing an access method, it helps to start by asking what the ERP already exchanges with other systems. If the company has a working order import from a B2B platform, or an API used by the warehouse system, the AI Worker can use the same route, with the same validations and the same monitoring. A new access route is a new element to maintain and to be reviewed by the security team.

Writing directly to database tables, bypassing the ERP logic, is a bad idea in any system. It skips validations, document numbering, and the change log that the ERP keeps itself. In IBM i systems, common in Polish industry and trade, API access usually has to be built, as we describe in the article IBM i and modern applications: integration through REST APIs. General integration patterns are covered in the article ERP integration: patterns and pitfalls.

Permissions: read and draft, approval for a person

The safest permission setup gives the AI Worker the right to read data and create draft documents, and leaves approval to a person. That is exactly what the badge of the invoice AI Worker in the DYNAMINDS Labs process says: ERP: read and document draft; mail: the invoices@ mailbox; signature: always yours.

When designing roles, the segregation of duties principle known from internal control helps: the same person should not set up a supplier, post its invoice, and send it a payment. The AI Worker is subject to the same rule.

  1. Read: orders, receipts, the counterparty and item master, but only the data needed in one process.
  2. Draft: a sales order, an invoice description, a complaint proposal as an unapproved document.
  3. No permissions for: approving documents, changing the counterparty master, including bank accounts, posting, payments.

The ban on changing counterparty data is especially important. Changing a supplier's bank account number is one of the classic ways to defraud a payment, and an e-mail requesting such a change can contain an instruction for the model hidden in its text.

Audit trail: what the log records

An AI Worker's log must answer an auditor's questions without a conversation with the deployment team. A good entry contains:

  • who: the AI Worker's identifier, for example the number from its badge,
  • what: the operation in the system and the number of the document that was created or changed,
  • when: the time of the operation,
  • based on what: the source document, for example an e-mail, an invoice from KSeF (Poland's National e-Invoicing System), an order PDF,
  • under which rules: the version of the rules sheet in force at the time of the operation,
  • check result: which rules passed and which raised an exception,
  • who approved: the person, the time of approval, and any changes made before approval.

An illustrative log entry, with made-up document numbers:

2026-11-27 09:14  JRV-0105  utworzył szkic opisu faktury FV/10/055
źródło:      faktura z KSeF, zamówienie ZZ/10/311, przyjęcie PZ/10/208
zasady:      wersja 3 z 2026-11-02
kontrola:    NIP zgodny, kwoty zgodne z zamówieniem, przyjęcie znalezione
zatwierdził: konto głównej księgowej, 2026-11-27 10:02, bez zmian

The AI Worker's log supplements the ERP change log and does not replace it. The ERP records that the AI Worker's account created a draft, and the AI Worker's log explains why the draft looks the way it does.

Legal requirements and audit

Obligations concerning logs depend on the type of process and data. The AI Act (Regulation (EU) 2024/1689) requires automatic event logging in high-risk systems (Art. 12) and obliges companies that use such systems to retain those logs (Art. 26). An AI Worker for purchase invoices usually does not fall into this category, but the same level of trail makes every review easier, from a financial audit to an internal one. We discuss the risk categories in the article The AI Act: risk categories and what they mean for companies.

If the log contains personal data, for example the names of people from documents, it falls under the GDPR: a defined retention period and restricted access are needed. The step log can usually be kept with document identifiers instead of the full content, and the content stays in the source system.

Questions and answers

Does an AI Worker need a user license in the ERP?

That depends on the licensing terms of the ERP vendor. Some vendors count service accounts and API access separately or differently from people's accounts. It is worth checking this before deployment with your IT department or your ERP implementation partner, because it affects the cost and the choice of access method.

Can an AI Worker correct data in the ERP master data?

It can propose corrections, for example merging duplicate item numbers, but a person should approve changes to the master data. The DYNAMINDS Labs catalog has a separate AI Worker for this, the ERP Master Data Steward. Changes to counterparty data, especially bank accounts, always require a person's decision.

Does a pilot require connecting the AI Worker to the ERP?

No. For a pilot, a file export of data from two or three months is enough. The AI Worker goes through the cases in the sample, and the team assesses the results. The account, permissions, and ERP access method are set only after the pilot, when it is clear that the process works.

How quickly can you revoke an AI Worker's access?

As quickly as for any user: by blocking the account or removing the roles in the ERP and in the mail system. That is why a separate account matters so much. With a shared login, revoking access means changing a team member's password and interrupting their work.

What it looks like in a project

Start with one task. Describe it, and DYNAMINDS Labs will prepare a free diagnosis.

Meet DYNAMINDS Labs

Read more: AI Workers