---
schema_version: "1"
id: a25c3cd58d544fd09f3110b0d8fd6adabc9312687ea8661dee9b52c0d7aa36b6
title: Use Multiple Versions of 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_use_multiple_versions.md
canonical_url: https://help.salesforce.com/s/articleView?id=ai.prompt_builder_use_multiple_versions.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 6538fc35271e94f79da496a5ce311ebb33c898e140834b7d63cab8aa5a896b8a
description: Create and use multiple versions of prompt templates in Prompt Builder to compare prompt constructions and their responses.
products:
  - Agentforce
  - Cross Cloud
release: "264"
---
# Use Multiple Versions of a Prompt Template

Create and use multiple versions of prompt templates in Prompt Builder to compare prompt constructions and their responses.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Enterprise</strong>, <strong>Performance</strong>, and <strong>Unlimited</strong> Editions with the Einstein for Platform, or Einstein or Agentforce for Sales or Service add-on, or Agentforce Foundations</td></tr></tbody></table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d200151e63">User Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d200151e63 ">To create and manage prompt templates in Prompt Builder:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d200151e63 ">
              <p>Prompt Template Manager permission set</p>
              <ul>
                <li>Manage Prompt Templates</li>

                <li>Execute Prompt Templates</li>

              </ul>
              <p>OR</p>
              <p style="margin-bottom:0;">Customize Application permission set</p>
            </td>

          </tr>
        </tbody>
      </table>

When testing your prompt template drafts, you don’t always get the exact response you’re looking for right away. Often it takes a few tweaks and edits to grounding data, LLM, and template body text to get a response you’re pleased with. Versioning is important for this reason. Prompt Builder allows you to create multiple versions of a template, so you can compare different prompt constructions and their responses while you craft the perfect prompt for your needs.

1. Begin in the Prompt Template Workspace of Prompt Builder. See [Create a Prompt Template](https://help.salesforce.com/s/articleView?id=ai.prompt_builder_build_template.htm&release=264.0.0&type=5 "Select the type of prompt template to create based on your use case. Based on the template type, define the resources available for the template.").
2. Draft your prompt in the Prompt section. When you’re ready to save your work, click **Save**. After you save a new prompt for the first time, it becomes Version 1 of that prompt template. The version number also becomes part of the URL, so the version can always be accessed statically via the URL.
3. Continue drafting your prompt in the Prompt section, and at any time save your changes to the current version of your prompt.
4. To create another version of your prompt template, select **Save As** | **Save as a New Version**. Any unsaved changes become part of the new version. Now your prompt is Version 2 of the same prompt template.
    
    ![Important](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ai-generative_ai-264-0-0-production-enus/f8ef6498-d7b2-44e3-9b34-ffd5a850aae9/images/icon_important.png)
    
    Important Activating a template version makes it immutable. Even if deactivated, any version that was ever active remains immutable. To edit such a template, save it as a new version.
    
    The version number at the top of the Prompt Template Workspace reflects the prompt template currently being edited on-screen and indicates whether it's active. When two or more versions of a prompt template exist, the version number shown becomes a dropdown menu showing a list of all versions, the time they were created, which is active, and the option to select a new version to work from.
    
    ![Important](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ai-generative_ai-264-0-0-production-enus/f8ef6498-d7b2-44e3-9b34-ffd5a850aae9/images/icon_important.png)
    
    Important When a new version of a prompt template is created, it doesn't automatically become available to all your users. See [Activate and Deactivate Prompt Templates](https://help.salesforce.com/s/articleView?id=ai.prompt_builder_activate_deactivate_templates.htm&release=264.0.0&type=5 "Use activation and deactivation of prompt templates to finely control which version your users can access.").
5. Turn an edited version of a prompt template into a new prompt template altogether by selecting **Save As** | **Save as a New Template**. Any unsaved changes become part of the new template.
    
    ![Important](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ai-generative_ai-264-0-0-production-enus/f8ef6498-d7b2-44e3-9b34-ffd5a850aae9/images/icon_important.png)
    
    Important The **Save as a New Template** option isn’t supported for flex prompt templates.