Prompt Engineering20% of the exam
Prompt template types: field generation and flex
Choose template types by their intended inputs and user experience: field generation for a reviewed writable-field draft, flex for defined object or free-text inputs without a predefined entry point. Distinguish custom-resource visibility from preview record limitations.
Identify the considerations for using a prompt template type such as field generation and flex types.
~8 min read · 8 practice questions
What the exam expects
- Pick a prompt template type (sales email, field generation, record summary or flex) from the requirement's output, inputs and entry point.
- State the field generation considerations: one object and one writable text field chosen at creation, an Einstein button on a Dynamic Forms record page set up in Lightning App Builder, and a draft the user reviews before saving.
- State the flex considerations: no predefined entry point, up to five inputs you define (objects or free text), and invocation from Flow, Apex, the REST API or an agent.
- Match each requirement to its intended template experience without treating the usual surface as the only possible programmatic caller.
- Key terms: template type (the kind of template chosen at creation, defining its intended inputs and experience); field generation (fills one record field from a button on the record page); flex (general-purpose type with inputs you define); input/resource (a record or free-text value the template receives); Dynamic Forms (record pages built from individual field components).
Key facts
Field generation input
- Detail
- One defined object input; related records may supply grounding; use flex for separate object inputs
Field generation targets
- Detail
- Writable text, text area, text area (long), text area (rich); not read-only fields
Field generation placement
- Detail
- Lightning App Builder, Dynamic Forms field, Einstein Generative AI section of field properties
Native field workflow
- Detail
- Review or optionally revise in Einstein; Use adds to field; edit if needed, then Save
Knowledge rich text areas
- Detail
- Field generation unsupported on __kav rich text areas; use flex, Flow or Apex
Flex inputs
- Detail
- Maximum 5
Flex input setup
- Detail
- Each input has a unique Name and API Name; can be marked required
Free-text input
- Detail
- Flex only, up to 127,000 characters
Flex callers
- Detail
- Apex, Flow, REST API or Agentforce; no predefined entry point
Flex invocation
- Detail
- Custom UI or REST API with an invocable action; enablement depends on the use case
Record summary
- Detail
- Used by the Summarize Record standard invocable action and agent action
Sources for this section (11)
- Field Generation Merge Fieldshelp.salesforce.com (opens in a new tab)
- Grounding flowtrailhead.salesforce.com (opens in a new tab)
- Add a Field Generation Prompt Templatehelp.salesforce.com (opens in a new tab)
- Field Generation in Actionhelp.salesforce.com (opens in a new tab)
- Prompt Builder Limitationshelp.salesforce.com (opens in a new tab)
- Prompt Builder Limitshelp.salesforce.com (opens in a new tab)
- Create a Flex Prompt Templatehelp.salesforce.com (opens in a new tab)
- Add Free Text Inputshelp.salesforce.com (opens in a new tab)
- Create a Flex Prompt Template with Einstein AItrailhead.salesforce.com (opens in a new tab)
- Flex Prompt Templates in Actionhelp.salesforce.com (opens in a new tab)
- Prompt Template Typeshelp.salesforce.com (opens in a new tab)
- Why can a just-created custom field be absent even before you evaluate its template fit?
- When you need a newly created custom resource immediately, what is the documented action?
- Why can an existing object's records be unavailable in the preview selector when its Name is encrypted?
The questions are free to read. Answers with their sources and self-grading are included with the pack.
Keep reading with the Agentforce Specialist pack
- Core concepts
- Exam traps
- Worked scenario
The pack includes:
- All 26 lessons of the Agentforce Specialist guide, with reading progress
- Interactive decision walks and step-by-step sequence steppers
- Practice exams purchase adds inline bank questions and topic practice (8 questions for this lesson)
- An official source cited for every claim
- An AI tutor that answers from the guide
- Choose guide-only, practice-only, or save $4 with both