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
Available in: Lightning Experience
Available in: Enterprise, Performance, and Unlimited
Editions with the Einstein for Platform, or Einstein or Agentforce for Sales or
Service add-on, or Agentforce Foundations
User Permissions Needed
To create and manage prompt templates in Prompt Builder:
Prompt Template Manager permission set
Manage Prompt Templates
Execute Prompt Templates
OR
Customize Application permission set
Before you being, verify all actions are properly configured. Confirm the source action produces the required output.
In Prompt Builder, open a prompt template.
Add the required actions (for example, a prompt template and a retriever).
Configure the first action to generate an output.
Select the second action.
In the input field (such as Search Parameters), reference the output of the first action.
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 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.
Did this article solve your issue?
Let us know so we can improve!
Loading
Salesforce Help | Article
Cookie Consent Manager
Cookie Consent Manager
General Information
Required Cookies
Functional Cookies
Advertising Cookies
General Information
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required Cookies
Always Active
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional Cookies
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising Cookies
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.