Wiring LLM Agents into Systems That Predate the Internet
Agent integration follows a hierarchy: real APIs first, database-level access second, document parsing third, RPA screen automation last. The agent supplies judgment; each layer supplies hands. Permissions, idempotency and audit logging are not optional extras — they're what separates an integrated agent from an incident report.

The integration hierarchy
Start at the cleanest layer available. APIs give you contracts and errors you can reason about. Direct database integration works when the vendor is gone but the schema is knowable — read-heavy, write-carefully. Document parsing (PDFs, exports, scans) turns the system's own outputs into an interface. RPA is the last resort that ships real projects: the agent decides, the robot clicks. Our bookkeeping work spans this whole ladder — including national tax-authority interfaces that behave like all four at once.
Write-path discipline
Reading is safe; writing is where careers end. Every write an agent performs needs: scoped permissions (the agent's credentials can touch only what it must), idempotency (retries must not double-post a payment), human-in-the-loop thresholds (amounts or categories above X route for approval), and a reversal plan. Design the undo before the do.
Logging as a first-class feature
Every agent decision gets logged with its inputs, reasoning trace and action taken — not for compliance theater, but because the log is how you debug judgment. When the agent misclassifies an invoice in month three, the trace tells you whether the fix is a prompt, a rule, or a retraining set.
Related questions
Our core system has no API at all. Is an agent still viable?
Should the agent have its own user account?
How do we handle systems that change without notice?
Related from the engineering desk
Have the problem this article describes?
One scoping call with an engineer. A straight answer on whether it's buildable and what it costs.