Cert EspressoLearn. Practise. Find your flow.

A LITTLE FOCUS.
A BIG NEXT STEP.

Your pace. Your space.
Salesforce · Agentforce Specialist

Prompt Builder, the 4 Template Types, Permissions

Agentforce Specialist · Lesson 1 of 14 · 3:42

YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗

Learning with these videos? Subscribe for new courses and exam-style questions.

In this lesson

Prepare for the Salesforce Agentforce Specialist exam. In this lesson: when a prompt template in Prompt Builder fits and when an agent does, the four template types (Sales Email, Field Generation, Record Summary, and Flex), where each one runs, and who can build and run templates (Prompt Template Manager, Prompt Template User, Customize Application). Includes three original practice questions, with Sunmeadow Solar, a fictional solar installer, as the example.

Study notes

The text of this lesson, to read at your own pace. Information as of December 2026.

Three jobs for generative AI

Sunmeadow Solar installs solar panels and home batteries, and runs its business on Salesforce. Its Salesforce admin gets three requests in one week: draft the follow up email after a site survey, fill in a summary field on each installation, and write a short brief of every open case. All three are jobs for Prompt Builder, and this lesson shows which kind of template fits each one, and who may build and run it.

When to use Prompt Builder

Prompt Builder is where you create prompt templates: reusable instructions for a large language model, with placeholders for your data. At run time, Salesforce fills those placeholders with data from the record, so each answer is specific to that customer. The model then generates text, such as an email, a summary, or a field value, and a person can review it before it is used. So Prompt Builder fits a known task that needs generated text, and that you want to repeat the same way across many records.

Prompt Builder or something else

Not every request needs a prompt template. If the result follows a fixed rule, like a discount from a table, a formula or a flow gives the same answer every time, with no model at all. If the user needs a conversation, with several steps, decisions, and actions, that is a job for an agent. And the two work together, because an agent can call a prompt template as one of its actions, for example to write a reply.

Four template types

Prompt Builder has four template types, and the type decides where the template runs and what it receives. A sales email template drafts an email to a contact or a lead, from the email composer. A field generation template writes the value of one field on a record page. A record summary template summarizes one record for the person who opens it. And a flex template lets you define its inputs yourself, for every case the other types do not cover.

Field generation templates

A field generation template targets one field, on one object, such as an installation summary on the installation record. The field must be an editable text field: text, text area, long text area, or rich text. You then attach the template to that field on a record page, with Dynamic Forms in Lightning App Builder, and users click a button on the field to generate the text. The user can edit the result before saving the record, so a person stays in control.

Flex templates

A flex template is the most versatile type, because you choose its inputs, such as one or more records, or free text. That makes it the usual choice when a flow, an Apex class, or an agent action calls the template with its own data. Sales email templates, by contrast, need sales emails turned on in Einstein for Sales. So pick the type from where the text is needed: an email, a field, a summary, or anywhere else with flex.

Who can build and run templates

Access to templates is controlled with permission sets, once Einstein generative AI is turned on. The Prompt Template Manager permission set lets a user create and manage templates in Prompt Builder, and that user also needs access to Setup. The Prompt Template User permission set lets people run templates in the features they use, without editing them. The Customize Application permission covers both, so keep it for admins.

Grounding respects the user

When a template runs, its data is fetched with the permissions of the user who runs it. Field level security and sharing still apply, so a field the user cannot see never reaches the prompt. That means two users can get different answers from the same template, because they see different data. And a template version must be active before anyone can run it, as you'll see in the next lesson.

Recap

Let's recap. Prompt Builder creates reusable templates that are filled with record data at run time, for a known task that needs generated text. Fixed rules belong in formulas or flows, and conversations belong to agents, which can call templates as actions. The four types are sales email, field generation, record summary, and flex. Field generation writes one editable text field from a record page, and flex takes the inputs you define. Prompt Template Manager builds templates, and Prompt Template User runs them, always with the data that user can see.

Quick checks for this lesson

The 3 questions of this lesson, as plain text. The button above runs them with shuffled choices and the reason behind every choice.

  1. Every case must show a short written brief, generated from the case fields with the same instructions each time. Which tool fits best?

    • A formula field on the case
    • A prompt template in Prompt Builder
    • A new conversational agent for the brief
    • A fixed email template
    Show the answer

    A prompt template in Prompt Builder

    A prompt template gives a repeatable, grounded text for a known task, record after record. “A formula field on the case” is wrong, because a formula field returns a computed value, and cannot write a brief in natural language. “A new conversational agent for the brief” is wrong, since a full conversational agent is more than this single task needs. And “A fixed email template” is wrong, because the brief is generated from the case data, and a fixed email template would not adapt to each case.

  2. A flow must send a site survey record and a customer’s free-text note to a template, and use the generated answer. Which template type fits?

    • Sales Email
    • Field Generation
    • Record Summary
    • Flex
    Show the answer

    Flex

    A flex template lets you define its own inputs, here a record and free text, and a flow can call it. “Sales Email” is wrong, because a sales email template drafts emails from the email composer, for a contact or a lead. “Field Generation” is wrong, since a field generation template writes one field, from a button on a record page. And “Record Summary” is wrong, because a record summary template summarizes a single record, without a separate text input.

  3. Field technicians must run the installation summary template from the record page, but must not edit any template. Which permission set should they get?

    • Prompt Template User
    • Prompt Template Manager
    • Customize Application
    • Read access to the object only
    Show the answer

    Prompt Template User

    The Prompt Template User permission set lets people run templates, without managing them. “Prompt Template Manager” is wrong, because the Prompt Template Manager permission set allows creating and editing templates. “Customize Application” is wrong, since the Customize Application permission gives admin rights, far more than the technicians need. And “Read access to the object only” is wrong, because read access to the object alone does not let anyone run a template.