Australia: 5 Steps to Integrate AI with Legacy Systems, Not Rewrite
Australia: 5 Steps to Integrate AI with Legacy Systems, Not Rewrite

Yes, in most cases you can integrate AI without rewriting the legacy system by placing a governed integration layer, or façade, in front of it and rolling functionality out in reversible waves. This pattern relies on established building blocks like Change Data Capture and the Model Context Protocol, paired with a phased rollout that protects the source system while proving value fast.
TL;DR:
- Building a governed integration layer, such as façades or change data capture, allows AI to interface with legacy systems without rewriting or directly modifying them.
- Deploying a phased, wave-based approach with validation, rollback, and incremental scaling reduces risks and surfaces dependencies before full production integration.
- Security controls, including zero-trust identity, input validation, and audit logging, must sit outside the AI model to ensure governance and compliance.
- Testing strategies like dual-run comparisons, feature flags, and side tables are essential for verifying AI behavior matches legacy processes before full deployment.
- Starting with small pilots based on system diagrams and clear KPIs enables rapid, compliant AI integration without extensive system overhaul.
Table of Contents
- Integration patterns: façades, adapters, CDC, brokers and MCP wrappers
- Practical implementation sequence: assess, isolate, connect, validate, scale
- Security and governance at the integration boundary
- Data, testing and validation strategies
- System-specific guidance: mainframes, ERP, SCADA and on-premise databases
- Tooling and vendor considerations: a decision checklist
- Zatersio perspective: running rapid, auditable pilots
- Start a pilot without touching your core systems
- Sources
- FAQ
Integration patterns: façades, adapters, CDC, brokers and MCP wrappers
The core idea is simple: never let AI touch the legacy system directly. Instead, build an anti-corruption layer that translates modern calls into whatever the legacy interface expects, whether that is a SOAP endpoint, a green-screen terminal session, or a proprietary file format. The legacy system keeps doing what it does. Everything new happens at the boundary.
Four patterns cover most cases:
- Façade or adapter: wraps a legacy interface (SOAP, screen-scrape, flat file) in a modern API without altering the source.
- Change Data Capture: watches the database and publishes change streams, turning a batch-oriented system into a near-realtime data source without touching the operational tables.
- Event broker: decouples producers from consumers, useful when a legacy system has no service layer at all and multiple downstream tools need the same reconciled view.
- MCP wrapper: exposes narrow, named tools and actions to AI agents while enforcing authorization, versioning, and rate limits outside the model itself, as described in WSO2’s guidance on agent-accessible legacy systems.
FTP and EDI pipelines fall into the adapter category too. Treat them as governed pipelines with schema validation and logging, not as ad hoc scripts. The same applies to narrowly scoped agent actions exposed through middleware: the model should never see a raw legacy call, only a bounded function it is allowed to invoke.
Pro Tip: Build the façade before you pick a model. The integration layer determines what the AI can safely do; the model choice is a much smaller decision by comparison.
Practical implementation sequence: assess, isolate, connect, validate, scale
A wave-based sequence, similar to the one described in AWS’s prescriptive guidance on refactoring, keeps risk bounded at every step.
- Assess: map dependencies, build a capability matrix, and align stakeholders on which workflows matter most.
- Isolate: pick one narrow workflow and a clear data boundary, favoring read-only access first.
- Connect: build the middleware or adapter in a non-production environment with version control from day one.
- Validate: write outputs to a side table, run dual-run or shadow traffic against production, and compare results with automated tests.
- Scale: expand in waves, with rollback gates at each stage and write permissions granted incrementally as confidence builds.
This sequence converts what would otherwise be a single high-stakes cutover into a series of bounded experiments. Each wave surfaces hidden dependencies before they become production incidents, which is exactly the point of treating discovery and dependency analysis as its own phase rather than a formality before the “real” work starts.
Security and governance at the integration boundary
The AI overlay is only as safe as the controls sitting between it and the legacy system. Those controls belong in the wrapper, never in the model.
- Zero-trust agent identity: every agent call carries its own credentials, scoped to specific actions.
- Fine-grained permissions: an agent that reads customer records should not also be able to write to them.
- Input validation and rate limiting: bound what an agent can send and how often, at the boundary.
- Secrets management and audit logs: credentials never live in prompts or model context, and every call is logged for review.
- Read-before-write policy: grant read access first, then add write permissions only after an explicit approval step.
A governed façade keeps authorization, versioning, rate limiting, and audit logging outside the model entirely, according to WSO2’s breakdown of AI-agent-accessible integration, which is what allows teams to change the model or prompt without touching the security posture of the underlying system.
Early phases should never grant write access by default. An approval workflow, even a manual one, catches mistakes before they reach the transaction system.

