Last Updated On : 17-Aug-2026


Salesforce Agentforce Specialist - AI-201 Practice Test

Prepare with our free Salesforce Agentforce Specialist - AI-201 sample questions and pass with confidence. Our Agentforce-Specialist practice test is designed to help you succeed on exam day.

378 Questions
Salesforce 2026

Universal Containers (UC) wants to enable its sales team to use AI to suggest recommended products from its catalog. Which type of prompt template should UC use?

A. Record summary prompt template

B. Email generation prompt template

C. Flex prompt template

C.   Flex prompt template

Explanation:

Flex prompt templates are designed for custom, highly configurable AI interactions where you can:

1. Combine multiple data sources (like product catalog records)
2. Use logic or external services
3. Build dynamic and tailored prompts based on business-specific use cases

In this case, Universal Containers (UC) wants to enable the sales team to use AI to suggest recommended products. This use case involves custom logic, possibly related records (e.g., customer preferences or purchase history), and flexible grounding. Therefore:

✅ Flex prompt templates are the correct choice for building AI-powered product recommendation prompts.

Why the other options are incorrect:

A. Record summary prompt template
❌ Incorrect – This is used to summarize a record’s data, such as generating a summary of an opportunity or case. It’s not built for generating dynamic product suggestions.

B. Email generation prompt template
❌ Incorrect – This is designed for drafting emails, such as follow-ups or outreach messages, not for building interactive AI experiences or product recommendation logic.

✅ Summary:

To use AI for recommending products from a catalog to the sales team, UC should use a Flex prompt template — it provides the flexibility and control needed for such use cases.

Implementation Example:

Create a Flex prompt template with grounding like:

"Suggest products from {{Catalog.Products}} for {{Account.Name}} based on {{Account.OrderHistory}}."
Configure the output to return structured recommendations (e.g., product names, SKUs).

This approach leverages real-time data for AI-driven sales assistance.

📘 Salesforce Reference:

Source: Salesforce Help Documentation – Flex Prompt Templates

Key excerpt from Salesforce documentation:
“Flex prompt templates allow you to build reusable and flexible prompt templates that can use inputs from multiple sources such as record fields, related lists, flows, and external data. They're best used for use cases that involve customized recommendations, complex logic, or decision support.”

In a Knowledge-based data library, which capability does enabling the “Filter by Knowledge Data Categories” option provide?

A. It applies custom metadata from the selected data categories to the Knowledge articles, aiming to enhance search relevance.

B. It organizes the indexed Knowledge articles into separate sections based on their assigned data categories.

C. It limits the indexed articles to only those belonging to selected data categories, thereby improving indexing precision.

C.   It limits the indexed articles to only those belonging to selected data categories, thereby improving indexing precision.

Explanation:

The requirement focuses on data scaling and management optimization within an Agentforce Knowledge-based Data Library.

The correct functionality is described below:

When setting up an Agentforce Data Library linked to Salesforce Knowledge, checking the Filter by Knowledge Data Categories box changes how data flows into the vector pipeline.

Instead of chunking and embedding every single article in your entire Salesforce Knowledge base, this option enables you to select specific data category hierarchies or branches.

Consequently, the data library limits the indexed articles to only the documents that belong to those chosen categories. This prevents irrelevant or massive amounts of non-essential data from flooding the vector index, maximizing search accuracy and tuning efficiency for that specific agent's use case.

Why the Other Options Are Incorrect
A. ❌ It applies custom metadata from the selected data categories to the Knowledge articles, aiming to enhance search relevance.
Data categories are structural attributes that are already assigned to articles during content authoring. Enabling this setting doesn't inject or modify the metadata tags on the original articles; it filters the records that are chosen for vectorization.

B. ❌ It organizes the indexed Knowledge articles into separate sections based on their assigned data categories.
Vector databases and Data Cloud Search Indices store information as high-dimensional semantic chunks rather than visible folders or tabbed UI sections.

Reference
Salesforce Agentforce Help: Use Salesforce Knowledge in Data Libraries.

Salesforce Agentforce Documentation: Create a Data Library. Tailoring a knowledge base data library to specific data categories ensures that the semantic indexing and grounding are accurate, fast, and optimized.

Exam Tip
When managing massive datasets or refining the scope of an Agentforce Data Library:

Filter by Knowledge Data Categories = Scopes down the data stream by excluding unselected categories, saving processing costs and preventing the vector index from being polluted with out-of-scope articles.

The support team at Coral Cloud Resorts needs to create a Flex prompt template that summarizes complex case histories for agent handoffs. The goal is to ensure summaries are concise and follow a specific three-part structure: Issue, Steps Taken, and Next Action. What should an Agentforce Specialist recommend to ensure consistent data output?

A. Use chain-of-thought reasoning.

B. Define the desired output structure with explicit headings in the instruction.

C. Use a prompt template-triggered flow to format responses.

B.   Define the desired output structure with explicit headings in the instruction.

Explanation:

The requirement is for the LLM to produce consistent, structured summaries with the exact format:

Issue
Steps Taken
Next Action

