All insights

Agentforce

Agentforce vs. OpenAI: a stack-honest comparison for building enterprise AI agents

One is the agent layer of a CRM; the other is the agent layer of the model frontier. They're both real ways to build enterprise agents, and they win in different worlds. Here's where each fits: grounding, governance, build model, cost, lock-in, and the tiebreaker question that settles most evaluations.

Agentforce vs. OpenAI: a stack-honest comparison for building enterprise AI agents, article illustration

The shortlist keeps coming down to these two, and the debate keeps talking past itself. One camp says: we already run on Salesforce, obviously we use Agentforce. The other says: OpenAI has the best models and the most flexible tooling, why would we box ourselves into a CRM vendor’s agent framework? Both statements are true. Neither settles anything, because the two platforms aren’t competing for the same job. They’re the agent layers of two different things.

Agentforce is the agent layer of a CRM: agents live next to the customer record, act on it under the platform’s security model, and ground themselves in your Salesforce data by default. OpenAI’s stack (AgentKit, the Agents SDK, the Responses API, ChatGPT Enterprise) is the agent layer of the model frontier: maximum flexibility, the strongest general-purpose models, and near-total freedom over how you assemble the agent, in exchange for owning the data plumbing, the integrations, and the governance-to-your-systems yourself. We work on the Salesforce side of this fence, so you know our vantage point, but this comparison is only useful if it’s honest about where OpenAI wins, and it wins in more places than Salesforce marketing admits. Here’s the comparison on grounding, build model, governance, cost, and lock-in, and the one question that resolves most real evaluations.

Two platforms, two centres of gravity

Agentforce is Salesforce’s agent platform. Agents are built from topics (bundles of natural-language instructions and executable actions drawn from Flow, Apex, prompt templates, and external services) and orchestrated at runtime by the Atlas Reasoning Engine, which plans which actions to run and in what order. Its centre of gravity is the CRM: the agent sits next to the record, reads and writes it under the running user’s permissions, and grounds on unified Salesforce data through Data 360 retrievers with no pipeline to build. Multi-agent orchestration, a supervisor delegating to specialists, went GA in the Summer ‘26 release.

OpenAI’s enterprise story is younger and moving faster, which cuts both ways. AgentKit, launched in October 2025, packaged a visual Agent Builder, a Connector Registry, an Evals suite, and ChatKit (an embeddable chat UI). Under it sits the durable layer: the Agents SDK, a code-first framework with tools, guardrails, sessions, and human-approval hooks, and the Responses API, whose hosted file_search tool runs retrieval over vector stores you populate. The models, the GPT-5 family, are the frontier draw, and ChatGPT Enterprise wraps it all in enterprise controls. Its centre of gravity is the model and the developer: you bring the data, the integrations, and the system of record.

One clarification that matters, because it’s a live signal about the OpenAI stack’s stability: OpenAI is winding down the visual Agent Builder and Evals, making them read-only on October 31, 2026 and unavailable from November 30, 2026, per its own deprecations notice. The recommended paths forward are the Agents SDK for code and Workspace Agents in ChatGPT for natural-language use cases; ChatKit stays. That’s not OpenAI abandoning agents, it’s consolidating a thirteen-month-old no-code surface into code, but it tells you something real about which platform expects you to absorb churn.

Here’s the comparison in one view before we take it apart:

DimensionAgentforceOpenAI (AgentKit / Agents SDK)
Natural homeSalesforce CRM, Service, Sales, Experience Cloud, SlackAny app you build; ChatGPT for the workforce
GroundingData 360 retrievers over unified CRM + federated data, no plumbingfile_search over vector stores you build and maintain
System of recordThe Salesforce record the agent already sits onWhatever you integrate; OpenAI holds none
Build modelDeclarative topics + actions (Flow, Apex, prompts); Agent ScriptCode-first Agents SDK (visual Agent Builder retiring Nov 2026)
GovernanceEinstein Trust Layer, inline PII masking, runs in user’s permission model, auditChatGPT Enterprise, ZDR, SOC 2 Type II, SSO/SCIM, audit logs
Pricing meterFlex Credits (~$0.10/action) or ~$2/conversation; per-user editionsModel tokens + hosted-tool fees; ChatGPT Enterprise per-seat
Lock-in vs optionalityTight Salesforce coupling, batteries includedModel and stack optionality, you assemble the parts

