How do AI agents connect to legacy software, and what are the risks?

Updated · 5 min read

Check what the old system actually offers

Older software often has more ways in than its owner remembers. Before you design anything, ask the vendor or your IT contact which of these exist, and write the answers down. The list usually shows a clear best route.

Look for an official API, a documented export or scheduled report, direct database access that the vendor permits, a file import function and an admin contact who can grant access. Each one changes how safe and how fast the connection can be.

Read first, and read from a copy

Reading is the lowest-risk way to connect an agent to an old system. Give the agent access to a read replica, a nightly export or a report, rather than the live database. A read replica is a copy that the production system keeps up to date, so the agent cannot change anything in the live records.

Use a database role with only the permissions the task needs. Ask your database administrator to create it, and check that it cannot write, delete or see tables outside the task.

Writing into a system that has no audit log

Writing is where the real risk sits. Many older systems record what the current value is but not who changed it, when, or on whose instruction. If an agent writes a wrong value into such a system, the error can spread silently, and undoing it means checking records by hand.

Before the agent is allowed to write, add your own log of every write, including the input, the value before and after, and the step that caused it. Take a backup that you can restore from, and test the restore once. Then keep a person in the approval step for any write that affects money, stock or a customer’s account.

Email and files as an interface

Email and file imports are simple ways to connect an agent to software that offers no other door. An agent can send a standard request to a supplier’s order desk, or produce a file in the format an import screen expects. These routes are slow and fragile, because formats change and replies are hard to read reliably.

Use a dedicated mailbox for the agent, not a personal account, and keep a person in charge of any message that commits money, stock or a delivery date. Validate every file before import, and reject a file that does not match the expected layout rather than guessing.

Screen automation as a last resort

Screen automation means the agent clicks and types in the software as a person would. It is a last resort because it breaks whenever a screen changes, runs slowly and can conflict with the vendor’s terms of use. Check those terms before you start.

If it is the only option, limit it to reading, or to a single write with a person’s approval, and log every step. Put a fixed review date on the design, because a software update can break it without any warning.

Test on a copy before the live system

Build and test the connection against a copy of the old system, not the live one. Use real but anonymised data where the rules allow it, and include the awkward records that the team already knows about, such as duplicates, missing fields and old formats.

Only move to the live system after the copy test has produced the same results as the team’s manual work, and after the write log has been checked by the person who owns the data.

How Hundred Seas helps

Hundred Seas is a product studio in Taipei. We build AI agents on Claude and on OpenAI models, and we choose the model for each task on cost, speed, quality and where the data has to stay. That choice matters when an agent reads records from an older system, because the model provider will receive whatever the agent places in its prompts.

Our scope step takes about one week at a fixed price and is where we check which systems the agent must read and write, and what access is realistic. It ends in a written plan, a clickable prototype and a firm quote. Build then follows in two to four weeks of weekly releases, and a monthly run plan keeps the connections working after launch.

Questions

Can an AI agent use software that has no API?
Sometimes. Check first for an official API, an export, a scheduled report or database access that the vendor allows. Only if none of those exist should you consider screen automation, and then review the vendor’s terms of use before you begin, because they may restrict automated access.
Is it safe to give an agent direct access to the database?
Read-only access to a copy or a replica is much safer than access to the live database. Writing directly into the live database should wait until you have an audit trail, a restore plan and an approval step. Ask your database administrator for a role with only the permissions the task needs.
Why is writing into a system without an audit log risky?
Without an audit log, you cannot see which record the agent changed, when it changed it or on whose instruction. Mistakes spread without anyone noticing, and undoing them means manual checking. Add your own log of every write before the agent is allowed to make one, and keep a backup you can restore from.
Should email be how an agent talks to an old system?
It can work for simple, low-volume jobs, such as sending a standard request to a supplier’s order desk. It is fragile because formats vary and replies can be misread. Use a dedicated mailbox rather than a personal one, and keep a person in charge of anything that commits money or stock.
Do I have to replace the old system before using AI agents?
Usually not. Most businesses connect agents to the systems they already run, and replace only the parts that block the work. Replacement is a separate decision with its own cost and risk. Plan the connections first, then decide whether the old system is still worth keeping.

Have a project in mind?

Tell us what you want to build. We reply with a plan, not a sales call.

AboutHow do AI agents connect to legacy software, and what are the risks?