Agentforce

The platform for building and running AI agents: hybrid reasoning with Agent Script, subagents and actions, grounding with Data 360, Prompt Builder, models and the Trust Layer, security, channels, MCP and A2A interoperability, testing, observability, DevOps and pricing.

0%
16 concepts
5 implementations
22 questions

Start here: what Agentforce is

Plain-language orientation before the detail.

In one sentence

Agentforce is Salesforce's platform for building, grounding, securing, testing and running AI agents: agents that understand a request, reason about what to do, take actions in Salesforce and other systems, and hand over to people when judgement is needed.

Interview one-liner: "A chatbot follows a script; an agent pursues a goal. Agentforce agents combine LLM reasoning with deterministic Agent Script logic, use actions built from Flow, Apex, prompts and APIs, are grounded in CRM and Data 360, and run inside the trust layer with testing and observability around them."

A note on names. The product moves fast. Topics are now called subagents. The Einstein Trust Layer is now the Agentforce Trust Layer, and Einstein Studio is now AI Models. The new Agentforce Builder with Agent Script has been generally available since February 2026; the older Setup-based builder is now called legacy. Agentforce Studio groups building, testing and observability. Dreamforce 2026 (September) added items that were still in pilot or beta when this guide was written: long-horizon agents, AI Skills, Agent Optimizer and the Koa reasoning model. Check status before you promise them βš‘ verify.

An analogy: a new team member

New hireAgentforce
Job descriptionAgent role and description
Areas of responsibilitySubagents (formerly topics)
Standard operating proceduresInstructions and Agent Script logic
Systems they're allowed to useActions (Flow, Apex, prompt templates, APIs, MCP tools)
The customer file and the handbookGrounding: records, data graphs, knowledge and RAG
Security badge and access rightsAgent user, permissions, verification
Compliance officer watching over themTrust Layer: masking, toxicity checks, audit, zero data retention
Probation reviewsTesting Center
Performance reviewsObservability and optimisation
Manager to escalate toHand-off to humans via Omni-Channel

If you remember one thing: an agent is only as good as its scope, its actions and its context. Design these three before writing any instructions.

Same idea, explained to four audiences

AudienceSay it like this
Executive"Agents handle routine work end to end around the clock, people handle the exceptions, and we can see and control what every agent does."
Business owner"We pick a process, define what the agent may do and when it must hand over, test it with real conversations, and improve it from production data."
Developer"Agent Script for deterministic flow, subagents with focused instructions, invocable Apex and Flow actions with clear input and output descriptions, data graphs and retrievers for grounding, CLI-based deployment and automated tests."
CTA review board"Use-case selection by value and risk; hybrid reasoning for control; least-privilege agent identity; grounding through Data 360 with access controls; an interoperability strategy using MCP and A2A governed centrally; testing, observability and consumption baked into ALM."

How an agent turn works

Rendering diagram…

Building blocks at a glance

AreaPieces
BuildAgentforce Builder (Canvas and Script views), Agent Script, subagents, instructions, variables, actions, Prompt Builder
GroundRecord data, data graphs, Knowledge, Data 360 retrievers, Agentforce Data Library
Models and trustSalesforce-enabled models, bring your own LLM, Trust Layer (grounding, masking, toxicity detection, audit, zero data retention)
ChannelsMessaging for web and app, Experience Cloud sites, Slack, voice, Lightning (Coworker), Agent API, Flow and Apex invocation
InteroperabilityMCP client and server, A2A, AgentExchange, Agent Fabric
LifecycleTesting Center, Observability, CLI and metadata deployment, sandboxes
CommercialsFlex Credits, conversations, per-user licences, Digital Wallet

Prebuilt agents

Salesforce ships prebuilt agents and templates for service, sales (SDR, coaching), commerce, marketing, field service and industries. At Dreamforce 2026 it announced seven named "job-ready" agents (for example Hunter for outbound prospecting) and Agentforce Coworker inside Lightning βš‘ verify availability. The Sales Cloud and Service Cloud sections of this guide cover their domain agents. This section covers the platform you use to build, extend and run any agent.

When agents are a good fit (and when they aren't)

Good fit

  • High-volume, repeatable requests with clear policies (order status, appointment changes, password resets, FAQs with actions).
  • Work that needs understanding of natural language plus actions in systems.
  • Processes where hand-off to a person is easy and defined.

Poor fit (or not yet)

  • Decisions the law or policy reserves for people.
  • Processes without reliable data or APIs.
  • Low-volume, high-variance expert work where errors are costly.
  • Anything you can't test or observe.

How to learn this cloud

  1. Foundations: fundamentals, choosing use cases, hybrid reasoning and Agent Script (concepts 1–3).
  2. Designing agents: subagents and instructions, actions, grounding, Prompt Builder (4–7).
  3. Trust: models and the Trust Layer, security and permissions (8–9).
  4. Reach and scale: channels, interoperability, multi-agent and long-horizon work (10–12).
  5. Run it well: testing, observability, DevOps, pricing and consumption (13–16).
  6. Read the case studies, then practise the questions.

Interview tip: Always describe what the agent may not do and how you know it's working. Guardrails, testing and observability are what separate production agents from demos.

Concept map

How the building blocks fit together. Select a concept to open it.

Concepts

Grouped by theme.

Foundations

Designing agents

Reach and scale

Run it well

Implementations

End-to-end case studies, each in a different industry.

Retail
Customer service agent for an online retailer across web, app and voice

A retailer deploys one service agent to web chat, the mobile app and phone for order status, delivery changes and returns, with verification, Data 360 context, carrier integrations, human hand-off, automated tests and cost optimisation.

β—† Realistic composite
Financial services
Employee agent for wealth advisers

A wealth manager gives advisers an employee agent in Lightning and Slack for meeting preparation, portfolio summaries, compliant follow-up drafts and task creation, grounded in CRM and Data 360 and constrained by compliance rules.

β—† Realistic composite
Technology
Inbound lead qualification and follow-up agent for a B2B software company

A software company uses an SDR-style agent to answer inbound leads by email and web chat, qualify them against criteria, book meetings, and follow up over weeks, with guardrails on claims and consent.

β—† Realistic composite
Professional services
IT and HR helpdesk agent in Slack with MCP and A2A

A professional services firm runs an employee helpdesk agent in Slack that resolves IT requests through an IT service management MCP server, answers HR policy questions with retrieval, delegates payroll questions to the payroll vendor's agent via A2A, and governs everything centrally.

β—† Realistic composite
Insurance
Voice agent for first notice of loss at an insurer

An insurer's voice agent takes first notice of loss for motor claims, verifies the policyholder, captures incident details, creates the claim, arranges towing and repairs through partners, and hands complex or distressed callers to adjusters.

β—† Realistic composite

Interview prep Β· 22 questions

Scenario Β· 6Conceptual Β· 7Design Β· 5Trade-off Β· 3CTA board Β· 1β˜… 5 must-prepare