AI integration: bringing the predictions of custom models into the ERP and business systems
On this page, AI integration means that the prediction of a custom AI model appears in the system where your employees schedule, plan, and order, that is, in the ERP or in another business system. The page describes three paths into that system, the stages from proposal to automation, the prerequisites in the ERP, and the limits of integration.
What AI in ERP Means: Vendor Features and Custom Models
AI in ERP refers to two different things. First, ERP vendors offer AI features as part of their software. Second, a company can develop a model from its own data and feed the model's predictions back into the ERP or another business system. This page deals with the second case.
A business system is the software in which a department does its daily work. Besides the ERP, examples include the inventory management system and the maintenance system. A prediction becomes useful only when it appears in that system at the point where a person or a rule makes the decision.
A prediction can return to the business system along three paths. The model fills a table in a nightly run, it answers requests from the business system as a service, or its result appears as a proposal on the screen.
All four deployment forms are described on the page MLOps Explained: Deployment and Monitoring (CRISP-DM phase 6).Batch Scoring: A Nightly Run Fills a Table in the ERP
In batch scoring, the model runs over all records at a fixed time. For example, it produces a demand forecast per item every night. In the morning, the result is available in a table or file that the ERP reads in.
This path usually places the fewest demands on the ERP. A regular data export and a place for the result are enough, such as an additional table or a field in the item master. Batch scoring is usually the cheapest form, because no service has to run around the clock.
The nightly run suits decisions made on a daily or weekly cycle, such as order proposals or safety stock levels. It is not suitable when the prediction is needed during a transaction, for example while an order is being entered. Also define which value the ERP displays if a run fails.
AI Integration via an Interface (API) That the Business System Queries
On the second path, the model runs as a service that answers on request. The business system sends the data of a transaction to the interface and receives the prediction in response while the transaction is still open.
In our worked example on predictive maintenance, the notice of which asset is likely to fail and in how many days goes automatically into the maintenance system. The sensor data is only read from the control system.
Unlike the nightly run, the service has to be reachable whenever the business system is in use, and the business system needs a rule for the case in which no answer arrives. If a field in the ERP is going to change, the service should be checked in a test environment with the real interfaces before the change takes effect.
Embedded in the Screen: AI in ERP as a Proposal in Three Stages
On the third path, the prediction appears on the screen where the decision is made, for example as a prefilled order quantity. The person working on the screen accepts the proposal or changes it. The value comes from the nightly run or from the interface, and the screen also has to be adapted. How much the model may decide on its own is extended in three stages.
| Stage | What the model does and who decides | Condition for the next stage |
|---|---|---|
| 1. Proposal mode | The model shows its value next to the value used so far. A person decides as before. | Measured against the actual value, the proposal was at least as good as the previous decision over a period defined in advance. |
| 2. Approval | The model prefills the field. A person approves or changes every value. | For a clearly defined group of cases, the share of changed values stays below a threshold defined in advance. |
| 3. Gradual automation | The model posts for this group without approval. A person checks samples and all cases outside defined limits. | Every further group goes through stages 1 and 2 again. |
The three stages apply equally to the nightly run and to the interface. In our example module on markdown control in fashion, the model first delivers proposals that category management reviews. The degree of automation there rises only after one or two validated seasons.
Markdown control per season is described in the module Markdown Optimization for Fashion.Prerequisites in the ERP and When AI Integration Costs More Than the Model
Whether a prediction reaches the ERP depends on four prerequisites on the system side.
Data export
The model needs the ERP data regularly and in a consistent form, that is, with stable field names, units, and timestamps. A manual export is enough for a trial but not for ongoing operation.
Interface or storage location
The ERP has to offer a documented way for an external value to get in, such as an interface, a file import, or an additional table.
Master data
The prediction is matched to a record through keys such as item number, site, or asset. If keys are assigned twice or are missing, a correct value ends up on the wrong record.
Feedback of actual values
The ERP has to record what actually happened and whether the proposal was accepted or changed. Without this feedback, the quality of the predictions cannot be measured.
Integration can cost more than the model if every change to screens or tables requires customization by the vendor or a systems integrator. The same applies if a change of ERP is imminent or if the decision comes up so rarely that a list is enough.
In these cases, it is acceptable to provide the prediction outside the ERP at first, for example as a report. If your ERP offers a feature of its own for the task and the result of that feature is sufficient, you do not need a custom model.
How We Handle ERP Integration in Projects
For us, integration into your systems is part of putting the model into operation, which is the sixth phase of our data science lifecycle.
Testing with real interfaces
Before going live, the model runs in a copy of the production environment with real interfaces and data formats. Errors that no automated test finds become visible there, for example a renamed field or a column from the ERP that is suddenly empty.
One part of operations first
A new model version first goes to a small part of operations, for example to a single site. If the results deviate, we switch back to the previous version.
No operation without actual values
If no actual values flow back, the quality of the predictions can never be measured. We do not put such a model into production.
Before the project starts, you receive a cost calculation and not just a day rate.
Frequently Asked Questions About AI Integration in the ERP
What does AI in ERP mean?
AI in ERP refers to two different things. Vendors offer AI features as part of their ERP software, and companies integrate the predictions of their own models into the ERP. In the second case, the result appears as a table, as the response of an interface, or as a proposal on the screen.
How can a custom AI model be integrated into an ERP system?
A custom AI model can be integrated into an ERP system along three paths. In batch scoring, a nightly run fills a table. With an interface, the business system queries a service. On the third path, the value appears as a proposal on the screen.
What prerequisites does the ERP have to meet before an AI model can be integrated?
Before an AI model can be integrated, the ERP has to meet four prerequisites. It delivers the data regularly and in a consistent form. It offers a documented way for an external value to get in. The master data has unique keys. In addition, the system records what actually happened.
When may an AI model post automatically in the ERP?
An AI model should post automatically in the ERP only after it has passed through two stages. In proposal mode, its value is only displayed and compared with the previous decision. In the approval stage, a person confirms every value. After that, only a clearly defined group of cases is automated.
When is integration into the ERP not worthwhile?
Integration into the ERP is not worthwhile if it costs more than the model and the decision can be made without it. Examples are an ERP with no documented way for external values to get in and decisions that come up rarely. In that case, a report for the person responsible is enough at first.
Further Pages on Deployment, Operations, and Data
MLOps explained: maturity levels and hosting location in CRISP-DM phase 6
Model Monitoring: Tracking AI Models in Operation
If you have a question about this, just give us a call: +49 40 60940415.