Integrating AI Agents with SAP, Salesforce and Oracle
How to integrate enterprise AI agents with SAP, Salesforce, and Oracle: APIs and events over UI bots, idempotency, allowlists, and EmerAgents as the orchestration layer — not unattended writes to ERP.
By Emerson Amorim · Founder and Principal Software Engineer
SAP, Salesforce, and Oracle are where money and contracts live. An enterprise AI agent that “just uses the UI like a user” is RPA with a language model attached — you inherit every screen change and you add a new class of error: fluent, wrong postings.
The factory pattern is a tool layer: versioned APIs and events, idempotency keys, and EmerAgents as the only orchestrator that may choose those tools. The agent never receives a standing superuser role.
Agent tool layer on systems of record
- 01Agentplan + propose
- 02Policyallowlist + HITL
- 03AdapterOData, Composite, REST
- 04SoRSAP / SF / Oracle
- 05Auditreplayable log
SAP
Prefer OData services, BAPIs, or an approved middleware. Idempotency on create. The agent may read business objects in staging freely; production writes require a human and a compensating transaction story. Do not scrape SAP GUI.
Salesforce
Composite API and platform events beat click-paths. Bulk and governor limits are part of the design. An agent that “updates every opportunity” without a bulk pattern will fail in ways that look like a CRM outage.
Oracle
Whether E-Business Suite, Fusion, or a custom Oracle stack, the same rule: published APIs or a governed integration bus. Queue the write. Make the agent’s unit of work a message you can replay, not a session on a form.
type RecordSystem = "sap" | "salesforce" | "oracle";
type ToolCall = {
system: RecordSystem;
op: "read" | "write";
idempotencyKey: string;
payload: unknown;
};
async function dispatch(call: ToolCall, hitlApproved: boolean) {
if (call.op === "write" && !hitlApproved) {
throw new Error("write_requires_hitl");
}
// Adapter maps to OData / Composite / REST. No GUI.
return { ok: true, replayId: call.idempotencyKey };
}Ready to accelerate your enterprise software?
Book the Agentic Diagnosis 30/60/90: bottlenecks, EmerAgents pilot, and an industrialization plan on your stack — not a generic demo.
LinkedIn · Emerson Amorim
An AI agent with SAP_ALL is not innovation. It is an incident.
If your “SAP agent” logs in as a person and clicks, you built expensive RPA with extra hallucination. The pattern that survives audit: • OData / BAPI / RFC or an official API layer — not the GUI • Salesforce Composite and platform events with idempotency keys • Oracle REST and queue-based posts, not unattended Forms • Read tools in production first; writes behind HITL • One orchestration trail (EmerAgents), not three custom scripts Full article with a tool-layer diagram and a TypeScript sketch: https://www.emersoftware.com.br/en/blog/integrating-ai-agents-with-sap-salesforce-and-oracle Integration practice: https://www.emersoftware.com.br/en/system-integration — Emerson Amorim
Keep reading
Custom AI Agents for SAP | EmerAgents
SAP AI agents that click screens will fail audit. Agents that call versioned APIs with idempotency keys and human gates can reach production.
AI Agents vs RPA vs Copilots: which architecture for each enterprise scenario?
A copilot augments the human. RPA repeats a path. An AI Agent decides and calls contracts. Most “agents” of 2024 were one of the first two with an LLM glued on.
Enterprise AI Agents: From Pilot to Production
Pilots fail on identity, tools, and evaluation — not on the model. Here is a production path for enterprise AI agents with governance you can audit.