Data, testing and validation strategies
Proving that an AI overlay behaves correctly matters more than getting it running quickly. The safest path treats every rollout as reversible until proven otherwise.
- Feature flags: toggle the AI path on and off without a deployment.
- Side tables: write candidate outputs to a separate store that production never reads from until a validation gate passes.
- Progressive traffic ramp: start at a small percentage of real traffic and increase only after each stage clears its checks.
- Dual-run comparison: for critical systems, run the legacy process and the AI overlay side by side and compare outputs before cutover, a method Google Cloud recommends for mainframe modernization to prove functional equivalence.
- Monitoring and rollback triggers: tie alerts to specific KPIs so a regression trips an automatic or manual rollback, not a postmortem three weeks later.
Pro Tip: Treat the side table as your audit trail, not just a testing artifact. When someone asks why the AI made a decision six months from now, that record is the answer.
System-specific guidance: mainframes, ERP, SCADA and on-premise databases
Each system class carries its own constraints, and the pattern needs to bend to fit them.
- Mainframes: start with a full assessment of business rules, expose functions through connectors rather than direct access, and run dual-run testing with full traceability before trusting any AI-driven output, following the approach Google Cloud outlines for mainframe modernization.
- ERP systems: use adapter layers and event replication so nightly batch jobs and embedded business rules keep running undisturbed while the AI layer works off a replicated view.
- SCADA and OT environments: limit AI to read-only analytics and keep safety-critical controls completely isolated from anything the AI can act on. There is no acceptable failure mode where a model output touches an operational safety system directly.
Bespoke composites and highly customized business logic, common across all three categories, still need a domain expert in the loop. Model-driven modernization research confirms automation handles repeatable patterns well but falls short on the one-off logic every legacy estate accumulates over time.
Tooling and vendor considerations: a decision checklist
Before building or buying, run through a short checklist:
- Does the tool support your protocols and connectors out of the box, or will you build custom adapters?
- Can it run on-premise where data residency requires it?
- Is it compatible with your CDC pipeline or message broker?
- Does it produce full audit trails and tracing for every agent action?
- What SLA and data residency options does the vendor offer?
Speed of delivery and long-term maintainability pull in opposite directions. A managed service gets you running faster; an in-house adapter gives you more control later. When staffing an in-house build would take months you do not have, bringing in a delivery partner for the first pilot is often the faster path to a working proof point.
Zatersio perspective: running rapid, auditable pilots
We build the façade first, wire it to a narrow workflow, and prove functional equivalence before anyone touches production. That order matters more than the model behind it. A typical scope includes discovery and dependency mapping, a defined pilot KPI, a documented rollback plan, and full handover of code and IP once the pilot clears validation. Fixed pricing and Australian data residency mean the pilot stays auditable and compliant from day one, not retrofitted after the fact.
— Lakitha
Start a pilot without touching your core systems
You do not need a six-month migration plan to find out if an AI overlay works for your system. A short technical discovery call gets you a scoped pilot with a defined KPI and a rollback plan built in from the start, not bolted on afterward.

Bring your system diagrams, a rundown of who can access what data, and a rough idea of what success looks like. From there we scope the build against fixed pricing on our pricing page, whether that is a single workflow automation, a custom AI agent build, or a full MVP to prove the concept end to end. If you want to see the shape of a plan before committing to a call, grab the free automation blueprint first. For teams weighing an AI agent against hiring extra hands, our breakdown of AI agents versus a virtual assistant walks through the real cost difference.
Sources
- Making Your Existing Systems AI-Agent-Accessible, without a Rip-and-Replace | WSO2
- Model-Driven Legacy System Modernization at Scale | arXiv
FAQ
Can AI agents be integrated with existing enterprise systems?
Yes. The safest method places a governed integration layer between the agent and the system, exposing narrow, named actions rather than direct access, as described in WSO2’s guidance on agent-accessible legacy systems. This keeps authorization, rate limiting, and audit logging outside the model while still letting the agent get work done.
Why do companies still use legacy systems?
Legacy systems often encode business rules and workflows built up over decades that would take significant effort to fully document and rebuild. Replacing them outright risks losing logic nobody has fully mapped, which is why augmenting them with a façade is usually the more practical route than a rewrite.
Why will legacy security systems not scale in 2026?
Legacy systems typically rely on static, perimeter-based access controls that were not designed for AI agents making frequent, automated calls. A zero-trust integration layer with per-agent identity, scoped permissions, and full audit trails addresses this without requiring changes to the legacy system itself.
How do I prove an AI overlay behaves the same as the legacy process?
Run the legacy process and the AI overlay side by side and compare outputs before any cutover, a method Google Cloud recommends for mainframe modernization to establish functional equivalence. Writing candidate outputs to a side table first keeps the comparison auditable without risking production data.