Guide Salesforce, security and AI agents

How to use AI in Salesforce: the five kinds of AI tool and how to choose

Updated 10 min read By the BAFO team

Short answer: This guide sorts the ways to use AI in Salesforce into five kinds, which differ in what they can read, what they can write and who approves a change. As of October 17, 2026, they are Salesforce's own AI (Einstein features and Agentforce), apps from Salesforce's marketplace that add AI, a general assistant connected through a connector or MCP, a custom build on Salesforce's APIs, and a purpose-built agent for one job. Choose by the job and by who must approve a change, not by the name, and try it in a sandbox first.

The five kinds at a glance

KindWhat it isWhere to read more
1. Salesforce's own AIEinstein features and Agentforce, configured inside SalesforceSalesforce Einstein, Agentforce
2. Marketplace apps with AIAgents, actions and apps installed from Salesforce's marketplaceSection 2 below
3. A general assistant, connectedChatGPT, Claude or Copilot reaching Salesforce through a connector or an MCP serverThe Salesforce MCP server, and the guides for Claude, ChatGPT and Copilot
4. A custom buildYour own code on Salesforce's APIs or Apex, with an AI service you chooseBuild or buy an AI invoice reader, Certinia API guide
5. A purpose-built agentA finished agent for one job, such as vendor invoices into Payable InvoicesAgentforce and purpose-built agents compared

Some tools sit between two kinds, and a team can use more than one. The map is there so that you ask the same questions of each.

1. Salesforce's own AI: Einstein features and Agentforce

Salesforce Help documents its AI under one heading, "Agentforce and Einstein Generative AI". Agentforce is the platform for building and running AI agents, and Einstein is the name for AI built into the platform's features. The names have moved over the years, so what Salesforce Einstein is and what Agentforce is set them out as Salesforce's pages state them.

Three things to know, from the Salesforce pages we read on October 17, 2026:

  • The Trust Layer. Salesforce's Einstein Trust Layer page says the data used to ground a prompt is retrieved with the permissions of the user running it, that sensitive data can be masked before it goes to a model, and that prompts and responses are logged.
  • Licenses. Help lists the editions Agentforce is available in and says required add-on licenses vary by agent type. This page states no price. Ask Salesforce what your org holds.
  • Testing. Salesforce's developer guide lists a Testing Center, Agentforce DX tests and a Testing API for agents.

Right answer when the work sits inside Salesforce's standard processes, you have admins or developers to configure and test it, and you want the governance to stay in Salesforce.

2. Marketplace apps that add AI

Salesforce's marketplace has been called AppExchange. On October 17, 2026, the page at appexchange.salesforce.com carried the title "Salesforce AppExchange is now AgentExchange" and described itself as a marketplace for agents, apps and capabilities. It says you can browse, install and deploy agents, actions and apps into your environment, and it offers skills and plugins from Salesforce and third-party MCP servers that can connect into Agentforce or Slack.

This page names no listing. An app is a vendor's product, and it should be judged by the questions at the end of this page: what it reads and writes, whose permissions it uses, whether it runs in your org or calls a service the vendor runs, and what happens when it fails.

Right answer when a vendor has already built the job you need, you can try it in a sandbox, and the vendor answers the questions in writing.

3. A general assistant connected through a connector or MCP

Here you talk to an assistant you already use, and Salesforce is a source and a target. As of October 17, 2026, Salesforce documents hosted MCP servers for outside AI clients. Each person signs in, and Salesforce's pages say the client acts within that person's existing permissions and that actions are attributed to the named user. Salesforce's security guidance tells teams to start from the most restrictive setup and expand as needed. Its general guidance advises using the hosted server rather than a custom proxy around the REST API, which it says undermines the platform's controls. Its overview says the hosted servers are intended for customers with Flex Credits and that usage may be billed.

