---
schema_version: "1"
id: f83c3253264aa5f6f10de033993a6bfad7d0921eb3439e9a73f1ddfe784902f6
title: Pass Data Between Actions in Prompt Builder
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ai/264-0-0/prompt_builder_configure_data_piping.md
canonical_url: https://help.salesforce.com/s/articleView?id=ai.prompt_builder_configure_data_piping.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: aa510d5fcfa78fb3a5ab4c21bc6f0806be227fbbedf633a91b6baa006be7b2f3
description: Pass data between actions in Prompt Builder to create dynamic and flexible prompt workflows. Use the output of one action as input to another to generate more contextual and relevant responses.
products:
  - Agentforce
  - Cross Cloud
release: "264"
---
# Pass Data Between Actions in Prompt Builder

Pass data between actions in Prompt Builder to create dynamic and flexible prompt workflows. Use the output of one action as input to another to generate more contextual and relevant 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="d66463e69">User Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d66463e69 ">To create and manage prompt templates in Prompt Builder:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d66463e69 ">
              <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 being, verify all actions are properly configured. Confirm the source action produces the required output.

1. In Prompt Builder, open a prompt template.
2. Add the required actions (for example, a prompt template and a retriever).
3. Configure the first action to generate an output.
4. Select the second action.
5. In the input field (such as Search Parameters), reference the output of the first action.

![Example](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ai-generative_ai-264-0-0-production-enus/f8ef6498-d7b2-44e3-9b34-ffd5a850aae9/images/icon_example.png)

Example

```
Can you answer this question? {!$PromptTemplate:Generate_Stack_Overflow_Query.promptResponse}
```

When the prompt runs, the first action (prompt template) generates output. The second action uses that output as input. The final response includes results from both actions

![Tip](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ai-generative_ai-264-0-0-production-enus/f8ef6498-d7b2-44e3-9b34-ffd5a850aae9/images/icon_tip.png)

Tip To analyze performance, open the Performance Insights panel and review metrics such as response time and token usage. Each action appears as a separate step.