# Writing effective prompt template instructions

*Agentforce Specialist Study Guide · Prompt Engineering · Last updated November 6, 2026 · https://www.certifyforce.com/study-guide/agentforce-specialist/prompt-engineering/writing-effective-prompt-template-instructions*

How role, goal, delimited instructions, clear format and style, grounding and iteration shape prompt responses, plus the current AI Assist Beta canvas controls for inspecting, accepting and discarding suggested text.

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

**Official exam objective:**

> Explain how to implement best practices for writing effective prompts.

## What the exam expects

- Apply the documented best practices when writing a prompt template: role and goal, a clear task, delimited instructions, output format and length, and one consistent style.
- Diagnose a bad response (generic text, process narration, echoed instructions, inconsistent tone, invented facts) and pick the prompt change that fixes it.
- Reduce hallucination with instructions that keep the model inside the grounded data and handle missing values.
- Explain why plain, concise wording beats copied jargon, and why you start from example templates and iterate with real records and user feedback.
- Key terms: **prompt instructions** (the natural-language task description in the template); **grounding** (adding relevant Salesforce data so the response isn't generic); **delimiter** (the `Instructions:` line plus triple quotes that separates directions from context); **hallucination** (a response with false information not in any source); **meta-commentary** (text about how the model wrote the content instead of the content itself).

## Key facts

| Fact | Detail | Source |
|---|---|---|
| Role play | Ask the LLM to play a character, then define that character's goal | [Best Practices](https://help.salesforce.com/s/articleView?id=ai.prompt_builder_best_practices.htm&language=en_US&type=5) |
| Instructions delimiter | `Instructions:` on a separate line, directions surrounded by triple quotes | [Best Practices](https://help.salesforce.com/s/articleView?id=ai.prompt_builder_best_practices.htm&language=en_US&type=5) |
| Stopping process narration | Instruct the LLM to generate only the expected type of content | [Best Practices](https://help.salesforce.com/s/articleView?id=ai.prompt_builder_best_practices.htm&language=en_US&type=5) |
| Wording | Concise, natural language; avoid industry jargon and technical terms | [Best Practices](https://help.salesforce.com/s/articleView?id=ai.prompt_builder_best_practices.htm&language=en_US&type=5) |
| Style | Choose one style and stick to it for consistent responses | [Best Practices](https://help.salesforce.com/s/articleView?id=ai.prompt_builder_best_practices.htm&language=en_US&type=5) |
| Starting point | A template from the Example Prompt Template Library, customized | [Best Practices](https://help.salesforce.com/s/articleView?id=ai.prompt_builder_best_practices.htm&language=en_US&type=5) |
| Refinement loop | Try variations of the template and get end-user feedback | [Best Practices](https://help.salesforce.com/s/articleView?id=ai.prompt_builder_best_practices.htm&language=en_US&type=5) |
| Variability | Every run is a new LLM call, so the same prompt can return different responses | [Key Concepts](https://help.salesforce.com/s/articleView?id=ai.prompt_builder_key_concepts.htm&language=en_US&type=5) |
| Repeated merge fields | Can lead to inconsistent results | [Troubleshoot Prompt Builder](https://help.salesforce.com/s/articleView?id=ai.prompt_builder_troubleshoot.htm&language=en_US&type=5) |
| Template description | Shown in the Setup template list, not part of the prompt | [Create a Prompt Template](https://help.salesforce.com/s/articleView?id=ai.prompt_builder_build_template.htm&language=en_US&type=5) |

## Check yourself

- Why does AI Assist show green and red text after a refinement?
- When should the bottom checkmark be used?
- Which control starts over with a fresh AI Assist draft?
- Where can further refinement instructions be entered?

## Sources

- [Best Practices for Building Prompt Templates](https://help.salesforce.com/s/articleView?id=ai.prompt_builder_best_practices.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)
- [Troubleshoot Prompt Builder](https://help.salesforce.com/s/articleView?id=ai.prompt_builder_troubleshoot.htm&language=en_US&type=5)
- [Create and Optimize Prompt Templates for AI](https://trailhead.salesforce.com/content/learn/modules/custom-service-agents-with-prompt-builder-and-agentforce/craft-an-effective-prompt-template)
- [Einstein Trust Layer: Designed for Trust](https://help.salesforce.com/s/articleView?id=ai.generative_ai_trust_arch.htm&language=en_US&type=5)
- [Use Multiple Versions of a Prompt Template](https://help.salesforce.com/s/articleView?id=ai.prompt_builder_use_multiple_versions.htm&language=en_US&type=5)
- [Enhance Email Campaigns with Prompt Templates](https://trailhead.salesforce.com/content/learn/modules/prompt-builder-basics/create-and-ground-prompt-templates)
- [Create a Prompt Template](https://help.salesforce.com/s/articleView?id=ai.prompt_builder_build_template.htm&language=en_US&type=5)
- [Create Prompt Templates with AI Assist (Beta)](https://help.salesforce.com/s/articleView?id=ai.prompt_builder_refine_block_with_ai.htm&language=en_US&type=5)

## About the full unit

The "Core concepts", "Exam traps" and "Worked scenario" sections of this unit and reading progress are included in the full study guide. The separate practice exams option includes the reviewed question bank and timed mock exams. The bundle includes both where available. See [current options and prices](https://www.certifyforce.com/pricing).
