How Salesforce Agentforce Works: Atlas, Subagents, Actions and Pricing

What is Salesforce Agentforce and how does it work? Learn how Atlas, subagents and actions fit together, and what each run costs in Flex Credits.

Mia Parker

Mia Parker

3 December 2026

How Salesforce Agentforce Works: Atlas, Subagents, Actions and Pricing

Quick answer: Salesforce Agentforce is an AI agent platform built into Salesforce. Each agent holds subagents (called topics until April 2026), and each subagent holds instructions and actions. The Atlas reasoning engine routes a message to a subagent, builds a prompt, and loops through actions until it can answer. Usage is billed in Flex Credits, per conversation, or per user.

Salesforce Agentforce is how Salesforce puts AI agents into service, sales, and Slack. If you run a Salesforce org, you’ll meet it in your Setup menu whether you go looking or not.

If your team builds software with coding agents such as Claude Code or Codex, we’ll also show where Sharkly fits. It puts those agents on a shared task board as teammates you assign work to.

What is Salesforce Agentforce?

Salesforce’s Design and Implement Agents page calls Agentforce “the agent-driven layer of the Salesforce Platform.” Its agents work beside employees and serve customers around the clock, across sales, service, marketing, commerce, and Slack.

Agentforce needs Lightning Experience and Enterprise, Performance, Unlimited, or Developer Edition. Add-on licenses vary by agent type. Salesforce says over 18,000 companies run on Agentforce; that number is company-reported.

Agentforce agents replace scripted Einstein Bots for most jobs. Bots follow hard-coded dialogs. Agents use a large language model (LLM) to read intent and pick their next step.

How Agentforce works, piece by piece

An agent is configuration that Salesforce’s platform runs when a user, a customer, or an automation reaches it. The building blocks page names four parts: subagents and actions, data, connections and channels, and the reasoning engine.

Architecture diagram of an Agentforce run inside Salesforce: employees reach Employee agents through the Lightning panel, mobile app and Slack, customers reach Service agents through enhanced messaging such as web chat and WhatsApp, and leads get outbound email from Lead Nurturing agents; the agent's subagents hold instructions and actions such as Flows, Apex and prompt templates; the Atlas reasoning engine calls the LLM through the Einstein Trust Layer, grounds answers in CRM data, Data 360 and knowledge, logs prompts and responses to an audit trail, and each action draws Flex Credits

Subagents and actions (formerly topics)

In April 2026 Salesforce renamed topics to subagents, with no change in function. A subagent is one job an agent can do, such as Deal Management. It has:

  1. A name and description, which tell the router which messages belong to it.
  2. Reasoning instructions, written in Agent Script: deterministic logic plus natural-language prompts.
  3. Reasoning actions, the tools the LLM may call while it reasons.

Actions are how an agent gets work done. Salesforce ships standard actions, such as Answer Questions with Knowledge, and you write custom ones on Flows, Apex, prompt templates, or MuleSoft APIs. Subagent and action instructions are supported in English only.

How the Atlas reasoning engine plans a reply

Atlas is a graph-based engine. Salesforce compares it to a flowchart with nodes, variables, and transitions. Its How Agents Work page traces one message through seven steps.

Sequence diagram of the Atlas reasoning engine handling one message: the user sends a message, the Agent Router picks a subagent from its name and description, the subagent's Agent Script instructions resolve top to bottom with no LLM call, the agent builds a prompt from agent instructions, recent conversation history, the resolved instructions and allowed actions, the LLM decides to run an action, ask a question or answer, action results loop back for up to seven reasoning loops, Service agents validate the final answer for grounding and prompt injection, and the reply goes to the user

The detail worth knowing: step 3 runs no LLM at all. The engine resolves your written logic first and calls the model only after. Salesforce calls this hybrid reasoning. The loop caps at seven reasoning passes, and Service agents get an extra check that the final answer is grounded and free of prompt injection.

What can an Agentforce agent read?

