Your company runs on a CRM that holds ten years of customer history: an in-house system, an on-premise version nobody has updated in years, or a product whose vendor quietly left the market. You would like an AI agent to answer customers about order status, log enquiries from WhatsApp or Telegram, or send a morning list of stalled deals. Then the developer reads the documentation and says: "There is no API, so there is nothing to integrate with." The conversation usually ends with a proposal to migrate to a new CRM. This article covers what you can do before that: five working ways to connect AI to a legacy system, where each one breaks, and the order in which to try them.
First, confirm there really is no API
"No API" often means "nobody looked properly". Spend a day checking before you build any workaround:
- Admin settings and documentation. Look for sections called Integrations, Data Exchange, Web Services or External Apps. Sometimes an API exists but sits behind a toggle or a separate licence.
- The browser itself. If the CRM runs in a browser, its pages almost certainly fetch data from an internal server. That is an unofficial API: usable, but with no promise it will stay the same.
- Built-in export. Many older systems can drop files into a server folder on a schedule. That is already a channel.
- Where the database lives. If the CRM is hosted on your own server, the data sits in a standard database such as MS SQL, PostgreSQL, MySQL or Firebird.
- The original developer. If the system was built for you, there may be exchange modules that were simply never switched on.
Five workarounds at a glance
Every approach either reads data or writes to the CRM. Reading is almost always safer, so start there even if your end goal involves writing.
| Approach | Read / write | Data freshness | Main risk |
|---|---|---|---|
| Scheduled exports (CSV, Excel) | Read; write via import | Delayed: hourly or daily | File format changes without notice |
| Direct database reads | Read | Near real time | Load on the database, accidental edits |
| CRM email notifications | Read events | Minutes | Emails go missing or templates change |
| UI automation (RPA) | Read and write | Minutes | Breaks whenever the screen changes |
| A middle layer | Read and write to its own store | As fresh as its source | Two systems to reconcile |
Read-only routes: exports, database and email
Scheduled exports are dull and dependable. The CRM writes out a file of customers, deals or orders every hour or every night; a script picks it up, validates it and loads it into a table the AI can query safely. This suits a daily management summary or finding customers nobody has contacted in a month. It does not suit "where is my order?" because the status may have changed ten minutes ago. We cover turning such files into regular reporting in reports in Excel and Google Sheets that build themselves.
Direct database reads give the freshest data but need discipline:
- Create a separate database user that can only read the tables you need. Never write straight into another application's database: you do not know what checks and linked records the CRM creates when it saves.
- If the database is busy, read from a replica or a nightly copy so a heavy query does not slow your sales team down.
- Ask your administrator for a few readable views ("customers", "open deals", "orders with status") so the agent never has to guess what a table called "T_CL_02" means.
- Expose only the fields the task needs. Personal data rules apply wherever your customers are — UK GDPR, UAE data protection law, or Uzbekistan's personal data law.
Email notifications. Many legacy CRMs send messages such as "new enquiry" or "deal moved to stage". Route them to a dedicated mailbox the AI reads: it extracts the deal number, customer and stage, then alerts the right person in Slack, Teams or Telegram. This gives you events, not the full picture, so it works best alongside exports or database reads. See how AI handles this in email triage for a shared inbox.
When you must write: UI automation
A robot — an RPA script or browser automation — uses the CRM like a person: logs in, opens a record, fills in fields, clicks Save. Some AI models can now navigate interfaces from screenshots, which makes this less fragile, but not robust. It is the only way to write to a system without an API while letting the CRM run its own validation. It is also the most brittle option:
- a redesign, a moved button or a new pop-up stops the script;
- it is slow — seconds per record rather than milliseconds;
- the robot needs its own restricted account so the audit log shows who made each change;
- a wrong write lands straight in live data.
That is why we only use UI writes with human approval: the agent prepares the change, a manager confirms, the robot enters it. The approval check has to live in code, not in a team agreement — we explain why using our own mistake in the approval gate incident review.
The middle layer option
Instead of forcing AI to work inside the old system, you place a small database of your own next to it. New enquiries from your website, messengers and calls land there first; the agent replies straight away, qualifies the lead and assigns an owner. Records move into the legacy CRM in batches — by import, robot or by hand once a day — and exports flow the other way. The agent stays fast and predictable while the old CRM remains the record of history. The cost is reconciliation: match records by phone number and customer ID, and decide which system owns each field, or duplicates will creep in. Over time this layer often becomes the foundation for a calm migration.
A step-by-step plan
- Pick one task, such as "answer order-status questions on WhatsApp", not "connect AI to the CRM".
- Decide whether you need to write. Reading covers about half of typical requests.
- Check for a hidden API using the list above.
- Choose the simplest route that works: export → database → email → middle layer → UI automation.
- Run in shadow mode for a week. The agent drafts answers and changes; a person only reviews them.
- Add monitoring. Alert when an export is missing, a robot fails or a file format changes. A silent failure is worse than a loud one.
- Decide on migration with facts. After a month you will know how much effort the workaround really costs to maintain.
FAQ
Wouldn't it be easier to move to a modern CRM straight away?
Sometimes. But migration means moving history, retraining staff and months of running two systems. A workaround gets you value from AI now and lets you decide on migration based on real usage. If you have already chosen, see how an agent works with amoCRM.
Is it legal to read the CRM database directly?
The data is yours, but the software licence may restrict direct database access or changes. Check the licence agreement first and, if the system is still under support, tell the vendor.
What happens if the CRM updates and the robot breaks?
The script stops. You need a failure alert and a manual fallback until it is fixed. For critical processes, avoid UI automation altogether if an export or middle layer will do.
How much does this cost?
It depends on the route, the state of the database and data volume. The first conversation is there to work out which approach fits your system and to estimate it. Get in touch. More examples are in our integrations section and on the AI agents page.