Grounding: unified-by-default versus bring-your-own-index

This is the dimension that decides agent quality, and it’s where the two philosophies diverge hardest. Agentforce grounds on your CRM data through Data 360 (identity-resolved profiles, related records, knowledge) retrieved at reasoning time without you standing up an index. If Salesforce already holds the customer, the case history, and the entitlement, the agent reads them where they live. The data foundation is the whole game, and Agentforce’s advantage is that for a Salesforce shop, that foundation is largely already there.

OpenAI’s file_search is a capable retrieval tool. It rewrites queries, runs semantic and keyword search in parallel across vector stores, and reranks results, which is a solid RAG stack out of the box. But the vector store is yours to populate and keep fresh. You extract the data from wherever it lives, chunk and embed it, handle updates, and enforce which user may see which chunk. For data that isn’t centred on Salesforce (a lake, a document corpus, a bespoke app database) that flexibility is exactly right, and Agentforce would make you federate or ingest it first. For data that is centred on Salesforce, you’d be rebuilding, outside the platform, a unified profile the platform already maintains. Grounding is where “which world is your data in” stops being philosophical and starts being an engineering estimate.

Governance: the model boundary versus the data boundary

Both platforms have real enterprise controls, and they protect different boundaries, this is the distinction most comparisons miss. OpenAI’s controls guard the model boundary: ChatGPT Enterprise enables zero data retention by default, doesn’t train on your business data, and carries SOC 2 Type II, SAML SSO, SCIM, audit logs, and customer-managed keys. Those are the right controls for “our prompts and outputs don’t leak or train the model.”

The Einstein Trust Layer guards the data boundary inside your systems. It masks PII before the prompt reaches the model and demasks the response, enforces zero retention with third-party model providers, and, the part that has no OpenAI equivalent because OpenAI doesn’t hold your CRM, runs the agent within the requesting user’s permission model and field-level security. That means the agent structurally cannot surface a field the user couldn’t see themselves. With OpenAI, that guarantee is yours to build: nothing stops your agent from retrieving a chunk the end user shouldn’t see unless you wired the authorization into the retrieval layer. Neither approach is more secure in the abstract; they secure different things, and if the agent acts on regulated CRM data under per-user access rules, the platform that already enforces those rules is doing work you’d otherwise own.

Build model: declarative platform versus code frontier

Agentforce is declarative-first. You define topics and actions, wire deterministic logic through Flow and Apex, and use Agent Script to pin down where the model shouldn’t improvise. Admins and Salesforce developers are productive without leaving the platform, and the actions inherit the org’s security and governance for free. The ceiling is the platform: you build within what Agentforce exposes.

OpenAI is, after the Agent Builder wind-down, decisively code-first. The Agents SDK gives engineers total control (custom tools, guardrails, orchestration logic, model choice per step, human-approval gates) and the frontier models to run it on. The cost is that you’re now maintaining an application: infrastructure, deployment, retrieval, evals, and the integrations to every system the agent touches. This is the same trade-off as Agentforce versus building your own agent stack, with OpenAI as the most credible “build your own” option. You get maximum control and maximum ownership, which is a gift to a strong engineering team and a tax on a lean one.

Cost: two meters you can’t line up directly

Pricing comparisons here are mostly apples-to-oranges, and anyone who hands you a clean per-agent number is hiding an assumption. Agentforce meters Flex Credits(roughly $0.10 per standard action, sold at $500 per 100,000 credits) or about $2 per conversation, plus per-user edition options. The gotcha is that the Atlas engine can call several actions per interaction, so a chatty agent multiplies the per-action cost; the optimization levers are real and worth pulling. OpenAI meters model tokens plus hosted-tool fees, with ChatGPT Enterprise sold per seat. A reasoning-heavy agent on frontier models can run up token costs fast, and long contexts compound it.

The honest framing: Agentforce’s cost is more predictable per unit of work but climbs with action count and assumes you’re already paying for the Salesforce platform underneath. OpenAI’s cost is more elastic and model-dependent, cheaper to start, and easier to let run away on tokens if nobody’s watching the context. Model both against your real interaction volume before you let either pricing page decide the architecture.

The thing nobody’s forcing you to choose