Salesforce is also packaging this route. Its AIforce page lists "Salesforce in Claude" among ready-made experiences, and a separate marketplace page lists "Sales Cloud in Claude" with a sign-up for a beta. Check what Salesforce's announcement says about availability in the Claude guide. We have not tested either. Our guides cover the documented routes and checks for Claude, ChatGPT and Microsoft Copilot, and the Salesforce MCP server explains the pieces.

Right answer when analysts or admins already work in that assistant and want to question the org, you can start read-only in a sandbox, and you have checked how the assistant behaves before it writes.

4. A custom build on the API or Apex

Your developers write code that calls Salesforce (the REST API, Apex or Flows) and an AI service of your choice. You decide what it reads, what it writes, where a person approves, how it logs and how it fails, and you maintain it. Salesforce's advice to use the hosted server instead of a custom proxy shows what you take on: authentication, authorization and request logs become your design. Salesforce's own developer tools sit here too. The Agentforce developer guide lists an Agent API for chatting with an agent from code, and Agentforce DX for building with Salesforce CLI and VS Code.

If Certinia is involved, the Certinia API guide says which of its APIs to use, and Salesforce API limits and AI agents covers the limits an agent can hit. For invoices, build or buy an AI invoice reader compares the two routes.

Right answer when your process is unusual, no finished tool covers it, and you have developers to build, test and maintain it.

5. A purpose-built agent for one job

A purpose-built agent is a finished tool for a defined job. You connect it and review its results instead of designing the logic. BAFO, made by Cross Cloud Partners and independent of Salesforce, is one example. It has these parts:

  • The Accounts Payable Agent. On its page you upload vendor invoices and review what was extracted on a card for each invoice. The page creates the invoices in Salesforce when you press Create All, as the Salesforce user who signed in.
  • The Billing Contract Agent. From a signed contract you have reviewed, it creates a Billing Central contract and its lines with the status Draft. Activation is left to Certinia.
  • The BAFO assistant, whose free trial and plans are on the BAFO Assistant page. It is a chat inside Salesforce. It works with the permissions of the person using it, shows each proposed change on a card and applies it only after the person confirms.

BAFO is a separate product: it is not part of Agentforce and not a connector for ChatGPT, Claude or Copilot. Other vendors build purpose-built agents too, and the questions below apply to them equally.

Right answer when the job has a well-known shape, such as a vendor invoice becoming a Payable Invoice, and you would rather review results than build and test the logic.

How the five compare

These tables are about the kinds, not about any one product. Where a cell says "depends", the answer is in the product's own documentation, so ask for it.

What it can touch

KindCan readCan writeWho approves a changeWhose permissions
1. Salesforce's own AIWhat the feature or agent is set up to use. The Trust Layer page says grounding follows the running user's permissionsWhat the agent's actions are built to doSet by the agent's design. Agent Script lets a builder fix rules in codeDepends on the agent. The pages we read give no single rule
2. Marketplace appsDepends on the app and what you grant itDepends on the appDepends on the appDepends on the identity the app runs as
3. Connected assistantWhat the enabled server or connector exposes, as the signed-in personWhat the enabled tools allowDecided in the assistant, so do not assume it asksThe signed-in person's, per Salesforce's MCP pages
4. Custom buildWhat your code readsWhat your code writesWhatever you buildThe identity your code uses
5. Purpose-built agentWhat the job needsWhat the job needs. In BAFO, the web agents create invoices or Draft contracts and the assistant proposes changes on cardsBuilt in by the vendor. In BAFO you press Create All for invoices, Create Draft Billing Contract for a contract, or Confirm on a cardIn BAFO, the signed-in person's own Salesforce permissions

How it behaves

