You are currently viewing Can I Use AI Agents with Salesforce? What Builders Need to Know

Can I Use AI Agents with Salesforce? What Builders Need to Know

Yes — you can absolutely use AI agents with Salesforce, and you have three clear paths to do it: Salesforce Agentforce (native autonomous agents), the Einstein copilot/predictive layer, or custom/external AI agents that talk to Salesforce through its APIs. The path you choose depends on how much control you want versus how much you want Salesforce to handle for you.

This article breaks down all three paths, what each one actually costs you in effort and flexibility, and how to pick the right one for what you’re building. If you’re a builder evaluating AI agents on Salesforce, this is your field guide.


The Short Answer: Three Ways to Put AI Agents on Salesforce

Every AI-agent-on-Salesforce project falls into one of three buckets. Understanding the difference up front saves you weeks of dead ends.

  1. Native — Salesforce Agentforce. Salesforce’s own autonomous agent platform, built directly on the Salesforce platform. You configure agents with natural language, Flow, and Apex, and Salesforce runs them inside its trust boundary.
  2. Assisted — Salesforce Einstein. The predictive and copilot layer that lives inside the Salesforce UI. It suggests, drafts, and predicts, but it doesn’t act autonomously the way Agentforce does.
  3. Custom/External — Bring your own agent via APIs. You build or buy an AI agent outside Salesforce (using any LLM or framework) and connect it to Salesforce through REST APIs, Apex, or MuleSoft.

The direct answer to “Can I use AI agents with Salesforce?” is yes — through Agentforce, Einstein, or custom API integrations, and each path trades off control, effort, and cost differently.


Path 1: Salesforce Agentforce (Native Autonomous Agents)

Agentforce is Salesforce’s flagship answer to the AI agent wave. It’s the fastest way to get a working, autonomous agent on your Salesforce data, because the agent, the data, and the guardrails all live in one place.

How Agentforce works

Agentforce layers an LLM on top of your Salesforce data through a component called the Atlas Reasoning Engine, which sits behind the Einstein Trust Layer for security and governance. When you build an agent, you’re not writing a chatbot from scratch — you’re defining the agent’s role, the actions it can take, and the data it can see.

Key building blocks include:

  • Agent Builder — a low-code interface where you describe what the agent does in plain language
  • Agent Actions — the specific tasks the agent can execute, built from Flows, Apex classes, or external API calls
  • Agent2Agent (A2A) and Model Context Protocol (MCP) — standards that let Agentforce agents talk to other agents and tools

Agentforce has shipped fast. The original Agentforce launched in October 2024, Agentforce 2 followed in December 2024 with an improved reasoning engine, Agentforce 2dx arrived in March 2025 with proactive workflow triggers, and Agentforce 360 was announced at Dreamforce 2025.

What Agentforce is best for

  • Teams already living in Salesforce who want agents in sales, service, marketing, commerce, or Slack
  • Builders who want autonomy without managing their own LLM infrastructure
  • Use cases where data security and governance are non-negotiable, since everything stays inside Salesforce’s trust boundary

The trade-off

Agentforce gives you the least control over the underlying model and architecture. You’re configuring on Salesforce’s terms, and you pay for it through Salesforce licensing and per-conversation pricing. If you need a highly custom agent with your own model or a non-Salesforce data stack, you’ll feel constrained.


Path 2: Salesforce Einstein (Predictive & Copilot Layer)

Einstein is Salesforce’s older, broader AI brand — and it’s important to understand where it fits now that Agentforce exists, because the naming has shifted.

Einstein vs. Agentforce: the honest distinction

Einstein is the assisted layer. It predicts outcomes, scores leads, drafts emails, and surfaces recommendations to a human who then acts. Agentforce is the autonomous layer — the agent acts on its own within defined guardrails.

The distinction matters because the names have moved. Salesforce renamed Einstein Copilot to Agentforce in January 2025 with no underlying functionality change. So when you hear “Einstein Copilot” in older docs, forums, or tutorials, that same assisted copilot capability now lives under the Agentforce umbrella.

In practice, builders still lean on Einstein for:

  • Predictive scoring — lead, opportunity, and case scores that route work to the right people
  • Einstein GPT features — drafting emails, summarizing records, generating content inside the CRM
  • Recommendations — next-best-action suggestions that a human approves

When to choose Einstein over Agentforce

Choose Einstein when you want AI to assist a human workflow rather than replace it. It’s lower risk, lower cost, and requires no agent architecture — the AI features are embedded in the screens your team already uses.

Choose Agentforce when you want the AI to do the work — resolve a case, qualify a lead, or update records without a human in the loop.


