The hard part of AI in operations is rarely the model. It is getting trustworthy ERP data out of a system designed for transactions, into a shape a model can reason over, on a schedule that keeps it current — without breaking the source system or leaking anything.
1. Decide what ERP data the question needs
Extracting everything is slower, riskier and less useful than extracting the entities that answer real questions. Work backwards from the decisions you want to support.
Financial core. GL entries, AP/AR invoices, payments and cost centres — the base for margin, cash and leakage analysis.
Commercial. Customers, orders, pricing and credit terms, needed for revenue and concentration questions.
Supply. Suppliers, purchase orders, receipts and inventory movements, for lead time and stock questions.
Operational events. Status changes with timestamps — the raw material for cycle time and process analysis.
2. Pick an extraction pattern
Every ERP offers several routes out and they differ enormously in load and fidelity. Choose per entity, not per system.
REST/OData APIs. Best fidelity and permissions, but rate limited. Suits master data and moderate transaction volumes.
Change data capture. Lowest latency and lowest source load for high-volume tables, when the platform exposes it.
Scheduled exports. Reliable fallback for legacy or heavily customised installs — slower, but predictable and easy to audit.
Webhooks. Ideal for events that must be acted on in minutes; always pair with a reconciliation sweep, since webhooks drop.
3. Normalise before you analyse
ERP schemas encode decades of local convention: custom fields, per-entity chart of accounts, three spellings of the same supplier. AI amplifies inconsistency rather than absorbing it, so normalisation is not optional.
Stable entity keys. One canonical identifier per customer, supplier, item and cost centre, with the source keys retained for traceability.
Unit and currency discipline. Store the original and the converted value with the rate and date used. Never silently convert.
Field-level lineage. Record which source field produced each normalised metric, so a wrong number can be traced back in seconds.
Timestamps in UTC. With the original timezone kept alongside — cycle-time analysis breaks quietly otherwise.
4. Sync incrementally and safely
- 1
1. Backfill once, in windows
Chunk the historical load by date range with checkpoints so a failure resumes instead of restarting.
- 2
2. Switch to deltas
Track a high-water mark per entity — modified timestamp or change token — and pull only what moved.
- 3
3. Throttle to the vendor’s limits
Respect documented rate limits and back off on 429s. A sync that degrades the ERP will be switched off by IT.
- 4
4. Reconcile on a schedule
A periodic count-and-checksum sweep catches the records that deltas and webhooks missed.
5. Validate before the model sees it
Bad input produces confident, wrong answers. Run validation as part of ingestion, and surface the findings rather than hiding them.
Schema drift. Detect added, removed or retyped fields and quarantine the batch instead of silently coercing values.
Completeness. Row counts and control totals against the source for each window.
Duplicates. Deduplicate on business keys, not on payload hashes — the same invoice arrives twice with different metadata.
Freshness. Track age per source and mark analyses that relied on stale data instead of presenting them as current.
6. Ground the AI in the records
Once ERP data is available, the remaining risk is the model asserting things the data does not support. The fix is structural: retrieve the relevant records, pass them as context, and require every claim to cite the record it came from. Claims without a citation get stripped before display.
That single rule turns an AI answer into something an auditor can check — and turns disagreements about the answer into a two-click look at the underlying rows.
Connect your ERP and ask a real question
Managed connectors, incremental syncs and grounded answers that cite the records behind every number.
Start Free Trial