These four are often compared as rivals. They are not: three get data to the AI, and one is how the AI uses it. Most working systems need several.
Batch and change data capture (CDC) copy data to where the AI can read it. An API lets the AI reach into the source system live. RAG (retrieval-augmented generation) is the step where the AI searches for the relevant pieces and answers from them.
Strictly, RAG covers any information fetched and added to the AI's prompt, including facts from an API. In everyday use it means searching documents, and that is how we use it here.
In a typical design, documents and records reach the AI by different routes, and live facts are fetched on demand.
The right route depends on how current the answer must be, and how much data the AI has to search.
| How fresh | Best for in AI | Watch out for | |
|---|---|---|---|
| Batch | Minutes to a day, set by the schedule (usually hours) | Slow-changing data, model training, scoring large volumes | Stale data; wrong for anything time-sensitive |
| CDC | Seconds to minutes | An AI-ready copy kept close to live, without loading the main system | More setup and monitoring; source database changes can break it |
| API | Live | Exact current facts, and actions such as opening a ticket or booking a slot | Slower and costlier per call; depends on the source being up |
| RAG | As fresh as whatever keeps it updated (batch, CDC or event streams) | Answering from your own documents: policies, procedures, contracts | Weak search gives weak answers; permissions must carry over |
Ask these for each piece of data the AI needs. The first "yes" gives the answer.
Two checks apply to every route. First, the AI must only use data the person it is helping may see: with an API that holds only if the AI calls it with that person's own rights, not a shared account that sees everything; with RAG, each document's access rules must carry over into search. Second, for regulated decisions, keep a record of which data and documents the AI used.
A customer calls to ask whether a burst pipe is covered and where their claim stands. One answer draws on all four routes.
| Part of the answer | Route | Why this route |
|---|---|---|
| Is water damage covered under my policy? | RAG over policy wordings | The answer lives in documents and should cite the clause |
| Keeping the wordings current | Batch, nightly | Wordings change rarely; overnight is fresh enough |
| Customer profile and recent claims, ready as the call connects | CDC into a customer view | Daytime changes matter, but the main system should not be queried on every call |
| What is my claim status? Please log a new claim. | API to the claims system | Must be exact and live, and it changes data |
Cases the agent should not handle alone, such as a disputed claim or an upset customer, go to a person with the call details attached.
The hard part of AI is rarely the model. It is getting the right data to it: fresh enough, trustworthy, and seen only by those allowed to see it.
We map each use case to the right data routes, so answers are fresh, traceable and secure from day one.
We'll get back to you within one business day.
Your email is ready to send. Press send in your email app and we'll be in touch.