The best prompt engineering practice is to explicitly specify the desired output format in the prompt instructions. For example:

Summarize the case using the following structure:

Issue:
Steps Taken:
Next Action:

Providing a clear template or headings significantly improves the consistency of LLM-generated responses and is a recommended Prompt Builder technique.

Why the Other Options Are Incorrect
A. ❌ Use chain-of-thought reasoning.
Chain-of-thought is intended to help an LLM reason through complex problems internally.
It does not guarantee a consistent output format.
It is not the appropriate technique for enforcing a fixed summary structure.

C. ❌ Use a prompt template-triggered flow to format responses.
Flows are useful for automating business logic and data retrieval.
Formatting the LLM's textual response into a specific structure is best achieved through clear prompt instructions, not by invoking a Flow.
This adds unnecessary complexity without addressing the prompt engineering requirement.

Reference
Salesforce Prompt Builder documentation on writing effective prompts and specifying output formats.
Salesforce Agentforce prompt engineering best practices.
Salesforce Certified Agentforce Specialist (AI-201) Exam Guide – Prompt Builder and prompt engineering.

Exam Tip
When the exam asks how to make LLM output consistent or predictable, the correct approach is usually to:

✅ Specify the exact output format.
✅ Include headings, bullet points, or JSON/XML structures when appropriate.
✅ Give clear, explicit instructions.

A useful rule to remember:

Consistency of output → Explicit formatting instructions in the prompt
Business logic → Flow or Apex
Reasoning → LLM, but don't rely on it to infer the desired structure.

Universal Containers is developing an Agentforce Service Agent to handle a complex, multi-step customer onboarding process. To better organize the conversational logic, the Agentforce Specialist splits the process across two distinct subagents and places the setup configuration for the second step inside the before_reasoning block of the new subagent. During testing, when the agent transitions to this new subagent mid-conversation, the conversation occasionally stalls or behaves unexpectedly. What is the risk the Agentforce Specialist must consider regarding the execution timing of before_reasoning?

A. The before_reasoning block will only run once and sets the immutable variables.

B. The before_reasoning block runs at the start of the next turn after a transition.

C. The before_reasoning block only runs on the very first turn after the agent launches.

B.   The before_reasoning block runs at the start of the next turn after a transition.

Explanation:

Option B correctly identifies the risk/behavior. In Agentforce Agent Script:

The before_reasoning block executes deterministically at the start of a turn (before the LLM reasoning loop begins for that subagent).

When the agent transitions mid-conversation to a new subagent, the before_reasoning block of the new subagent runs at the beginning of the next turn after the transition.

If setup/configuration logic (e.g., initializing variables, running prerequisite actions, or setting state) is placed in before_reasoning, it may not execute immediately upon transition. This can cause stalls, unexpected behavior, or missing state during the first interaction with the new subagent.

Why the Other Options Are Incorrect
A. ❌
This is not accurate. The before_reasoning block can run on multiple turns (not just once), and variables can be mutable or immutable depending on their declaration. The main issue is the timing of execution relative to subagent transitions.

C. ❌
This is incorrect because it describes behavior associated with the initial agent launch rather than per-subagent or per-transition execution.

Key Takeaway & Best Practices
Use before_reasoning for deterministic setup that should happen every turn the subagent is active (e.g., checks or initial data loads).

For transition-specific setup, consider careful ordering, shared variables/context passing, or combining the setup with transition logic in the prior subagent’s after_reasoning block.

Test transitions thoroughly, as they discard prior prompt context and start fresh in the new subagent.

This question tests deep knowledge of Agent Script execution order, subagent transitions, and hybrid reasoning in multi-step processes, which is a core topic in the Agentforce Specialist exam.

Universal Containers has an active standard email prompt template that does not fully deliver on the business requirements. Which steps should an Agentforce Specialist take to use the content of the standard prompt email template in question and customize it to fully meet the businessrequirements?

A. Save as New Template and edit as needed.

B. Clone the existing template and modify as needed.

C. Save as New Version and edit as needed.

B.   Clone the existing template and modify as needed.

Explanation:

Standard Templates Are Not Editable:

According to Salesforce's Prompt Template Documentation, standard templates are locked and cannot be directly modified.
The only way to customize them is by creating a copy through cloning.

Cloning Process (from Salesforce Help):

As documented in the Prompt Builder Implementation Guide:
"To customize a standard template, clone it to create an editable copy while preserving the original."

Why Other Options Are Incorrect:

A. Save as New Template: This option doesn't exist in Salesforce's prompt template interface (verified in Winter '24 release notes).
C. Save as New Version: This only applies to custom templates, as confirmed in the Prompt Builder Trailhead.

Implementation Best Practices:

After cloning:
1. Rename the template with a clear identifier (e.g., "UC_Custom_Email_Template")
2. Modify grounding, instructions, and output format
3. Test thoroughly before deployment
Reference: Prompt Template Best Practices

Business Benefit:

Cloning maintains the original template for compliance/fallback while allowing full customization to meet specific requirements.

Agentforce-Specialist Exam Questions - Home Previous
Page 3 out of 76 Pages