---
schema_version: "1"
id: 8a00f1f82bdb0be6c05c78e0954a0cb554eab1c5d8756d9fb29ca3632eb73501
title: Add a Prompt Template as an Action
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ai/264-0-0/prompt_builder_add_action_prompt_template.md
canonical_url: https://help.salesforce.com/s/articleView?id=ai.prompt_builder_add_action_prompt_template.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 79de99b9b0fda67c23e5bcc75b704593632ea67fdf17676aebfd10d6fda4402c
description: Add a prompt template as an action within another prompt template to reuse logic and incorporate its output into your prompt. Invoke one prompt template from another to build consistent, modular prompt workflows.
products:
  - Agentforce
  - Cross Cloud
release: "264"
---
# Add a Prompt Template as an Action

Add a prompt template as an action within another prompt template to reuse logic and incorporate its output into your prompt. Invoke one prompt template from another to build consistent, modular prompt workflows.

### 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="d196566e69">User Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d196566e69 ">To create and manage prompt templates in Prompt Builder:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d196566e69 ">
              <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>

Before you begin, make sure that the prompt template you want to use as an action is active and that it has the required inputs configured.

1. In Prompt Builder, open an existing prompt template or create one.
2. In the Resources panel, click **Add**.
3. Select **Prompt Template** as the action type.
4. Select an active prompt template from the list.
5. Click **Add**. Configure the prompt template action to use the specified inputs when the prompt runs.

#### See Also

- [Use Prompt Templates as Actions](https://help.salesforce.com/s/articleView?id=ai.prompt_builder_use_prompt_template_actions.htm&release=264.0.0&type=5 "Add a prompt template as an action within another prompt template to reuse logic and standardize how responses are generated. Invoke one prompt template from another to build more consistent, modular prompt workflows.")