Loading
Salesforce now sends email only from verified domains. Read More
Automate Your Business Processes
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Add Prompt Instructions Element

          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.

          Example
          Example The first Add Prompt Instructions element adds the text Hello!. The next Add Prompt instructions element appends the {!contact} record variable resource. When the flow finishes, the $Output global variable contains the text, Hello! Mary, where Mary is the value that {!contact} references. The same text is merged into the associated prompt template in Prompt Builder.

          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.

           
          Loading
          Salesforce Help | Article