A full Salesforce Certified Agentforce Specialist mock exam: 60 questions in 105 minutes, scored against the real exam's pass mark. Your first one is free.
Think first When a business asks for AI-written content from CRM data, how do you tell that Prompt Builder is the right tool?
Why it matters: Questions describe a business need and ask whether a reusable prompt template built in Prompt Builder fits it.
Prompt Builder is where you build and manage reusable prompt templates. Each template has placeholders that fill with live CRM data before it reaches the LLM. Pick it when many users need consistent AI output grounded in records.
Reported, thanks
Step 2 of 9
Term
Meaning
Prompt template
A reusable, detailed prompt you create and manage in Prompt Builder.
Placeholder
A slot in a template for data that changes, such as a customer name or product price.
Prompt resolution
Filling a template's placeholders with real data to get a tailored prompt.
Merge field
A grounding reference to record fields, flows, Apex or uploaded files.
Einstein Trust Layer
Masks sensitive data with placeholder text before the prompt reaches the LLM.
Reported, thanks
Step 3 of 9
It builds and manages prompt templates that use your CRM data. Those templates power generative AI features and Agentforce agents. So a requirement for AI output that draws on CRM data matches what Prompt Builder does.
Reported, thanks
Step 4 of 9
Choose a template when output must be consistent across many people. Prompts written by different users vary in style, so their output varies too. A reusable template fixes that and scales prompt design. That makes it a strong fit for B2C messages that need one voice at scale.
Exam trap Letting each user write their own prompt is not the scalable answer. Varied writing styles produce inconsistent output; a shared template solves that.
Reported, thanks
Step 5 of 9
Placeholders keep each prompt tied to up-to-date record data. You ground a template with merge fields. They can point to record fields, flows, Apex and uploaded files. At run time, prompt resolution swaps each placeholder for the real value.
Reported, thanks
Step 6 of 9
A template type gives you a starting point for one use case. For example, a Sales Email template helps sales reps draft personalized emails to a contact or lead. Match the business requirement to the type that serves it.
Reported, thanks
Step 7 of 9
Prompt Builder guides a template from creation to testing to activation. In preview, turning Generate Response off shows only the resolved prompt; nothing goes to the LLM. Activation then makes the template available across the org, inside apps like Sales Emails and Lightning record pages.
Exam trap A template is not usable just because you saved it. Users get it in Salesforce apps only after you activate it.
Reported, thanks
Step 8 of 9
The Einstein Trust Layer masks sensitive data sent to the LLM. It sends placeholder text instead, then adds the real data back into the response. Also confirm licensing: Prompt Builder needs Enterprise, Performance or Unlimited Edition plus a qualifying Einstein or Agentforce add-on, or Agentforce Foundations.
Reported, thanks
Step 9 of 9
Use Prompt Builder when many users need consistent, CRM-grounded AI output.
Placeholders and merge fields keep prompts tied to current record data.
A template reaches users in Salesforce apps only after activation.
With Generate Response off, preview shows the resolved prompt and sends nothing to the LLM.
Think first How do you control who can build prompt templates, who can run them, and which version they get?
Why it matters: Questions describe a user who cannot build or run a prompt template and ask which permission or control fixes it.
Access to prompt templates is managed with permission sets. One set lets people build and manage templates, another lets them run templates. Activation then decides which version of a template users reach.
Reported, thanks
Step 2 of 7
Term
Meaning
Prompt Template Manager
The permission set for creating and managing prompt templates in Prompt Builder.
Prompt Template User
The permission set for accessing and running prompt templates outside Prompt Builder.
Execute Prompt Templates
The permission to run prompt templates, included in both permission sets.
Reported, thanks
Step 3 of 7
Manager builds templates; User runs them. Both permission sets include the right to run templates. Only Prompt Template Manager adds the right to manage them in Prompt Builder. Customize Application is an alternative for either job.
The two prompt template permission sets compared
Feature
Prompt Template Manager
Prompt Template User
Lets a user
Create and manage templates in Prompt Builder
Access and run templates outside Prompt Builder
Permissions included
Manage Prompt Templates and Execute Prompt Templates
Execute Prompt Templates
Alternative permission set
Customize Application
Customize Application
Exam trap Assigning Prompt Template Manager fails for a user without Setup access. Setup access is required before the user can be added to that set.
Reported, thanks
Step 4 of 7
Activation decides which template version users can reach. Activate the version you want people to use, and deactivate the ones you do not. This gives fine control over what runs for your users.
Reported, thanks
Step 5 of 7
Copy a standard template to customize it. Some standard templates can also be overridden. The override works in place of the standard version.
Reported, thanks
Step 6 of 7
Template type decides where users meet it. Sales email templates are added to Einstein for Sales. Field generation templates are added to dynamic fields on Lightning App Builder pages. Before changing a template, view its references to see which flows, agents and components depend on it.
Reported, thanks
Step 7 of 7
Permission sets control who can use prompt templates.
Prompt Template Manager adds Manage Prompt Templates; Prompt Template User only runs templates.
A user needs Setup access before joining the Prompt Template Manager permission set.
Activation and deactivation control which template version users see.
Think first Given a content need, how do you choose between a Field Generation template and a Flex template, and what must be in place for each?
Why it matters: Questions describe where AI content is needed and ask which prompt template type fits and what setup it requires.
Template types fit different needs. Field Generation fills a record field when a user clicks a button. Flex covers any purpose the other types don't, with resources you define yourself, and you call it wherever you need it.
Reported, thanks
Step 2 of 7
Term
Meaning
Field Generation template
Creates content for a record field in Lightning Experience when a user clicks a button.
Flex template
Creates content for business purposes other template types don't cover.
Resource
An object you define as input to a Flex template; it can be marked required.
Generative AI-enabled field
A record field that uses a Field Generation template for summaries and descriptions.
Reported, thanks
Step 3 of 7
Pick the type by where the content goes and what feeds it. Field Generation serves one record field. Flex serves anything else, with inputs you choose.
Field Generation and Flex compared
Feature
Field Generation
Flex
Purpose
Content for a record field in Lightning Experience
Any business purpose other types don't cover
How it runs
A user clicks a button to fill the field
Called from custom UI or through the REST API
Where you use it
Record fields in Lightning Experience
Wherever you need it in your org
Reported, thanks
Step 4 of 7
Generative AI-enabled fields give dynamic summaries and descriptions. Users can ask Einstein to rewrite a draft, through brief back-and-forth turns. No AI field icon means the field doesn't support a prompt template. On mobile, an admin must first enable Dynamic Forms on Mobile.
Exam trap Not every record field can take a template. If the generative AI-enabled field icon is missing, a prompt template isn't supported there.
Reported, thanks
Step 5 of 7
A Flex template can have up to 5 resources. Give each resource object a unique Name and API Name. A checkbox marks a resource as required. In Preview Settings, pick an object for each resource to test.
Exam trap A Flex template cannot take unlimited inputs. It allows up to 5 resources.
Reported, thanks
Step 6 of 7
Check who builds templates and who runs them. Prompt Template Manager, or Customize Application, lets users create and manage templates. Prompt Template User lets them run templates outside Prompt Builder. If field generation templates aren't visible with a custom set, grant object access plus ExecutePromptTemplate and ManagePromptTemplate.
Reported, thanks
Step 7 of 7
Use Field Generation for content in a record field; use Flex for anything else.
Flex templates take up to 5 resources and run from custom UI or the REST API.
Generative AI-enabled fields on mobile need Dynamic Forms on Mobile enabled first.
Running templates outside Prompt Builder needs the Prompt Template User permission set.
Think first When should you ground AI in unstructured content through a search index, and when through metadata grounding?
Why it matters: Questions describe what the AI needs to know and ask which grounding technique or setting fits that need.
Unstructured content is grounded through a Data 360 search index: the data is chunked, turned into embeddings and cited. Org configuration is grounded through metadata grounding, which searches objects, fields and components in natural language.
Reported, thanks
Step 2 of 9
Term
Meaning
Chunk
A piece of content, sized by a token limit, that goes into the search index.
Vector embedding
A machine-readable form of a chunk that Data 360 creates for search.
Search index
A Data 360 index over chunked content that also creates a citation for each chunk.
Metadata grounding
Discovering, understanding and reusing org metadata through natural language.
Reported, thanks
Step 3 of 9
Pick the technique by what the AI must know. Grounding in documents and other unstructured data runs through a search index. Grounding in how the org is configured runs through metadata grounding. The table compares the two.
Search index grounding and metadata grounding compared
Feature
Search index
Metadata grounding
Grounds the AI in
Unstructured data, split into chunks
Objects, fields and metadata components
Search behind it
A vector or hybrid index over chunk embeddings
Data 360 hybrid search, semantic and keyword
Key benefit
Citations to verify AI responses
Reuse working configurations as templates
Reported, thanks
Step 4 of 9
Data must be chunked before it enters the search index. Data 360 offers several chunking strategies and picks one by content type. The chunks become vector embeddings. Chunking is available in every edition Data 360 supports.
Exam trap You do not have to pick a chunking strategy for each file. Data 360 selects one automatically from the content type.
Reported, thanks
Step 5 of 9
The max token limit sets how much text one chunk holds. It lives in the search index configuration. By default, the chunking max token limit is 512 tokens.
Reported, thanks
Step 6 of 9
A configuration creates a chunk object and an index object. Both are data model objects in Data 360. They store the chunk data and its generated embeddings. Each chunk gets a citation, so you can check AI answers against the content.
Reported, thanks
Step 7 of 9
Vector and hybrid indexes can enrich chunks with metadata. When you build one from unstructured data, you can add extracted keywords, entities, topic overviews, questions answered and summaries to the chunks.
Reported, thanks
Step 8 of 9
Metadata grounding explains and reuses org configuration. It explains what a custom object is for, what a field name means and how security is set up. You can also reference a working configuration as a template for a new field or object. It uses the Metadata Grounding MCP Server, which is in beta.
Exam trap Metadata grounding searches objects, fields and components, not documents. Grounding in unstructured content belongs in a chunked search index.
Reported, thanks
Step 9 of 9
Unstructured data is chunked, embedded and indexed, and each chunk gets a citation.
The chunking max token limit defaults to 512 and controls chunk size.
Each search index configuration adds two data model objects: one for chunks and one for the index.
Metadata grounding uses hybrid search over objects, fields and components through a beta MCP server.
Think first How does a prompt template move from a first draft to a live response that users can rely on?
Why it matters: Questions describe a stage in a template's life and ask what happens at design time, activation or run time.
You draft and preview a template in Prompt Builder, then activate one version for users. At run time, an agent, flow, Apex or app invokes it. The prompt is resolved securely before the LLM responds.
Reported, thanks
Step 2 of 10
Term
Meaning
Prompt Template Workspace
The Prompt Builder area where you draft a prompt and see its current version number.
Template version
A saved state of a template; only one version can be active at once.
Prompt resolution
The run-time step that adds merge field values from records, flows or Apex to the prompt.
Data masking
Run-time protection: pattern-based masking is automatic, field-based masking only works when enabled.
Reported, thanks
Step 3 of 10
Prompt Template Manager or Customize Application grants access. A user needs one of these two permission sets to create and manage templates in Prompt Builder. The Prompt Template Manager set carries the Manage Prompt Templates and Execute Prompt Templates permissions.
Reported, thanks
Step 4 of 10
Your first save creates Version 1. You write the prompt in the Prompt section of the Prompt Template Workspace. After you click Save, the version number shows at the top of the workspace. Starting from a standard template? Copy it to customize it, or override it where Salesforce allows.
Reported, thanks
Step 5 of 10
Preview simulates the whole run-time path. You give the template some input and check the resolved prompt. Then you see the response the LLM returns. So you can test a template end to end before anyone else uses it.
Reported, thanks
Step 6 of 10
New templates stay unavailable to users until activated. Drafting is iterative, so users can't run a template by default. Only one version can be active at a time. With no active version, the template is unavailable to users.
What each version state allows
Feature
Never activated
Active now
Once active, now inactive
Users can run this version
No
Yes
No
Can be edited in place
Yes
No, save a new version
No, save a new version
Exam trap Deactivating a version does not make it editable again. A version that was ever active stays immutable, so you save a new version to change it.
Reported, thanks
Step 7 of 10
An agent, flow, Apex or app invokes the template. You can also call it through an invocable action anywhere on the platform. Another route is Connect in Apex, or the Connect REST API. Prompt resolution then adds merge field values to the prompt.
Exam trap Merge data is not fetched with the template author's or an admin's access. The permissions of the user running the template decide what data the prompt can include.
Reported, thanks
Step 8 of 10
Pattern-based masking is automatic; field-based masking needs enabling. Both kinds of masking happen during run-time execution. Don't count on field-based masking unless it is turned on. The generated response then comes back in the user's language by default, or in a language you request.
Reported, thanks
Step 9 of 10
The template type decides where it shows up. Custom sales email templates show up automatically as choices in the Lightning Experience email composer. Field generation templates go on dynamic fields in Lightning App Builder pages. Before changing a template, check its references to see which flows, agents and components depend on it.
Reported, thanks
Step 10 of 10
Templates aren't available to users until you activate a version.
Only one version is active at a time; with none active, the template is unavailable.
A version that was ever active can't be edited; save a new version instead.
Merge data at run time follows the executing user's permissions.
Pattern-based masking is automatic, while field-based masking applies only if enabled.
Think first What makes a prompt template easy for an LLM to follow and easy for your team to maintain?
Why it matters: Questions describe a prompt template that gives poor or inconsistent output and ask which best practice fixes it.
A good prompt keeps instructions and data clearly apart. It gives the model a role, plain wording and one clear job. Then you test it, gather feedback and refine it.
Reported, thanks
Step 2 of 9
Term
Meaning
Triple quotes
A container (""") that marks the text inside it as data or context, apart from the instructions.
Merge field
A field of record data in a prompt; it needs a readable label and may be empty for some records.
Fallback instruction
A line telling the AI what to do when a merge field is empty for a record.
Resolution panel
The panel where an automatic summary appears when a prompt is too large for the model.
Reported, thanks
Step 3 of 9
Wrap variable data in triple quotes. This is the single most important way to organize a complex prompt. Everything inside the quotes reads as data, not as orders. To mark the orders themselves, add a line reading Instructions: and wrap them in triple quotes too.
Exam trap Mixing record data into the instruction text makes it hard for the model to tell context from orders. Keep each in its own quoted block.
Reported, thanks
Step 4 of 9
Long prompts need headers; very complex ones use several quoted blocks. Once a prompt runs past one screen, clear headers keep it scannable and easy to maintain. For very complex prompts, use one quoted block for variable data. Use a second block for a static example of tone and structure.
Reported, thanks
Step 5 of 9
Label each merge field; add a fallback where one may be empty. A label tells the model what each value means, which helps most when field names are cryptic. A fallback instruction covers records where the field is empty. As a general rule, include each piece of data only once.
Exam trap Repeating a merge field to stress it does not help. Repeated data can make results inconsistent, so include each value once.
Reported, thanks
Step 6 of 9
Assign a character, define its goal, and limit the output. Asking the model to act as a sales or support representative adds context. Direct wording such as "generate only the message to the customer" stops it from describing how it would write the content.
Reported, thanks
Step 7 of 9
Use concise, natural language in one consistent style. Avoid industry jargon and technical terms. Pick one writing style for your templates and keep to it. A consistent style leads the model to produce consistent responses.
Reported, thanks
Step 8 of 9
Begin with a library template, then test and refine. Salesforce suggests customizing a template from the Example Prompt Template Library. Try different templates for the same goal and collect end-user feedback. If a prompt is too large, the Resolution panel shows an automatic summary you can use, or you can shorten the prompt.
Reported, thanks
Step 9 of 9
Triple quotes are the key technique for keeping variable data apart from instructions.
Label each merge field, add a fallback for empty values, and include each value only once.
A role with a goal, plus direct output instructions, keeps the response on target.
Improve templates by trying alternatives and gathering end-user feedback.
Think first Which Trust Layer protections apply to a prompt, and how does that change when an agent sends it?
Why it matters: Questions describe how data reaches an LLM and ask which Trust Layer feature protects it, or whether it applies.
The Einstein Trust Layer brings together grounding by user permissions, data masking, zero data retention, toxicity detection and an audit trail. Agents, however, run with data masking turned off.
Reported, thanks
Step 2 of 9
Term
Meaning
Secure data retrieval
Grounding a prompt with only the data the running user is permitted to see.
Data masking
Detecting sensitive data and masking it before the prompt goes to the LLM.
Zero data retention
Third-party LLMs keep no data sent to them and do not train on it.
Toxicity score
A value from 0 to 1 for each category, where 1 is the most toxic.
Trust boundary
The Salesforce perimeter; an LLM hosted inside it keeps data within it.
Reported, thanks
Step 3 of 9
A secure AI architecture built into the Salesforce platform. It combines agreements, security technology, and data and privacy controls. The steps below follow a prompt from grounding to the audit log.
Reported, thanks
Step 4 of 9
Grounding respects the running user's permissions. Secure data retrieval keeps role-based controls and field-level security when it merges grounding data. So grounding data is limited by that user's access.
Reported, thanks
Step 5 of 9
Masking hides sensitive data, but agents skip it. You choose what must and must not be masked. Pattern-based and field-based masking are disabled for agents. Where masking applies depends on how the prompt reaches the LLM.
When data masking applies
Situation
Data masking
Other protection
Prompt template used directly
Applied per Trust Layer settings
You select what is masked
Prompt template called by an agent action
Disabled
Zero data retention for third-party LLMs
Agent using an LLM inside the trust boundary
Disabled
Data stays in the boundary; zero retention applies
Exam trap Masking settings do not carry into agents. A prompt template run through an agent action is sent without masking.
Reported, thanks
Step 6 of 9
Third-party LLMs keep none of the data sent to them. That data is also never used for model training or product improvements.
Reported, thanks
Step 7 of 9
Response checks are always on; prompt checks are optional. Detection in responses is on by default and cannot be changed. Detection in prompts is a beta feature that is off until you enable it. Models flag Violence, Sexual, Profanity, Hate and Physical content.
Exam trap Toxicity scores run from 0 to 1, and 1 is the most toxic, not the safest. An overall score also combines all categories.
Reported, thanks
Step 8 of 9
Prompt defense limits harm; the audit trail records it all. System policies lower the chance of hallucinations and harmful outputs. Prompts, responses, trust signals and toxicity scores are logged and stored in Data 360.
Reported, thanks
Step 9 of 9
Secure data retrieval grounds prompts with the running user's permissions and field-level security.
Data masking is disabled for agents, even with an LLM inside the trust boundary.
Third-party LLMs retain no data and never train on it.
Response toxicity detection is always on; prompt toxicity detection is a beta you enable.
The audit trail stores prompts, responses and trust signals in Data 360.
Think first When would you hide a model instead of deleting it, and what happens to the templates that use it?
Why it matters: Questions describe a model you want to retire or test and ask how to control who can select it.
In AI Models, you hide an LLM configuration to stop new selections in Prompt Builder. Templates already using it keep working. Deleting a model is permanent, so hiding is the reversible way to control access.
Reported, thanks
Step 2 of 9
Term
Meaning
AI Models
The Salesforce app, formerly Einstein Studio, where you connect and configure models.
BYOLLM
Bring Your Own LLM: connects an externally hosted foundation model to AI Models.
LLM configuration
A configured model, listed on the Configured Models tab, that template authors can pick.
Model Visibility
The column that tells you if Prompt Builder users can select a model or not.
Reported, thanks
Step 3 of 9
Hiding steers Prompt Builder users to another model. Hide a configuration when you want template authors to move to a newer LLM version or another LLM. The replacement can even come from a different provider. Hiding also lets you hold back a new LLM until your testing is done.
Reported, thanks
Step 4 of 9
Use Hide Model on the Configured Models tab. Open the Configured Models tab and pick Hide Model from that configuration's dropdown menu. The Model Visibility column then reads Hidden, and (Not Available) appears before the name. You can show it again later to make it selectable.
Reported, thanks
Step 5 of 9
Hiding never breaks templates already using the model. Prompt Builder marks such a template's model as hidden. The author can switch by choosing an available model from the Models list. Clones are stricter, as the table shows.
Existing templates and their clones after a model is hidden
Feature
Existing template
Cloned copy
Runs on the hidden model
Yes, the same as before
No, saving needs another model
How to switch models
Pick an available model from the Models list
Select another model before saving the copy
Exam trap Hiding a model doesn't stop existing templates from running. It removes the model from selection, and a clone must switch models before it can be saved.
Reported, thanks
Step 6 of 9
Deleting a model can't be undone. Once a model is deleted, none of its versions or prediction jobs can be recovered. A hidden configuration, by contrast, can be shown again later. So hide a model when you may want it back.
Exam trap Don't delete a model just to pause access while you test a new one. Deletion loses every version and prediction job, while hiding can be reversed.
Reported, thanks
Step 7 of 9
Only one model version can be active at a time. Activating the latest version switches off any earlier versions automatically. A foundation model that serves as a source for other models is also locked for most edits. You must first delete all of its associated model configurations.
Reported, thanks
Step 8 of 9
Model management depends on your permissions. The Allow users to manage models in AI Models permission lets a user create, update and delete models. The Data Cloud Architect permission set goes further, with admin-level access to every AI Models feature, including activation.
Reported, thanks
Step 9 of 9
Hide a model to steer authors elsewhere; existing templates keep running on it.
Hide Model sits in the configuration's dropdown menu on the Configured Models tab.
A cloned template with a hidden model must switch models before it can be saved.
Deleting a model is permanent; hiding can be reversed by showing it again.
Activating a model's latest version deactivates its earlier versions.
Each topic's Check tested it on its own; this mixes them.
Mixed quiz
Take the Domain 1 quiz
12 questions mixed from every topic in this domain, each answer explained. Mixing topics is harder than one at a time, and it is what the exam does. No account needed; with a free account your answers also build your estimated exam score.
Thank you. It goes straight to the people who write these notes.
Test yourself in exam conditions
A full Salesforce Certified Agentforce Specialist mock exam: 60 questions in 105 minutes, scored against the real exam's pass mark. Your first one is free.
Free to start: the study notes and plan, quizzes, flashcards and the first mock exam, no card needed. A free account keeps your place and saves your quiz scores.