KindWhere data goesHow you test itHow it fails
1. Salesforce's own AISalesforce's Trust Layer page describes masking before a prompt goes to a model and a zero-data-retention policy that Salesforce says it enforces with its outside model providersTesting Center, Agentforce DX tests or the Testing API, in a sandboxGenerated content can be wrong. Salesforce's page says to check key details before sharing it
2. Marketplace appsDepends: in your org, or to a service the vendor runsInstall in a sandbox if the vendor allowsDepends on the app. Ask
3. Connected assistantWhat Salesforce returns becomes part of the conversation, and that assistant's terms applyA sandbox, the read-only server, an ordinary userSign-in or scope errors. Text in a record can try to steer the assistant
4. Custom buildWherever your code sends itYour own tests, plus a sandboxYou own retries, timeouts, limits and duplicates
5. Purpose-built agentTo the vendor's service. Ask where it is processed and how long it is keptA sandbox with real documents, comparing each result with its sourceA wrong reading, a duplicate, a timeout in the middle of a write. Ask what the vendor does about each

Which kind fits which job

  • Questions about your data, from people who already work in an assistant: kind 3, read-only and in a sandbox first.
  • Agents of your own design across service, sales or internal work: kind 1.
  • A job a vendor has already built, in a form you can try: kind 2 or kind 5.
  • A process only you have: kind 4, or kind 1 if you want it to stay inside Salesforce.
  • A well-known finance job, such as vendor invoices into Payable Invoices or signed contracts into billing contracts: kind 5, checked against the AI invoice processing controls checklist.

The kinds are not exclusive. A team can use Agentforce for service, an assistant for analysts and a purpose-built agent for accounts payable. Agentforce and purpose-built agents compared and a general chat assistant compared with a purpose-built finance agent set out the trade-offs for finance work.

Questions to ask any vendor

  1. What can it read, and which Salesforce user's permissions does it use? Test it with an ordinary user, not the admin who set it up. See Salesforce permissions for AI agents.
  2. What can it write, and can writing be switched off?
  3. Who approves a change, and is that enforced by the tool itself or only by a prompt or a screen?
  4. Where does my data go, who can see it, how long is it kept and is it used for training? Ask for the answer in writing.
  5. How do I see what it did, and under which user?
  6. How do I test it in a sandbox first? See test AI agents in a Salesforce sandbox.
  7. What happens when a request fails halfway or times out? Ask what you are told, and what the tool does next.
  8. What does it do with text in a record that tries to give it instructions? See prompt injection in Salesforce: how to limit the damage and the AI agent security checklist.
  9. How do I turn it off, and what do I lose?
  10. What changed in the last release, and how will I be told? Read the vendor's pages again before each rollout, because names, licenses and connection settings move.

Frequently asked questions

Does Salesforce have AI capabilities?

Yes. As of October 17, 2026, Salesforce Help documents Agentforce for building AI agents and Einstein features for predictions and generated content, and Salesforce's marketplace lists agents, actions and apps. Help says required add-on licenses vary by agent type, so ask Salesforce what your org has. See Salesforce Einstein and Agentforce.

Do I need Agentforce to use AI with Salesforce?

No. Connecting an outside assistant, building your own tool or using a purpose-built agent does not require it, although each route has its own requirements. Some marketplace listings are built to extend Agentforce, so check each listing.

Can I use ChatGPT, Claude or Copilot with Salesforce?

Yes, if an admin allows a route. Salesforce has setup pages for Claude and ChatGPT in its hosted MCP servers guide. Our guides cover the routes and checks for Claude, ChatGPT and Microsoft Copilot, including Microsoft's own Salesforce connectors.

Is it safe to let an AI write to Salesforce?

That depends on the controls, not on the brand. Check whose permissions it uses, which objects it can change, who approves each change and where the change is recorded. Start read-only, in a sandbox. See the AI agent security checklist.

Is BAFO made by Salesforce?

No. BAFO is made by Cross Cloud Partners and is independent of Salesforce. Its Salesforce assistant works inside your Salesforce org, and its web agents work as the signed-in person.

Sources and further reading

Where this page leans on someone else's documentation or standard, it is listed here. Check the release or edition your org runs: official pages change.

Keep reading