What Would Uzair Do? · Issue #08

How to Integrate AI Without Replacing Existing Software

Many enterprises delay practical AI capabilities for years because vendors pitch full platform rip-and-replace migrations. In practice, your existing ERP, CRM, and claims engines already encode years of audited business rules—treat them as authoritative systems of record and layer AI cleanly beside them.

1. Preserve Your System of Record and Compliance Perimeter

Existing enterprise software persists not out of inertia alone, but because payroll calculations, pricing tiers, regulatory audit logs, and role hierarchies already pass financial and legal scrutiny. Asking an LLM wrapper to replace or bypass those databases invites silent data drift, permission escalation, and broken reconciliation.

Instead of duplicating sensitive operational databases into an external vendor sandbox, start by exposing a narrow, read-only interface returning strictly required record attributes filtered by the calling user's existing authorization scope.

2. Four Safe Sidecar Integration Patterns

  1. Read-Only Retrieval Adapter: Sync permitted records and document revisions incrementally into an isolated search index annotated with tenant and role metadata. Enforce permission checks inside the retrieval query itself—never post-generation.
  2. Draft-and-Review Assistant Layer: Use AI to pre-populate onboarding summaries, structured claims extractions, or support drafts directly inside existing operator queues while requiring deterministic human submission to commit changes.
  3. Webhook / Event Enrichment Queue: Consume incoming customer attachments or tickets asynchronously via queues, classify intent or extract entities behind strict JSON schemas, and post structured tags back through standard authenticated REST APIs.
  4. Idempotent Command Proxy for Constrained Writes: Whenever an agent workflow is authorized to trigger state updates, route every command through existing application validation services using unique idempotency keys, version locks, and full audit trails—never raw SQL writes.

3. Protect Against Indirect Prompt Injection and Stale Context

When integrating external emails, customer uploads, or third-party supplier PDFs around legacy workflows, untrusted input text must never gain elevated API privileges. Separate data retrieval from tool policy: retrieved documents can inform suggested answers, but only server-verified user tokens determine permitted endpoints.

Simultaneously propagate record revision timestamps and deletion tombstones from core systems into retrieval indices. Operators lose confidence immediately if an assistant cites an archived policy or superseded invoice status because nightly batch jobs lagged behind transactional updates.

4. Shadow Rollout Before Any Live Automation

Deploy new integration sidecars in silent shadow mode first. Run proposed classifications or schema extractions in parallel while operators continue normal workflows, logging agreements, latency, and permission rejections cleanly. Test revoked user sessions, duplicate webhook retries, upstream API timeouts, and malformed attachments deliberately in staging before turning draft suggestions live.

5. Preserve Graceful Degradation When External Models Fail

Treating external LLM endpoints as hard synchronous dependencies inside legacy ERP screens turns vendor downtime into stalled operations floors. Wrap every AI enrichment request inside short network timeouts, queued retries, and deterministic UI fallbacks so customer service reps and finance teams keep processing orders uninterrupted if a model provider experiences a regional outage.

Because your core system of record remains untouched and authoritative throughout integration, disabling or rolling back an experimental sidecar feature never threatens transactional history or compliance reporting.

Related reading: Enterprise Document Workflow Architecture, RAG Production Readiness Checklist, and Production AI & Integration Systems Advisory.

For a documented example of conventional document capture, routing and access controls in regulated operations, see the enterprise insurer workflow case study. It illustrates why digitizing documents is only one part of the workflow.

Need AI capability around a mission-critical legacy platform?

We can design clean read/write API boundaries that deliver automation gains while preserving existing audit and compliance controls.

Discuss an Architecture Problem →