Here’s the part both sales teams underplay: this is frequently a both decision, not an either/or. Salesforce supports bringing your own LLM. You can run OpenAI’s models inside Agentforce, under the Einstein Trust Layer’s masking and governance, and choose the model per use case. And the Model Context Protocol lets agents on either side discover and call external tools over a standard interface, so an OpenAI-built agent can reach Salesforce capabilities and vice versa. The common mature architecture is Agentforce owning the CRM-grounded, action-taking agents that operate on the record under the trust layer, while an OpenAI-built application handles the reasoning-heavy or non-CRM workloads, with OpenAI’s models available to both. Framing it as a religious war costs you the option that’s usually correct.

The tiebreaker question

When an evaluation stalls, one question settles it: is Salesforce your system of record, and does the agent need to act on that record under its security model?

If yes (the agent resolves a case, updates the opportunity, reads entitlement, writes back to the account, all governed by who the user is) Agentforce is doing work you would otherwise rebuild badly outside the platform: the unified data, the per-user access enforcement, the native action layer. Choosing OpenAI there means reconstructing Salesforce’s data-and-security substrate in your own code.

If no (the agent’s value is reasoning over documents, a non-Salesforce app, or a data estate that doesn’t centre on the CRM, and you have the engineering muscle to own the stack and want model optionality) OpenAI’s Agents SDK is the stronger, more flexible foundation, and forcing it into Agentforce would fight the platform’s grain.

Most enterprises have both kinds of work, which is why most end up with both platforms. The mistake isn’t picking the “wrong” one; it’s picking one religiously and then paying to make it do the job the other was shaped for. Match the platform to where the data and the actions live, keep the option to run OpenAI’s models inside Salesforce’s governance when that’s the best of both, and let the tiebreaker, not the loudest vendor in the room, decide each agent.

Understanding the basics

Is Agentforce better than OpenAI for building AI agents?

Neither is universally better. They’re the agent layers of different things. Agentforce is built into Salesforce CRM, so its agents ground on unified customer data and act on the record under the platform’s per-user security with no plumbing to build. OpenAI’s Agents SDK and Responses API give you the frontier models and near-total flexibility, but you own the data integration, retrieval, and governance-to-your-systems. Agentforce wins when Salesforce is your system of record and the agent must act on it; OpenAI wins for non-CRM workloads, maximum model optionality, and teams with the engineering capacity to assemble and run the stack.

Can you use OpenAI models with Salesforce Agentforce?

Yes. Salesforce supports bringing your own LLM, so you can run OpenAI models inside Agentforce under the Einstein Trust Layer, which masks PII before the prompt reaches the model and enforces zero retention, and select the model per use case. The Model Context Protocol also lets agents on either platform call each other’s tools over a standard interface. In practice many enterprises use both: Agentforce for CRM-grounded, action-taking agents and an OpenAI-built application for reasoning-heavy or non-CRM work, with OpenAI’s models available to both sides.

What is OpenAI AgentKit, and is it being discontinued?

AgentKit, launched in October 2025, bundled a visual Agent Builder, a Connector Registry, an Evals suite, and ChatKit (an embeddable chat UI) on top of the Agents SDK and Responses API. OpenAI is winding down the visual Agent Builder and Evals (read-only from October 31, 2026 and unavailable from November 30, 2026) and steering builders to the code-first Agents SDK, or to Workspace Agents in ChatGPT for natural-language use cases; ChatKit remains. So the no-code visual surface is being retired, not OpenAI’s agent capability, which consolidates into code.

How do Agentforce and OpenAI differ on governance and data security?

They secure different boundaries. OpenAI’s ChatGPT Enterprise guards the model boundary: zero data retention by default, no training on your business data, SOC 2 Type II, SSO/SCIM, audit logs, and customer-managed keys. The Einstein Trust Layer guards the data boundary inside Salesforce: inline PII masking and demasking, zero retention with third-party models, an audit trail, and (with no OpenAI equivalent, because OpenAI doesn’t hold your CRM) running the agent within the requesting user’s permissions and field-level security. If the agent acts on regulated CRM data under per-user access rules, Agentforce enforces those rules natively; with OpenAI you build that authorization into the retrieval layer yourself.


Trying to decide whether an agent belongs in Agentforce, in an OpenAI-built application, or in a deliberate combination of the two, and how to keep the CRM data governed either way? Talk to us. Matching the platform to where your data and actions live is exactly the work we do.

Keep reading

All insights