Agentforce Concepts consists of 30% of total score in Salesforce Agentforce Specialist Exam. The topic covers agents & reasoning engines, actions & topics, managing & monitoring agent adoption, user security, testing center, and deploying Agentforce to Production.
NOTE
Most of the content in this work was generated with the assistance of AI and carefully reviewed, edited, and curated by the author. If you have found any issues with the content on this page, please do not hesitate to contact me at support@issacc.com.
π€ Agentforce Concepts β Comprehensive Summary
Goal: Understand how Salesforce Agentforce works β including its reasoning engine, agent actions, topics, analytics, security, testing, and deployment.
π§ Agents & Reasoning Engine
π Overview
Agents like Agentforce (Default) communicate with users and take actions through the Reasoning Engine and Large Language Model (LLM) β mainly OpenAI GPT-40.
βοΈ How the Reasoning Engine Works
- Orchestrates topics and actions during a conversation.
- Interprets user input, identifies intent, and builds plans to meet goals.
- Works closely with the LLM to execute actions and generate responses.
π Interaction Flow
- Identify user intent from natural input.
- Generate dynamic plan containing relevant agent actions.
- Execute actions and perform necessary LLM calls.
- Generate responses (LLM + system messages).
- Continue the conversation seamlessly.
π Reasoning Engine Core Functions
- Interprets triggers or user requests.
- Classifies utterances into topics.
- Builds and executes plans iteratively.
- Launches appropriate topics & actions.
- Produces contextual responses.
π§Ύ Event Logs
Use the Events panel in Agent Builder to:
- Debug agent behavior.
- View session logs.
- Analyze execution of actions.
β οΈ Considerations
Aspect | Details |
---|---|
Planner Service Calls | Uses OpenAI GPT-40 |
Custom Actions | Can use any Salesforce-managed LLM |
Logs | Viewable in Agent Builder β Events Panel |
π§© Agent Actions & Topics
π― Agent Actions
Actions are individual tasks that an agent performs on behalf of users.
Types
Type | Description |
---|---|
Standard Actions | Predefined tasks included by default (e.g., Summarize Record, Draft Email). |
Custom Actions | Extend capabilities to handle specific business needs via Apex, Flow, or Prompt Templates. |
π§± Reference Action Types
- Apex Class (invocable)
- Autolaunched Flow
- Prompt Template
π§ Action Assignment
- Actions must be assigned to topics for the agent to use them.
- One action can belong to multiple topics.
- Managed in Agent Builder β Topics Panel (requires deactivation to modify).
ποΈ Action Instructions
When creating custom actions:
- Define what the action does and when/how to use it.
- Optionally require user input or mark parameters as visible in conversation.
- Use examples and utterances for better LLM understanding.
β Best Practices
Include:
- 1β3 sample utterances.
- Dependent actions if any.
- Input/output examples for context.
ποΈ Agent Topics
Concept | Description |
---|---|
Definition | A topic is a category of actions related to a job the agent performs. |
Components | Actions, Classification Description, Scope, and Instructions. |
Purpose | Organizes agent behavior, sets context, and defines conversation boundaries. |
Customization | Standard topics can be used, edited, or created from scratch. |
π§© Managing Topics
- Add/remove topics via Agent Builder.
- Standard topics are in the Asset Library.
π§° Examples of Standard Actions
Action | Description | Example Utterance |
---|---|---|
Answer Questions with Knowledge | Responds using Salesforce Knowledge Articles. | βWhatβs our return policy?β |
Create Close Plan | Generates sales plan to close opportunities. | βWrite a close plan for Edge Solar Panel.β |
Draft or Revise Email | Composes or updates email drafts. | βWrite a follow-up email to Sean Forbes.β |
Find Similar Opportunities | Returns deals similar to a given opportunity. | βWhat other deals like Edge Installation have we won?β |
Query Records | Retrieves records based on criteria. | βShow me open cases for Edge Communications.β |
Summarize Record | Summarizes record data via prompt templates. | βSummarize the University of Arizona account.β |
π Managing & Monitoring Agent Adoption
π Agentforce Analytics
Provides dashboards & reports on:
- Agent adoption & usage.
- User feedback.
- Performance metrics.
π¬ Utterance Analysis
- View what users ask the agent.
- Analyze which requests the agent can handle.
- Identify training opportunities for improvement.
π§Ύ Event Logs
- Access via Agent Builder β Event Logs tab.
- View all user interactions for debugging and optimization.
- Enable βEnrich Event Logs with Conversation Dataβ to store detailed session data (retained 7 days).
π§± Data Cloud Integration
- Uses Copilot for Salesforce Apps Events Data Model Object to store event data.
- Dashboards built using Data Cloud objects.
π Agentforce User Security
π§ Overview
Agentforce security is managed via permission sets that define user and agent access.
π§βπΌ Permissions for Creating & Using Agents
Task | Required Permissions |
---|---|
Create Agentforce (Default) | Manage AI Agents + Manage Agentforce Default Agent |
Create Other Agents (e.g., Sales Coach) | Manage AI Agents + specific permission (e.g., Manage Sales Coach Agent ) |
Use Agentforce (Default) | Access Agentforce Default Agent permission set group |
π€ Agent User Record
- Each agent must have a user record assigned to a permission set with the Agent User license.
- Example:
Agentforce Service Agent User
permission set.
π§Ύ Example Permission Sets
Permission Set | Agent Type | Description |
---|---|---|
Use Sales Coach Agent | Sales Coach | Allows users to access Sales Coach. |
Manage Sales Coach Agent | Sales Coach | Admin configures Sales Coach. |
Agentforce Sales Coach | Sales Coach | Assigned to Sales Coach user record. |
Use Agentforce SDR Agent | SDR | Grants user access to SDR agent. |
Configure Agentforce SDR Agent | SDR | Allows admin to manage SDR. |
Manage Agentforce Service Agent | Service Agent | Allows admin to build/manage Service Agents. |
Agentforce Service Agent User | Service Agent | Assigned to Service Agent user record. |
Service Planner Builder | Service Planner | Allows admin to manage Service Planner. |
β οΈ Security Best Practices
TIP
Principle of Least Privilege: Only grant necessary access.
Two-Factor Authentication: Required for sensitive actions.
Scope Limitation: Private actions should confirm user identity before execution.
π§ͺ Agentforce Testing Center
π§° Purpose
Allows batch testing of a large number of utterances to ensure accuracy before activation.
π§Ύ Process
- Create CSV file with test cases (use template).
- Create test for the agent in sandbox.
- Upload CSV and run test.
- Analyze results β view passed/failed utterances.
βοΈ Capabilities
- Test up to 1,000 utterances per test.
- Run up to 10 tests in a 10-hour window.
- Supports multiple topics & actions simultaneously.
- Failed utterances can be re-tested in Conversation Preview.
β οΈ Considerations
Aspect | Details |
---|---|
Consumption | Uses Einstein Requests + Data Cloud credits |
Environment | Only in sandbox (prevents CRM data change) |
Add-ons Required | Einstein for Sales / Service / Platform |
π Deploying Agentforce to Production
π§ Overview
After successful testing, deploy the agent from sandbox β production using:
- Change Sets or
- Metadata API / Salesforce CLI
π Change Set Deployment Steps
- Create Outbound Change Set in sandbox.
- Add all relevant metadata components.
- Upload to production as Inbound Change Set.
- Validate and deploy.
π§© Required Metadata Components
Component | Type / Example |
---|---|
Agent Planner | GenAiPlanner |
Topics | GenAiPlugin |
Agent Actions | GenAiFunction |
Prompt Templates | GenAiPromptTemplate |
Flows & Apex Classes | Referenced logic components |
Einstein Bot & Version | Required for conversational agents |
Embedded Service Deployment | For Service Agents (Experience Cloud) |
π Activation & Communication
- After deployment, activate the agent in Agent Builder.
- Notify stakeholders and provide training/documentation.
β Key Takeaways
Concept | Summary |
---|---|
Reasoning Engine | Core planner service orchestrating LLM + actions. |
Agent Actions & Topics | Modular, reusable tasks organized under topics. |
Analytics | Dashboards for adoption, feedback, and performance. |
Security | Role-based permissions + least privilege principle. |
Testing Center | Batch test up to 1,000 utterances for efficiency. |
Deployment | Use Change Sets / Metadata API; activate post-deployment. |
π Flow Charts
1) Agent β Reasoning Engine: End-to-End Flow
flowchart TD A["User request"] B["Reasoning engine planner"] C{"Classify into topic?"} D["Select topic"] E["Ask for clarification"] F["Select actions"] G{"Inputs complete?"} H["Collect data from user"] I["Execute actions"] J["LLM call"] K["Generate response"] L{"Goal met?"} M["End or continue"] A --> B B --> C C -->|Yes| D C -->|No| E D --> F F --> G G -->|No| H G -->|Yes| I I --> J J --> K K --> L L -->|No| B L -->|Yes| M
2) User Request Processing
flowchart LR A["Identify intent"] B["Generate plan"] C["Execute actions"] D["LLM call"] E["Generate response"] F["Continue conversation"] A --> B B --> C C --> D D --> E E --> F
3) Topics and Actions Selection
flowchart TD T1["Create or edit topics"] A1["Assign standard actions"] A2["Assign custom actions"] U["User utterance"] P["Planner classifies topic"] S["Topic scope and instructions"] SEL["Select actions"] EXEC["Execute actions"] OUT["Return outputs"] T1 --> A1 T1 --> A2 U --> P P --> S S --> SEL SEL --> EXEC EXEC --> OUT
4) Custom Action Creation
flowchart TD N["New custom action"] R{"Select reference type"} AX["Invocable Apex class"] FL["Autolaunched flow"] PT["Prompt template"] IOP["Define inputs and outputs"] INS["Write instructions and examples"] SAVE["Save and assign to topics"] N --> R R -->|Apex| AX R -->|Flow| FL R -->|Prompt| PT AX --> IOP FL --> IOP PT --> IOP IOP --> INS INS --> SAVE
5) Testing Center Flow
flowchart TD T0["Prepare CSV test cases"] T1["Open Testing Center"] T2["Create test in sandbox"] T3["Upload CSV and run"] T4{"Results"} T5["Approve"] T6["Analyze and refine"] T0 --> T1 T1 --> T2 T2 --> T3 T3 --> T4 T4 -->|Passed| T5 T4 -->|Failed| T6 T6 --> T3
6) Deployment: Sandbox to Production
flowchart TD D0["Agent tested in sandbox"] D1{"Deployment method"} CS1["Create outbound change set"] CS2["Add agent metadata"] CS3["Upload to production"] CS4["Validate and deploy"] MD1["Retrieve with CLI"] MD2["Deploy to production"] ACT["Activate in Agent Builder"] COM["Notify and train users"] D0 --> D1 D1 -->|Change set| CS1 CS1 --> CS2 CS2 --> CS3 CS3 --> CS4 D1 -->|Metadata API| MD1 MD1 --> MD2 CS4 --> ACT MD2 --> ACT ACT --> COM
7) Security and Permissions
flowchart TD A["Admin assigns permissions"] B{"User task"} P1["Create default agent permissions"] P2["Create other agent permissions"] P3["Use default agent permission set group"] C["Create agent user record"] L["Assign permission set with agent user license"] A --> B B -->|Create default agent| P1 B -->|Create other agents| P2 B -->|Use default agent| P3 A --> C C --> L
8) Monitoring and Analytics Loop
flowchart TD M1["User interactions"] M2["Event logs"] M3["Data Cloud storage"] M4["Analytics dashboards"] M5["Utterance insights"] M6["Refine topics actions instructions"] M1 --> M2 M2 --> M3 M3 --> M4 M4 --> M5 M5 --> M6 M6 --> M1
π Flashcards
What powers an Agentforce agent?
The Reasoning Engine and Large Language Model (LLM) β mainly OpenAI GPT-40 β work together to interpret user intent, plan actions, execute them, and maintain conversation flow.
What is the role of the Reasoning Engine?
β’ Acts as the planner service
β’ Launches topics and actions during conversations
β’ Works with the LLM to fulfill user requests dynamically
β’ Builds plans iteratively until goals are met
How does Agentforce process a user request?
Identify the userβs intent
Generate a dynamic plan with required actions
Execute actions and LLM calls
Generate responses
Continue the conversation naturally
What are Topics and Actions in Agentforce?
β’ Topic: a category of related actions defining scope and behavior
β’ Action: a specific task the agent can perform
Topics organize behavior; actions execute specific steps.
Whatβs the difference between Standard and Custom Actions?
Type Description Example Standard Actions Pre-built, included by default Draft Email, Summarize Record Custom Actions Created for business-specific needs using Apex, Flow, or Prompt Template Custom Quote Generator
What is a Reference Action Type?
The mechanism a custom action uses:
β’ Invocable Apex Class
β’ Autolaunched Flow
β’ Prompt Template
What are Action Instructions?
Tell the agent what an action does, when, and how to use it.
Should include:
β’ 1β3 example utterances
β’ Input/output explanation
β’ Optional flags such as Require Input, Collect from user, Show in conversation
How do you test many utterances quickly?
Use the Agentforce Testing Center:
β’ Upload a CSV of utterances
β’ Run batch tests (up to 1,000 per test)
β’ Review results and refine actions
β’ Testing consumes Einstein Requests and Data Cloud credits
What dashboards help monitor adoption?
β’ Agentforce Analytics β tracks adoption, feedback, and usage
β’ Utterance Analysis β shows user questions and handling rate
β’ Event Logs β record detailed interactions for debugging
How is Agentforce user security managed?
Managed through permission sets defining roles and access:
β’ Manage AI Agents + Manage Agentforce Default Agent β create default agent
β’ Access Agentforce Default Agent β interact with default agent
β’ Each agent must have a user record with the Agent User license
What are best practices for Service Agent security?
β’ Follow principle of least privilege
β’ Use two-factor authentication
β’ Limit private actions to verified identities
β’ Restrict access to sensitive data objects
How do you deploy an agent from sandbox to production?
β’ Use Change Sets or Metadata API
β’ Include all metadata (GenAiPlanner, Topics, Actions, Prompts, Flows, Apex)
β’ Deploy β Activate in Agent Builder β Train and notify users
What metadata components are required for deployment?
β’ GenAiPlanner (Planner Service)
β’ GenAiPlugin (Topics)
β’ GenAiFunction (Actions)
β’ GenAiPromptTemplate (Prompt Templates)
β’ Einstein Bot + Bot Version
β’ Flows / Apex
β’ Embedded Messaging for Service Agents
Quick Recap
β’ Reasoning Engine = Planner + LLM synergy
β’ Topics & Actions = Core agent structure
β’ Analytics = Track adoption and performance
β’ Security = Permission sets + least privilege
β’ Testing = Batch testing via Testing Center
β’ Deployment = Sandbox β Production + Activation