In brief
Before deploying an AI Worker you do not need to clean up all company data, only what one chosen process reads: customer, supplier and item master data, code lists (cost centers, statuses, payment terms), the decision history from recent months and written rules. The most common obstacles are duplicates in master data, rules that live only in people's heads and no way to export data from the system. The cleanup starts with measuring a sample, not with a data warehouse project.
What an AI Worker actually reads
An AI Worker works on the same data as the person who runs the process today. For coding cost invoices, that means the invoice, the supplier record, the chart of accounts, the cost center list and invoices coded in previous months. For orders arriving by email, it means the message, the customer record, item codes, the price list and stock levels. The list of sources follows from the process, so the first step is choosing the process, not inventorying the whole company.
| Source | Example | Typical problem | How to check |
|---|---|---|---|
| ERP master data | customers, suppliers, items, employees | duplicates, empty fields, outdated records | a query for repeated tax IDs and names, the share of empty mandatory fields |
| code lists | cost centers, document types, statuses | values never used or used against their description | compare defined values with those used in the last year |
| incoming documents | emails, PDFs, scans, XML e-invoices | different layouts, attachments in archives, poor scans | a sample of a few dozen documents from different sources |
| decision history | invoices coded in recent months, orders entered into the ERP | the same cases handled differently by different people | compare decisions in pairs of similar cases |
| rules | instructions, policies, purchasing guidelines | rules never written down, known from memory | talk to the people who run the process and write down the exceptions |
Five tests on a data sample
Instead of auditing the whole system, an export from two or three months and five simple tests are enough. The example figures below show how to read the result.
- Duplicates in master data. Count suppliers with the same tax ID and items with the same name. Example: 180 pairs with the same tax ID among 4,000 suppliers means some invoices will land on the wrong record unless the AI Worker gets a rule for choosing.
- Empty mandatory fields. Bank account, payment terms, default cost center. An empty field is a decision that cannot be made from the data, so it goes to a person.
- Consistent code lists. How many cost centers are defined and how many are really used. Dead values confuse people and AI Workers alike.
- Consistent decision history. Take a few dozen similar cases and check whether they were handled the same way. If the same supplier sometimes lands on one account and sometimes on another, agree the rule before the AI Worker starts learning from history.
- Access. Can data be exported without manual copying, does the ERP have an API or read-only views, does the mailbox allow a technical account. Lack of access delays a deployment more than data quality does.
The test results do not have to be perfect. They should show which cases the AI Worker can handle right away, which go to a person with a description of what is missing, and which data must be fixed before the start. A wider view of quality metrics is given in Data quality.
Rules in writing
The biggest part of the preparation is not data in tables but rules in people's heads. "Utility invoices always go to the building's cost center", "the Czech customer orders in cartons, not pieces", "for supplier X we check there is a purchase order number". Everyone in the department knows such rules, and nobody has written them down.
Before the pilot, the team writes a rules card: rules, exceptions, who decides in disputed cases and which decisions a person always approves. The card is written together with the people who run the process and improved after every error review. How this fits into a four-week pilot is described in An AI Worker pilot.
Access, permissions and personal data
The AI Worker gets its own technical account with permissions for one process: read access to master data and documents, write access to drafts awaiting approval, and no right to approve transfers or change a supplier's bank account. Every action it takes goes into a log.
Personal data falls under the GDPR. The data minimization principle (Article 5) means the AI Worker sees only the data needed for the task, and data protection by design (Article 25) means masking unnecessary fields in the pilot export. Where to process data and how to choose a model is covered in Company data and language models. At DYNAMINDS Labs, data stays on the company's own server or in a data center in Poland.
The AI Act sets separate data requirements for high-risk systems (Article 10). Most accounting, purchasing and logistics processes are not among them, but candidate selection in recruitment, for example, is listed in Annex III. In such a process the data requirements are higher and must be assessed before the pilot.
What not to do before deployment
- Do not build a data warehouse "for AI". An AI Worker reads data where it lives: in the ERP, the mailbox, the documents. A warehouse makes sense for reporting, not as a precondition.
- Do not clean all master data at once. Fix the records that concern the chosen process and leave the rest to a regular review.
- Do not move data into spreadsheets "to make it simpler". A spreadsheet goes stale within a week, and the AI Worker needs current data from the system.
- Do not assume the model will fix bad data. It reads a document well, but it cannot guess which of two records for the same supplier is the right one.
Ongoing master data hygiene can be handed to the ERP master data keeper: it looks for duplicate customers, suppliers and items, flags missing mandatory fields, checks tax IDs and bank accounts against the Polish VAT whitelist, and leaves merging duplicates and changing bank accounts to a person. More in Keeping ERP master data clean. When the problem lies in reports, metric definitions and reconciliation with the source system, it is handled by the team behind our Data and reporting service. The way to a pilot starts with a free diagnosis at DYNAMINDS Labs.
Questions and answers
Does our data have to be perfect before we deploy an AI Worker?
No. It has to be good enough for the AI Worker to handle most cases in the chosen process and pass the rest to a person with a note on what is missing. A pilot on a sample shows which gaps really get in the way. Often it is enough to fix a few hundred records and write down a dozen rules, rather than clean up the whole system.
Do we need a data warehouse or a data lake?
For an AI Worker, usually not. It reads data from the ERP, email and documents through an API, read-only views or exports. A data warehouse helps with management reporting and analysis, but it is not a precondition for deployment. If you already have one, it can be one of the sources.
How long does data preparation take?
For one process, the sample tests take a few days and writing down the rules takes a few meetings with the team. The longest part is usually getting access: a technical account in the ERP, mailbox permissions, sign-off from the security team. Start those formalities in parallel with the tests.
What about personal data in documents?
For the pilot, fields not needed to assess the process are masked. In deployment, the AI Worker sees only the data needed for its task, works under its own account, and its actions are logged. You need a data processing agreement with the provider and, where the risk is high, a data protection impact assessment.