Lesson 17 of 41 · All lessons
Salesforce Agentforce Specialist
0 of 41 complete
1Exam Overview
  1. 1.1Agentforce Specialist Complete Exam Overview
2Prompt Engineering20%
  1. 2.1When to Use Prompt Builder
  2. 2.2Prompt Template Access Controls
  3. 2.3Field Generation and Flex Prompt Template Types
  4. 2.4Grounding Techniques for Prompt Templates
  5. 2.5Creating, Activating, and Executing Prompt Templates
  6. 2.6Best Practices for Writing Effective Prompts
  7. 2.7Trust Layer Security and Privacy Features
  8. 2.8Managing and Preventing Specific Models from Being Accessed
3Data 360 Fundamentals20%
  1. 3.1Agentforce Data Library
  2. 3.2Data 360 Concepts for Agentforce
  3. 3.3Chunking
  4. 3.4Indexing
  5. 3.5Retrievers
  6. 3.6Choosing a Grounding Approach for a Scenario
4AI Agents35%
  1. 4.1How an Agentforce Agent Works
  2. 4.2Agent Building Blocks and Agent Script
  3. 4.3Hybrid Reasoning and Deterministic Behavior
  4. 4.4Agentforce Builder: Canvas and Script Views
  5. 4.5Filters, Variables, and Template Expressions
  6. 4.6Standard and Custom Topics
  7. 4.7Standard and Custom Agent Actions
  8. 4.8Configure Topics, Instructions, and Actions for a Use Case
  9. 4.9Connecting Agents to Digital Experience, Email, Voice, and Slack
  10. 4.10Agent Security Context and Action Execution
  11. 4.11Choosing Between Employee and Service Agents
  12. 4.12When to Use Agent API
5Testing, Deployment, and Maintenance10%
  1. 5.1Testing Agents with Testing Center
  2. 5.2Understanding Testing Center Evaluations
  3. 5.3Deploying Agents from Sandbox to Production
  4. 5.4Deploying Prompt Templates Between Environments
  5. 5.5Reviewing Agent Behavior After Changes
6Governance and Observability10%
  1. 6.1Managing and Monitoring Agents
  2. 6.2Agent Analytics and Performance Signals
  3. 6.3Identifying Opportunities to Optimize Agent Behavior
  4. 6.4Using Observations to Guide Improvements
7Multi-Agent Orchestration5%
  1. 7.1Choosing a Multi-Agent Architecture
  2. 7.2Orchestrators and Connected Subagents
  3. 7.3Handoff and Supervisor Modes
  4. 7.4Model Context Protocol (MCP)
  5. 7.5Agent-to-Agent (A2A) Communication

Section 4 · AI Agents · 35% of exam

4.2 Agent Building Blocks and Agent Script

3 min read Updated Nov 16, 2026

Exam objective

Describe the main components of an Agentforce agent and explain how Agent Script expresses its workflow and resources.

Agent parts and their jobs

An agent combines a role and purpose with focused topics or subagents, instructions, actions, and supporting resources. The agent definition describes the overall job. A topic or subagent groups a related responsibility, such as answering product questions or handling a return. Its classification description helps the router decide when it applies. Instructions explain what to do and which boundaries to respect. Actions are the tools the agent can invoke. Variables store values for later reasoning, filters, or action inputs. Data sources provide grounding, and channel connections determine how the agent interacts through a particular surface. Treat these as distinct building blocks: instructions guide behavior, while actions perform operations.

What Agent Script expresses

Agent Script is the language used to build agents in the new Agentforce Builder. It combines natural-language instructions for conversational tasks with programmatic expressions for rules and control flow. Script can define conditions, transitions, variable updates, and which subagents or actions are available. It can also control order: for example, verify a customer before making a sensitive account change. Agent Script helps avoid relying solely on an LLM to decide every step. This does not mean every agent must be fully scripted. Use programmatic logic where consistency or policy requires it, while leaving appropriate interpretation and conversation tasks to the reasoning engine.

How resources connect

In a script, references connect behavior to configured resources such as actions, variables, and subagents. An action can accept an input, execute its underlying capability, and return outputs. A variable can hold an output that a later condition or action uses. A transition can move the conversation to another subagent when a condition is met. These links make the agent’s path understandable and controllable. If a business requirement says that one action must run only after another succeeds, make that relationship explicit through a variable, condition, or follow-up transition. Natural-language text alone may not enforce a required sequence reliably.

Build at the right level

Use the simplest configuration that satisfies the use case. A straightforward question-and-answer assistant may need clear instructions, a grounded data source, and a relevant answer action. A process with identity verification, eligibility rules, and record updates may need variables, filters, and explicit transitions. Agent Script supports gradual control rather than forcing a choice between a free-form agent and a rigid workflow. Keep resource descriptions precise, avoid unnecessary actions, and make inputs and outputs understandable. When maintaining an existing agent, inspect both its visible configuration and underlying script so you understand where routing, conditions, and actions are governed.

TIP: If a scenario requires a rule or sequence to be followed consistently, look for an explicit expression, transition, variable, filter, or deterministic action rather than a vague instruction alone.

Salesforce product terms can differ between the new Builder and legacy Builder. The exam guide’s objective language is the primary guide to what AI-201 tests.

Extra concept: Agent Script can be authored in Canvas or Script view; both views represent the same underlying agent configuration.

Official references:

  • Agent Script https://help.salesforce.com/s/articleView?id=ai.agent_script.htm&language=en_US&type=5
  • Salesforce Certified Agentforce Specialist Exam Guide https://help.salesforce.com/s/articleView?id=005298924&language=en_US&type=1

Key takeaways

  • Agent Script combines conversational instructions with programmatic expressions.
  • Actions execute work; variables carry values; filters and transitions control availability and flow.
  • Add explicit deterministic controls when a business rule or sequence must be consistent.

Check your knowledge

Answer exam-style AI Agents questions with answers and explanations.

Practice AI Agents
Finished this lesson? Mark it complete to track your progress.

Ready for the real exam?

Take the timed Salesforce Agentforce Specialist simulator: same number of questions, same time limit.

Get Complete Access