8: Agentforce AI

    Describe the capabilities and use cases of Agentforce AI

    Agentforce is the Salesforce platform for building autonomous AI agents that reason over a request, decide which Topic applies, call one or more Actions to retrieve or change data, and reply through a conversational channel. An agent is not a chatbot with a decision tree; it is a goal-directed worker that selects its next step at runtime by classifying the user input against the Topics the admin has activated, then choosing an Action from the Actions those Topics expose. The agent runs against the Atlas Reasoning Engine, which orchestrates the model call, the data lookup, the planning step, and the response generation, and every call passes through the Einstein Trust Layer, which masks sensitive data, applies a zero-retention contract with the model provider, and enforces toxicity and prompt-injection defences before the response reaches the user.

    The admin's job is to assemble the capability surface, not to write the reasoning logic. An agent is built from four declarative building blocks. The first is the Agent itself, a metadata record that holds the agent's role description, the company description, and the list of channels the agent is exposed on. The second is the Topic, a scoped intent classifier that tells the planner "this conversation is about returning a product" or "this conversation is about qualifying a Lead". The third is the Action, an executable step inside a Topic; an Action wraps a Flow, an Apex invocable method, a Prompt Template, a MuleSoft API call, or a Salesforce Standard Action such as Update Case or Get Knowledge Article. The fourth is the Instruction, a natural-language behavioural rule attached to a Topic that tells the planner "always ask for the order number before suggesting a return" or "never quote a discount over fifteen percent". Together these four pieces let an admin describe what the agent does without writing model code.

    Salesforce ships a library of standard agent templates so an admin does not start with a blank canvas. Agentforce Service Agent handles inbound case-style conversations on the Service Console, on an Experience Cloud help portal, on embedded service chat, on WhatsApp through Messaging for In-App and Web, or on a Slack channel; it knows the Case object, the Knowledge article surface, the Case escalation pattern, and the typical case fields. Agentforce Sales Coach watches a sales rep's call summaries and pipeline state and coaches the rep on next-best-action against Opportunity Stage. Agentforce SDR Agent (the Sales Development Representative agent) qualifies inbound Leads, replies to the Lead through email, and books a meeting onto the rep's calendar through the Salesforce Inbox integration. Agentforce Personal Shopper sits on a commerce storefront and recommends products. Agentforce Employee Service answers internal HR or IT questions against an internal Knowledge base. An admin can clone any of these standard templates into a Custom Agent and modify the Topics, Actions, and Instructions to match a specific business.

    The runtime is the Atlas Reasoning Engine, and the conceptual model an admin needs is the plan-act-observe loop. When a user message arrives, the engine first classifies the message against every active Topic on the agent and picks the best-matching Topic (or, when no Topic matches the intent, falls back to a configured behaviour such as "answer from general knowledge" or "hand off to a human"). Inside the chosen Topic, the engine reads the Instructions, decides which Action or sequence of Actions to call, runs each Action against the Salesforce data layer, observes the result, and either calls another Action or generates a natural-language reply. The Trust Layer wraps every model call: the prompt is built from grounded merge fields (Account.Name, Case.Subject) rather than from free-form context, the prompt passes through a Toxicity Filter and a Prompt Defence step before being sent to the model, the model's response is checked for hallucination cues against the source data, and the entire interaction is logged to the Audit Trail for review without storing the user data outside the Salesforce tenant boundary.

    The capability map below summarises what an admin should expect Agentforce to do well, what it can do but with significant configuration effort, and what it should not be asked to do. The most important admin habit is to send each conversational requirement to the right Salesforce surface; an autonomous agent is the right answer for an open-ended, multi-step request that needs reasoning, but a Flow remains the right answer for a deterministic, single-purpose record update.

    Agent capability map: what to use Agentforce for

    Conversational needRight surfaceWhy
    Open-ended question over a Knowledge base ("how do I cancel my order?")Agentforce Service Agent with Knowledge ActionNeeds reasoning over many articles and rephrasing
    Multi-step case workflow ("check my order, refund the shipping fee, send the confirmation")Agentforce Service Agent with Topics for each stepPlan-act-observe loop chains Actions
    Single-purpose record update on save ("if Amount > 50000 flip Forecast Category to Pipeline")Record-Triggered FlowDeterministic, no language input
    Step-by-step form-style data capture ("enter your email, then your order number, then your reason")Screen FlowDeterministic UI, no model needed
    Lead qualification with email reply and meeting bookingAgentforce SDR AgentMulti-channel, reasoning over Lead fields, email composition
    Internal HR question over a private Knowledge baseAgentforce Employee ServiceInternal-only Trust Layer scope
    Channel-specific scripted bot with deterministic menu ("press 1 for sales")New work goes to Agent Builder; legacy Bot Builder is no longer the recommended starting pointBot Builder is legacy; Agent Builder replaces it

    💡 Exam Trap: A scenario phrased as "a manager wants a chatbot on the Help portal that answers product questions from the Knowledge base and creates a Case when the answer is not in Knowledge" maps to an Agentforce Service Agent with a Knowledge Action and a Create Case Action, not to an Einstein Bot. Bot Builder is the predecessor surface and is not the recommended answer for new conversational AI work on the Administrator credential.

    💡 Exam Trap: "Reasoning over Salesforce data" does not mean the agent reads the database directly. The agent reaches the data only through an Action: a Flow, an Apex invocable, a Standard Action, or a Prompt Template grounded in merge fields. If the admin has not granted the Agent User access to the object, no Action can return the record, no matter what the Instruction says.

    Standard agent templates and their default Topics

    TemplateChannelDefault TopicsTypical Actions
    Agentforce Service AgentEmbedded chat, Experience Cloud, Slack, MessagingOrder status, returns, billing, general knowledgeGet Knowledge Article, Create Case, Update Case, Look Up Order
    Agentforce Sales CoachEmail digest, Salesforce InboxPipeline review, next best action, deal riskSummarise Opportunity, Compose Email, Suggest Next Step
    Agentforce SDR AgentEmail, Lead InboxLead qualification, meeting bookingQualify Lead, Compose Email, Book Meeting
    Agentforce Personal ShopperCommerce storefrontProduct discovery, recommendations, cart helpSearch Catalogue, Add To Cart, Look Up Order
    Agentforce Employee ServiceSlack, in-app helpHR policy, IT help, internal knowledgeGet Internal Knowledge, Open Internal Ticket

    Channels and exposure surfaces

    An agent is not bound to one channel. The admin attaches a single agent metadata record to any subset of supported channels, and the runtime adapts the response format to that channel. The supported channel set for an admin to configure includes embedded service chat on a website, the Experience Cloud help-centre site, the Salesforce Service Console for human-agent-assistance, Slack through the Agentforce in Slack feature, Messaging for In-App and Web for SMS and WhatsApp, and the Salesforce mobile app for internal agents. Each channel uses the same Topics and Actions; the differentiation is the conversation styling, the authentication context (a guest user on the help-centre site, an authenticated employee in Slack), and the channel-specific actions exposed (a Slack agent can post to a Slack thread; a Service Console agent can write a note onto the open Case record).

    Trust Layer and what it protects

    The Einstein Trust Layer is the security boundary that wraps every model call the agent makes. The admin does not configure the model itself, but the admin does need to recognise what the Trust Layer guarantees so the answer to "is sensitive data sent to the model provider?" is correct. The Trust Layer applies dynamic data masking on personally identifiable information (names, emails, phone numbers, payment fields) before the prompt is sent off-platform; it enforces a zero data retention contract so the model provider does not store the prompt or use it for training; it applies a Toxicity Filter that scores the response and blocks high-toxicity replies; it applies a Prompt Defence step that detects prompt-injection patterns in the user input; and it writes a per-interaction Audit Trail row that captures the masked prompt, the response, and the Topic and Actions invoked. All of this runs inside the Salesforce trust boundary, so the agent inherits the same compliance posture as the rest of the org.

    ⚠️ Anti-Pattern: Disabling data masking on a Prompt Template to "make the model smarter" so it can see customer names verbatim. The Trust Layer's masking is what keeps the org's data inside the contractually agreed boundary; the model still receives a deterministic token that maps back to the real value on the way back, so the agent can still respond by name. Turning masking off pushes raw PII off-platform and breaks the trust contract that the admin is responsible for upholding.

    ⚠️ Anti-Pattern: Recommending Einstein Bots / Bot Builder as the starting point for new conversational AI. Bot Builder is the predecessor surface; the Administrator credential treats Agent Builder as the new conversational authoring tool, and the correct exam answer for new conversational work is an Agentforce agent.

    Decision tree: which AI or automation surface answers the need

    Decision Anchor

    Choose an Agentforce agent when the input is free-form natural language, the answer requires reasoning across more than one record, or the next step depends on the meaning of the message rather than a fixed field value. Choose a Flow when the input is a record event, a structured form submission, or a button click, and the next step is a deterministic update that does not require language understanding. Choose a Knowledge article placed in a Knowledge sidebar (without an agent) when the user simply needs to read documentation and the channel is the Service Console rather than a conversational surface.

    🎯 Scenario: A retailer's support manager says, "We deflect about thirty percent of cases by linking customers to FAQ articles, but the rest still need a human because the question spans the order, the shipment, and the loyalty balance. We want a single conversational experience on our help-centre that answers FAQ questions, looks up a specific order, applies a goodwill credit up to twenty-five dollars, and only escalates when the credit needed is higher." The right answer is an Agentforce Service Agent on the Experience Cloud help centre with four Topics (FAQ, Order Lookup, Goodwill Credit, Escalation), where the Goodwill Credit Topic carries an Instruction capping the credit at twenty-five dollars and a Flow Action that posts the credit to the loyalty record. A Flow alone would not classify the inbound message; a Bot would not reason across the order, shipment, and loyalty records in one turn; an Agentforce agent reasons across all four Topics and decides at runtime which Action sequence applies.

    📊 Limit: The Agentforce add-on is consumption-priced by conversation. The admin should treat each Topic activation as a unit of business value because every additional Topic widens the conversational surface and therefore the consumption envelope; deactivating unused Topics is the lever the admin pulls to control runaway usage. Treat the numeric per-conversation list price as a procurement question for the account team rather than a memorised exam fact.

    💡 Exam Trap: An exam stem that says "the bot should automatically post a Chatter update when the Opportunity stage changes to Closed Won" is not an Agentforce question, even though it mentions a bot. It is a Record-Triggered Flow question because the trigger is a structured field change and the action is a single deterministic Post to Chatter Action. The presence of the word "bot" or "agent" in the stem does not move the answer to Agentforce when the trigger is a database event.

    💡 Exam Trap: Agentforce does not replace Flow Builder. A stem describing "every save of a high-value Opportunity should automatically generate a forecast note for the deal" is still a Flow with a Prompt Template Action, not a standalone agent; the agent surface is conversational and the trigger here is a record save. The Prompt Template can still be authored in Agent Builder and called from the Flow.


    Continue with the interactive course

    Track your progress, jump into practice questions and use the Shark AI tutor inside the Salesforce - Platform Administrato learning hub.