---
schema_version: "1"
id: 05aa852754fad5a4c6699eae9a8e210383af2a55fe29e3177d8fac844641b5fc
title: How Users Work with a Prompt Template
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ai/264-0-0/prompt_builder_how_users_work_with_templates.md
canonical_url: https://help.salesforce.com/s/articleView?id=ai.prompt_builder_how_users_work_with_templates.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 94683b93613b6c89e402d93ea57c8ca79845f7e9906cbd2ab2d9f91ac78d68fe
description: As a Salesforce administrator, you configure prompt templates to make tasks easier for your users. This section explains how your users can apply these prompt templates to write emails, generate case summaries, complete text form fields, and more.
products:
  - Agentforce
  - Cross Cloud
release: "264"
---
# How Users Work with a Prompt Template

As a Salesforce administrator, you configure prompt templates to make tasks easier for your users. This section explains how your users can apply these prompt templates to write emails, generate case summaries, complete text form fields, and more.

- **[Give Users Access to a Prompt Template](https://help.salesforce.com/s/articleView?id=ai.prompt_builder_give_users_access.htm&release=264.0.0&type=5)**  
    Prepare your users to harness the power of Einstein generative AI. Manage who can use prompt templates with permission sets. Add sales email prompt templates to Einstein for Sales, and add field generation prompt templates to dynamic fields in pages built with Lightning App Builder.
- **[Build and Manage Lightning Types for Prompt Templates](https://help.salesforce.com/s/articleView?id=ai.prompt_builder_build_manage_lt.htm&release=264.0.0&type=5)**  
    Use Lightning Types to define and manage structured output schemas for prompt templates. Lightning types are reusable definitions that Prompt Builder references at run time to enforce the response structure.
- **[Sales Email Prompt Templates in Action](https://help.salesforce.com/s/articleView?id=ai.prompt_builder_templates_in_action_sales_email.htm&release=264.0.0&type=5)**  
    Einstein generative AI helps you draft a personalized email. Your org’s custom sales email prompt templates automatically appear as options in the Lightning Experience email composer. Before you send an Einstein Sales Email, review the email draft and edit it, if needed.
- **[Field Generation Prompt Templates in Action](https://help.salesforce.com/s/articleView?id=ai.prompt_builder_templates_in_action_field_gen.htm&release=264.0.0&type=5)**  
    With generative AI-enabled fields, you can get real-time data from across your org without leaving a Lightning page. Generative AI-enabled fields use field generation prompt templates to provide dynamic summaries, descriptions, and more.
- **[Flex Prompt Templates in Action](https://help.salesforce.com/s/articleView?id=ai.prompt_builder_templates_in_action_flex.htm&release=264.0.0&type=5)**  
    Flex prompt templates are specific to your use cases, so call them wherever you need them in your org. Build custom UI or use REST API to call them with an invocable action.
- **[Integrate Prompt Templates with Salesforce Features](https://help.salesforce.com/s/articleView?id=ai.prompt_builder_integrate.htm&release=264.0.0&type=5)**  
    You can call a prompt template through an invocable action anywhere on the Salesforce Platform or by using the Connect REST API or Connect in Apex.
- **[Set Up Prompt Performance Metrics in Prompt Builder (Beta)](https://help.salesforce.com/s/articleView?id=ai.prompt_builder_enable_prompt_performance_metrics.htm&release=264.0.0&type=5)**  
    View prompt template user metrics from Data 360, and track which prompt templates perform best for your customers.
- **[Use Structured Outputs to Format Model Responses](https://help.salesforce.com/s/articleView?id=ai.prompt_builder_use_structured_outputs_responses.htm&release=264.0.0&type=5)**  
    Structured Output in Prompt Builder ensures models return responses in a consistent JSON or HTML format, improving reliability for workflows, integrations, and UI rendering.