Connecting AI to your ERP: list what it may do, not what it's forbidden
The request comes up more and more often: “we’d like to ask the AI how sales are going, or have it prepare a file, straight from the ERP.” It’s a sensible request. The ERP holds the data that matters, and an assistant that can read it and carry out a few operations in place of a person saves real time.
The delicate part isn’t the technology to connect them. It’s deciding what passes from one side to the other. And that decision changes a lot depending on how you write it down.
The wrong reflex: a list of prohibitions
The instinct is to start from everything and remove what’s sensitive. You expose the database and hide the dangerous fields: tax codes, bank details, free-text notes. It looks reasonable, and it’s fragile for a simple reason: an ERP with twenty years of history doesn’t stand still.
An update adds a column. Someone creates a staging table. A field meant for an internal code starts being used to store the contact person’s name. With a list of prohibitions, every new thing is exposed by default, until someone notices and adds it to the list. The hole opens by itself and only closes if you’re lucky.
The right rule: a closed list
The criterion we apply is the opposite. Every field that can reach the model is explicitly classified: free, masked, replaced by an anonymous token, or omitted. What isn’t classified doesn’t leave. A table nobody has reviewed answers with a refusal, not with its data.
This has concrete consequences:
- a generic “give me everything” query is reduced to the allowed columns only, and whoever receives it is told that something was removed;
- data about private individuals is handled differently from company data, because the law treats them differently;
- technical fields needed to compute a total are used inside the system, but never returned.
When the schema changes, the behaviour doesn’t: the new column stays out until a person decides what it is.
The same goes for actions
Reading is only half the problem. When the assistant also has to do something — open a file, check an archive, start a batch job — the temptation is to give it access to the program’s functions. Here too the answer is a closed registry: every permitted action has a name, a version, a parameter schema and a declaration of whether it supports a dry run.
And one detail makes the difference: the refusal happens before any effect. An unknown action, or one with invalid parameters, is rejected before the company it should operate on is even opened. You don’t find out halfway through that something was wrong.
The cost is an explicit decision
A closed list costs more up front: someone has to sit down and classify field by field, action by action, and that classification must be approved by whoever is accountable for the data. But it is exactly the document the privacy officer, the customer or the auditor will ask for: what does the AI see, and what can it do?
With a list of prohibitions, the honest answer is “everything, except what we remembered to remove”. With a closed list, the answer fits on one page.