# Prompt Builder use cases and solution fit

*Agentforce Specialist Study Guide · Prompt Engineering · Last updated October 15, 2026 · https://www.certifyforce.com/study-guide/agentforce-specialist/prompt-engineering/prompt-builder-use-cases-and-solution-fit*

When a requirement calls for a Prompt Builder template (generated language grounded in Salesforce data that admins can tune) and when it calls for a formula, roll-up summary, flow or validation rule because the result must be exact, repeatable and auditable.

- Certification: Salesforce Agentforce Specialist
- Exam section: Prompt Engineering
- Study guide: https://www.certifyforce.com/study-guide/agentforce-specialist

**Official exam objective:**

> Given business requirements, identify when it's appropriate to use Prompt Builder.

## What the exam expects

- Decide from a business requirement whether the deliverable is generated language (a Prompt Builder job) or an exact, repeatable value or rule (a formula, roll-up summary, flow or validation rule).
- Recognise the signals that favour Prompt Builder: natural-language output, grounded in record data, reused across many records, and tuned by admins without code.
- Explain why a requirement for identical output on identical inputs, or for an auditable figure, is not met by any prompt template configuration.
- Match where the output must appear (record field, email composer, flow, Apex, API or agent action) to the template that serves it.
- Key terms: **prompt template** (a reusable prompt with placeholders that Prompt Builder fills with your data); **grounding** (adding Salesforce data to a prompt for context); **prompt resolution** (replacing the placeholders with real values before the prompt goes to the LLM); **deterministic** (same inputs, same output, every time); **entry point** (where users or automation call the template).

## Key facts

| Fact | Detail | Source |
|---|---|---|
| What Prompt Builder manages | Reusable prompt templates grounded with merge fields that reference record fields, flows, Apex and uploaded files | [Prompt Builder Key Concepts](https://help.salesforce.com/s/articleView?id=ai.prompt_builder_key_concepts.htm&language=en_US&type=5) |
| Repeatability | Every run is a new LLM call; responses can differ for the exact same prompt | [Prompt Builder Key Concepts](https://help.salesforce.com/s/articleView?id=ai.prompt_builder_key_concepts.htm&language=en_US&type=5) |
| Licensing | Enterprise, Performance or Unlimited with Einstein for Platform, an Einstein or Agentforce for Sales or Service add-on, or Agentforce Foundations | [Create a Prompt Template](https://help.salesforce.com/s/articleView?id=ai.prompt_builder_build_template.htm&language=en_US&type=5) |
| Run-time data access | Merge-field data is governed by the executing user's permissions | [Run-time Execution](https://help.salesforce.com/s/articleView?id=ai.prompt_builder_runtime.htm&language=en_US&type=5) |
| Trust Layer scope | Applies only to generative AI and Agentforce features | [Einstein Trust Layer: Designed for Trust](https://help.salesforce.com/s/articleView?id=ai.generative_ai_trust_arch.htm&type=5) |
| Field generation target | Writable text, text area, text area (long) and text area (rich); not read-only fields | [Build a Field Generation Prompt Template](https://trailhead.salesforce.com/content/learn/modules/prompt-builder-basics/build-a-field-generation-prompt-template) |
| Flex entry points | None predefined; Apex, Flow, REST API or Agentforce | [Create a Flex Prompt Template](https://trailhead.salesforce.com/content/learn/projects/quick-start-create-prompt-builder-flex-template/build-a-flex-prompt-template) |
| Calling any template | Invocable action, Connect REST API or Connect in Apex | [Integrate Prompt Templates](https://help.salesforce.com/s/articleView?id=ai.prompt_builder_integrate.htm&language=en_US&type=5) |
| Roll-up summary | Count, sum, min or max of detail records over a master-detail relationship | [Roll-Up Summary Field](https://help.salesforce.com/s/articleView?id=platform.fields_about_roll_up_summary_fields.htm&type=5) |

## Check yourself

- Why can no prompt template configuration guarantee identical output for identical inputs?
- When should a requirement get a flex template instead of a field generation template?
- When is a roll-up summary field the better answer than a prompt template?
- Which Salesforce resources can ground a Prompt Builder template?

## Sources

- [Prompt Builder](https://help.salesforce.com/s/articleView?id=ai.prompt_builder_intro.htm&language=en_US&type=5)
- [Prompt Builder Key Concepts](https://help.salesforce.com/s/articleView?id=ai.prompt_builder_key_concepts.htm&language=en_US&type=5)
- [Maximizing Generative AI with Effective Prompts](https://trailhead.salesforce.com/content/learn/modules/prompt-builder-basics/get-to-know-prompt-builder)
- [Create a Prompt Template](https://help.salesforce.com/s/articleView?id=ai.prompt_builder_build_template.htm&language=en_US&type=5)
- [Prompt Template Run-time Execution](https://help.salesforce.com/s/articleView?id=ai.prompt_builder_runtime.htm&language=en_US&type=5)
- [Troubleshoot Prompt Builder](https://help.salesforce.com/s/articleView?id=ai.prompt_builder_troubleshoot.htm&language=en_US&type=5)
- [Prompt Template Types](https://help.salesforce.com/s/articleView?id=ai.prompt_builder_standard_template_types.htm&language=en_US&type=5)
- [Integrate Prompt Templates with Salesforce Features](https://help.salesforce.com/s/articleView?id=ai.prompt_builder_integrate.htm&language=en_US&type=5)
- [Build a Field Generation Prompt Template](https://trailhead.salesforce.com/content/learn/modules/prompt-builder-basics/build-a-field-generation-prompt-template)
- [Create a Flex Prompt Template with Einstein AI](https://trailhead.salesforce.com/content/learn/projects/quick-start-create-prompt-builder-flex-template/build-a-flex-prompt-template)
- [Einstein Trust Layer: Designed for Trust](https://help.salesforce.com/s/articleView?id=ai.generative_ai_trust_arch.htm&type=5)
- [Roll-Up Summary Field](https://help.salesforce.com/s/articleView?id=platform.fields_about_roll_up_summary_fields.htm&type=5)
- [Build a Formula Field](https://help.salesforce.com/s/articleView?id=platform.customize_formulas.htm&type=5)

## About the full unit

The "Core concepts", "Exam traps" and "Worked scenario" sections of this unit, its 7 linked practice questions, and unlimited timed mock exams are included with the Agentforce Specialist pack (USD $19): https://www.certifyforce.com/practice-exams
