Executives

Your ERP is 20 years old and AI needs to talk to it

Legacy integration patterns explained for the people who approve budgets — without rewriting the core or becoming hostage to a proprietary connector.

e.works Labs TeamTechnology · Innovation · Automation4 min read

*Fourth article in our series on enterprise AI, legacy integration and information governance.*

Executive summary

The bottleneck in enterprise AI is almost never the model — it is access to data locked inside systems nobody wants to touch. The good news: integrating AI with a two-decade-old ERP does not require rewriting the core. It requires choosing the right integration pattern for each type of data, isolating the legacy behind a translation layer, and keeping original permissions intact. This article turns four technical patterns into decision criteria for whoever approves the budget.

Why legacy is the real project

An assistant that does not know your inventory, customer history or commercial policy answers well and helps little. All the value is in context — and context lives in the ERP, the CRM, the PLM, the quality system and network folders.

Those systems usually share three complicating traits: data models only the internal team understands, rigid maintenance windows, and limited capacity to absorb extra query load. Ignoring that produces the classic pilot that shines in a demo and takes the ERP down on the first business day in production.

Four patterns and when to use each

PatternWhen to useAdvantageWatch out
API gateway over legacyPoint queries needing live dataNo data copy; permissions at sourceDirect load on the legacy system
CDC (change data capture)High volume, frequent readsSpares the core; natural historyData duplication needs governance
Event queueAsynchronous, cross-department flowsDecouples pace, absorbs spikesHigher operational complexity
Anti-corruption layerLegacy data model is unintelligibleTranslates into business vocabularyRequires modeling investment

In practice, mature projects combine patterns: CDC to feed the search index, a gateway for sensitive queries that need current-second data, and a queue to trigger processes.

The anti-corruption layer is the most strategic decision

The term is technical, the idea is commercial: instead of teaching AI the quirks of the old system, you build an intermediate layer that exposes clean business concepts — customer, order, item, policy — and translates to the legacy behind it.

The executive benefit is optionality. With that layer, replacing the ERP later does not invalidate everything built on top. Without it, each new AI application ties the company more tightly to the legacy vendor.

Permissions: the project's most expensive mistake

When giving AI corporate context, it is easy to create a technical user with broad access — and thereby let any employee obtain, through a generated answer, information they would never see in the source system.

The rule is simple and non-negotiable: AI answers with the access level of the person asking, not its own. That means propagating identity end to end and filtering results by permission before generation — a theme explored in *RAG is not magic*.

Cost: where the budget actually goes

A typical distribution for a first integration project:

  1. 1.Modeling and mapping legacy data — the largest and most underestimated slice.
  2. 2.Building the translation layer and connectors.
  3. 3.Security, identity propagation and audit.
  4. 4.Model and inference — usually the smallest part of the bill.

If a vendor proposal concentrates cost in item 4, the work in items 1 through 3 has probably not been confronted yet.

What to do on Monday

  • Request an inventory of the three systems holding your most valuable data and the real state of their interfaces.
  • Require the first use case to cross an actual legacy system — pilots built only on PDFs hide the problem.
  • Define the permission inheritance rule before the first line of code.
  • Budget explicitly for data modeling, not only for AI licensing.

Conclusion

Legacy integration is not technical debt to tolerate: it is the foundation of the return. Companies that invest in the translation layer buy more than the current use case — they buy the freedom to change tool, model and even ERP without starting over.

Further reading

Engineering track:

ShareLinkedInX

Read next

Put it to work

From the article to practice: use this in your company

The capabilities described in this article are available on the e.works platform at eworks.cloud. You choose where your company's data lives: on e.works infrastructure, managed and protected on AWS, or in your own on-premises environment.

  • e.works infrastructure on AWS

    A managed environment protected by e.works on AWS, with encryption, per-company isolation, backup and high availability.

  • On-premises, in your environment

    The same platform running in your company's data center or private cloud, when data sovereignty requires that nothing leaves your perimeter.

In either model your data stays yours — with access control, audit logging, configurable retention and guaranteed availability.

Newsletter

Technical and strategic content, once a month

Analysis on automation, industrial data and technology adoption. No spam.