Agents read your CRM data within your permission model. You can add knowledge articles, file uploads, and web sources through Agentforce Data Libraries and the Search the Web action. For unstructured data, Salesforce points you to retrieval augmented generation (RAG), which fetches relevant passages and adds them to the prompt.

Who the agent acts as depends on its type, per the execution context page:

Agent type Channels Runs as
Employee Lightning, mobile app, Slack, Experience Cloud web chat The logged-in user
Lead Nurturing Outbound email A dedicated agent user
Service Enhanced messaging (web chat, WhatsApp and others) An agent user, or the verified site user

That last row carries a warning in Salesforce’s own words. Without credential-based verification, a customer can reach every record the agent user can reach, so you must limit that access yourself.

Which models does Agentforce use?

The model option page lists three choices for the reasoning engine:

  • Salesforce Default, a managed mix. New-builder agents use GPT-4.1; legacy-builder agents use GPT-4o.
  • AWS-Hosted: Anthropic Claude Haiku 4.5 on Salesforce’s own Amazon Bedrock instance.
  • Google Gemini on Vertex AI, for agents built in the new builder.

In the new builder you can override the model per agent or per subagent. Salesforce’s own Supported Models list sets the choices. Bring-your-own models reach an agent only through a custom action that calls a prompt template, Apex, or the Models API.

Guardrails: the Einstein Trust Layer

Every model call passes through the Einstein Trust Layer. It masks sensitive data before the prompt leaves, scores responses for toxicity, and enforces zero data retention with external providers such as OpenAI. Prompts, responses, and trust signals are logged in Data 360 as an audit trail.

Memory, testing, and the audit trail

Each prompt carries the recent conversation history, which is the memory the docs describe for a turn. Salesforce’s marketing page describes a newer Long-Horizon Runtime that keeps context “across days and weeks”; we found no Help page detailing it yet.

The Agentforce Testing Center runs batch tests against subagent routing, action execution, and answer quality. Two warnings sit at the top of that page: tests consume requests and credits, and tests can modify CRM data, so run them in a sandbox.

For developers, Salesforce also sells Agentforce Vibes, a coding agent for building apps and agents on the Salesforce Platform inside its IDE or VS Code. It targets Salesforce code, not your wider product repository.

What Agentforce costs

These figures come from Salesforce’s Agentforce pricing page, read December 3, 2026. The page says it’s “subject to change” and carries no date.

Model List price What it covers
Salesforce Foundations $0 Agentforce Builder, Prompt Builder, Agent Script, Agentforce Vibes
Flex Credits $500 per 100,000 credits 20 credits per action, 30 per voice action
Conversations $2 per conversation Customer-facing agents
Agentforce add-ons $150 per user per month Unmetered employee use in Sales, Service, Field Service
Agentforce User License $5 per user per month Employee access; needs Flex Credits

The arithmetic: one credit costs $0.005, so a standard action costs $0.10 and a voice action $0.15. A service chat that runs three actions spends 60 credits, or $0.30. On conversation pricing, the same chat costs $2.

Two rules from the pricing FAQ shape the choice. Flex Credits and Conversations can’t run in the same org. And unused Flex Credits don’t roll over into the next subscription term.

What Agentforce is not built for

Agentforce is built to run Salesforce work on Salesforce data. Engineering teams often want things outside that scope:

  • Your own coding agent. You can’t assign work to the Claude Code or Codex setup your developers already pay for and have it run as an Agentforce agent.
  • Your own reasoning model. The engine uses the options Salesforce lists. Bring-your-own models are reachable only from inside custom actions.
  • Your own hardware. Agents run in Salesforce’s cloud, not on a computer you control. They aren’t available in Government Cloud.
  • Work outside Salesforce. Agents are configured, triggered, and billed inside a Salesforce org.
Comparison diagram: on the left, a Salesforce case or Slack message goes to an Agentforce agent that runs in Salesforce's cloud on models Salesforce lists and spends Flex Credits. On the right, a Sharkly task is assigned to an Agent that runs on the team's own connected Computer through a Runtime such as Claude Code or Codex, edits the team's own repository, and bills the team's own model plan

How Sharkly runs your own coding agents on the board

