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 AgentsAI 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 AgentsAI 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?
Talk with EmerSoft about the software factory, AgentsAI, and SAP, AWS, and Azure integrations — with accelerated delivery at enterprise standard.
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 (AgentsAI), 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
AI Agents vs. RPA vs. Copilots
RPA clicks. Copilots assist a person. Agents act with tools under policy. Mixing the three without a decision rule is how budgets disappear.
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.
How AI Agents Accelerate Legacy System Modernization
Agents do not rewrite the mainframe in a weekend. They compress discovery, contracts, and tests so a strangler fig can move value without stopping operations.