You are here:
Add Prompt Instructions Element
Provide data in the form of prompt instructions that are merged into a prompt template in Prompt Builder. This element is available only in template-triggered prompt flows.
Required Editions
| Available in: Lightning Experience |
| View supported editions. |
| This feature requires the Einstein for Sales, Einstein for Service, or Einstein Platform add-on. To purchase, contact your Salesforce account executive. |
Template-triggered prompt flows aren’t compatible with prompt templates created in Winter ’24.
| Field | Description |
|---|---|
| Prompt Instructions | The text and flow resources that the flow evaluates at run time. The text and resource values are stored in the $Output global variable. In the flow, the first Add Prompt Instructions element adds text and flow resources to the $Output global variable. Each subsequent Add Prompt Instructions element appends text and flow resources to the $Output global variable. |
Handle Missing Data in Prompt Instructions
Consider logic or actions that return no data in prompt instructions. Consider these options:
- Incorporate an alternative or default value.
- Add instructions that don’t use the data.
- Clear the prompt instructions, so nothing is passed outside the flow.
- Include prompt instructions that address the missing data.
For example, your prompt instructions depend on accounts that meet filter criteria, but the flow finds no accounts. We recommend using logic to handle the missing data. The Decision element can check for data, and the Add Prompt Instructions element can send contextual instructions that no data is available.
Get Record IDs
When you insert a resource that references the Get Records element in the Add Prompt Instructions element, the $Output global variable stores only the record IDs. For example, the Get Records element retrieves a collection of accounts. Its flow resource {!Get_Accounts} is inserted into the Add Prompt Instructions. The $Output global variable stores only the account IDs.