Path 3: Custom or External AI Agents via Salesforce APIs

This is where builders get the most freedom. Instead of using Salesforce’s AI, you bring your own — any LLM, any framework, any agent platform — and connect it to Salesforce through its APIs.

How the API path works

Your external agent talks to Salesforce the same way any other application does:

  • REST and Bulk APIs — for reading and writing standard and custom objects
  • Apex REST endpoints — for exposing custom business logic to your agent
  • MuleSoft — Salesforce’s integration platform, useful when your agent needs to orchestrate across multiple systems, not just Salesforce
  • Retrieval-Augmented Generation (RAG) on Data Cloud — for grounding your agent’s responses in your unified customer data

The modern pattern looks like this: your agent receives a request, calls Salesforce to pull context (often via RAG from Data Cloud), reasons over it with your LLM, then writes results back through the API. You can even make your custom agent available inside Agentforce by exposing it as an Agent Action using Apex and an OpenAPI spec.

What the API path is best for

  • Builders who want full control over the model, prompt, and architecture
  • Teams with data or logic that lives outside Salesforce
  • Multi-system orchestration where Salesforce is just one node

The trade-off

You own everything: the LLM, the orchestration, the security, the error handling, and the integrations. That’s real engineering work, and it’s why this path has the highest effort and the highest flexibility at the same time.


Comparing the Three Paths

Here’s the decision at a glance. Use this table to shortlist before you go deeper.

Factor Agentforce (Native) Einstein (Assisted) Custom via APIs
Control Low — Salesforce’s platform Low — embedded features High — you own it
Effort Low to medium Low High
Cost Licensing + per-conversation Included in editions Your infra + integration
Flexibility Medium Low High
Security/Governance Built-in (Trust Layer) Built-in You build it

The rule of thumb: start with Agentforce if you want autonomy fast and safely; use Einstein if you want AI assisting humans; reach for the API path only when you need control the native tools can’t give you.


What Builders Actually Get Wrong

Three mistakes show up repeatedly in real Salesforce AI projects.

  1. Assuming “AI agent” means one thing. It doesn’t. An autonomous Agentforce agent, an Einstein recommendation, and your own external LLM agent are three different animals with different licenses, limits, and failure modes. Pick the path first.
  2. Underestimating data quality. Every path is only as good as the data behind it. An agent grounded in messy, duplicate, or siloed records produces confident-sounding wrong answers. Data Cloud and a clean object model matter more than the model you pick.
  3. Skipping governance. Autonomous agents can write to your CRM. If you don’t define which objects, fields, and actions an agent can touch — and log what it does — you’re gambling with your customer data. Salesforce’s Trust Layer helps inside the platform; outside it, the responsibility is yours.

Getting Started: A Builder’s Checklist

Here’s the fastest path from “should we do this?” to a working agent.

  1. Define the job, not the tech. Write down exactly what the agent must accomplish (e.g., “auto-qualify inbound leads and update the opportunity stage”).
  2. Pick your path using the comparison table above.
  3. If native — start in Agent Builder, define the role and actions, and test on a sandbox before touching production.
  4. If assisted — enable the Einstein features your edition includes and measure adoption before expanding.
  5. If custom — map your data flow, expose the right Apex/REST endpoints, and lock down authentication and logging from day one.
  6. Govern before you scale. Define the agent’s permissions and audit trail before it writes to live records.

The Bottom Line

You can use AI agents with Salesforce — that’s not the question anymore. The real question is which of the three paths matches what you’re building, because the choice determines how much control, cost, and engineering effort you’ll take on.

Native Agentforce gets you autonomous agents fastest and safest. Einstein keeps AI in the assistant’s seat. Custom APIs give you total control at the price of total responsibility.

Match the path to the job, govern it before you scale it, and you’ll build something that actually works in production — not just in a demo. (For a deeper breakdown of the full architecture, watch for our forthcoming complete guide to AI agents with Salesforce.)


Want to go deeper? Join the AI Agent Builders waitlist for first access to hands-on training: Join the AI Agent Builders waitlist


About the Author

Anthony Odole is a former IBM Senior Managing Consultant, where he served as Enterprise Architect on Fortune 500 engagements, and the founder of AIToken Labs. He helps business owners cut through AI hype by focusing on practical systems that solve real operational problems.

His flagship platform, EmployAIQ, is an AI Workforce platform that enables businesses to design, train, and deploy AI Employees — AI agents that function as digital workforce members — that perform real work without adding headcount.

Anthony Odole

Ex-IBM Senior Managing Consultant & Enterprise Architect (18 years). Founder of AIToken Labs, building AI Employees for small businesses.