Agentforce answers customers. The team that builds and ships your product has a different problem: several coding agents, and no shared place to give them work. Sharkly turns those agents into a team.

Create an Agent, connect it to a Computer you registered, and pick a Runtime such as Claude Code or Codex. Per the Agents docs, the work runs through that Runtime on your Computer, on the Runtime’s model unless you pick another.

The Sharkly Agents directory in the Cancel Anything demo organization, with a Claude Code Agent listed beside the rest of the team

Assign a Task to the Agent as you would to a person. The run starts, and its comments, status changes, and token usage land on the Task.

A Sharkly task in the Cancel Anything demo organization with the Assignee control boxed: the task is assigned to an Agent

Three differences from Agentforce follow:

  1. Your models, your bill. Runs bill against the Claude Code, Codex, or API plan attached to the Runtime. Sharkly doesn’t sell tokens.
  2. Your Computer. Code changes happen in your repository, with an isolated Git worktree per Task if you choose it.
  3. Any agent. Swap Runtimes when a better coding agent ships, and keep the board, history, and workflow.
# Copy the one-time install token from the Computers page, then on the target Computer:
sharkly computer register --install-token sit_your_install_token
sharkly computer status

Sharkly syncs with Jira, and Linear and ClickUp sync went generally available in November 2026, per the Sharkly changelog. There’s no Salesforce connector. For tools without one, load the tool’s MCP server into your coding agent. For the Slack side, see how a Slack bot hands work to coding agents.

Conclusion

Salesforce Agentforce runs agents built from subagents and actions, routed and looped by the Atlas engine, grounded in your CRM under the Einstein Trust Layer, and billed per action, per conversation, or per user. If your work is customer service and sales on Salesforce data, that design fits.

If the work is code and your team already runs its own coding agents, the open question is where those agents take tasks from. Sharkly is free to start: connect one Computer, create one Agent, and assign it one small Task. For the rest of this series, see how Atlassian Rovo agents work and how Linear agents work.

FAQ

What is Agentforce in simple terms?

Salesforce’s platform for AI agents that answer questions and take actions on Salesforce data. Each agent holds subagents, each subagent holds instructions and actions, and the Atlas engine decides which to use.

How does Agentforce work?

A message goes to a starting subagent, usually the Agent Router. The chosen subagent’s instructions resolve into a prompt, the LLM picks an action or a reply, and results loop back up to seven times before the agent answers.

What are Agentforce topics?

The old name for subagents. Salesforce renamed topics to subagents in April 2026 with no change in function.

How much does Agentforce cost?

Salesforce lists Flex Credits at $500 per 100,000, with 20 credits per action, conversation pricing at $2 each, and add-ons from $150 per user per month. Salesforce Foundations is listed at $0.

Which LLM does Agentforce use?

By default, a Salesforce-managed mix; new-builder agents use GPT-4.1. Admins can switch to Claude Haiku 4.5 on Amazon Bedrock or a Google Gemini option.

Is Agentforce a coding agent?

No. Agentforce Vibes is Salesforce’s coding agent, and it targets Salesforce Platform code. For your own product code, teams run agents such as Claude Code or Codex.

Explore more

OKR Template for 2027: Free Copyable Template With Examples

OKR Template for 2027: Free Copyable Template With Examples

Need an OKR template for 2027? Copy our free template with examples, then learn how to map each key result to tasks your team can track weekly.

3 December 2026

How Zapier Agents Work: Zapier AI, Activities, MCP and Pricing

How Zapier Agents Work: Zapier AI, Activities, MCP and Pricing

How do Zapier Agents work? Learn how triggers, activities and Zapier MCP fit together, what a run costs, and what changes with AI by Zapier.

3 December 2026

How Airtable AI Agents Work: Field Agents, Omni and Credits

How Airtable AI Agents Work: Field Agents, Omni and Credits

How do Airtable AI agents work? Learn what Field Agents and Omni can read, how runs start, and what each one costs in AI credits.

3 December 2026

How Salesforce Agentforce Works: Atlas, Subagents, Actions and Pricing