Loading
Upcoming Mandatory Changes to Public Key Infrastructure (PKI)Read More
Salesforce Enforces New Security Requirements in Summer 2026Read More
Agentforce and Einstein Generative AI
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 Flow Merge Fields with Data 360 Objects to a Field Generation Prompt Template

          Add Flow Merge Fields with Data 360 Objects to a Field Generation Prompt Template

          Build a flow that uses unified Data 360 object data to get a 360-degree view of an account, and then add a flow merge field to your prompt template.

          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

          In this example, we create a flow that uses the standard Salesforce CRM Account object to look up data in the Account and Unified Account Data 360 objects. Unified objects consolidate data from multiple data sources. To learn more about data consolidation, see Unify Source Profiles. This example uses the standard data bundles for the Salesforce CRM connector. Your Data 360 setup, objects, and fields can differ.

          Before creating the field generation prompt template, create a prompt template flow that gets account data from Data 360. For this example, you create the Get Account Activity from Data Cloud prompt template flow. In Flow Builder, the flow looks like this.

          Flow builder view
          1. Turn on Einstein.
            1. From Setup, in the Quick Find box, enter Einstein Setup, and then click Einstein Setup.
            2. Turn on Einstein.
          2. Create the flow.
            1. From Setup, in the Quick Find box, enter Flows, and then click Flows.
            2. Click New Flow.
            3. From Flow Builder, select Template-Triggered Prompt Flow, and then click Create.
          3. Configure the flow.
            1. For Prompt Template Type Capability, select Field Generation Template Capability.
              A capability makes it possible to pass data between the flow and the prompt template. When you create a prompt template in Prompt Builder, you select its prompt template type.
            2. For Object, select Account.
          4. Add a Get Records element. This Get Records element retrieves the account information.
            1. For Label, enter Get Account Info.
            2. For Data Source, select Salesforce Object.
            3. For Object, select Account.
            4. For Condition Requirements, select None—Get All Account Records.
            5. For How Many Records to Store, click Only the first record.
          5. Add another Get Records element and configure it. This Get Records element gets the Data Cloud account object that corresponds to the Salesforce CRM account object.
            1. For Label, enter Get Account from Data Cloud.
            2. For Data Source, select Data Cloud Object.
            3. For Data Space, select the data space that you want to use, for example, default.
            4. For Object, select your account data model object (DMO), for example, Account.
            5. For Condition Requirements, select All Conditions Are Met (AND).
            6. For Field, select the field that represents the account ID, for example, ssot_Id__c.
            7. For Operator, select Equals.
            8. For Value, select {!Get_Account_Info.Id}.
            9. For How Many Records to Store, click Only the first record.
          6. Add a third Get Records element. This Get Records element retrieves the unified account that’s linked to your Data Cloud account object.
            1. For Label, enter Get Unified Account.
            2. For Data Source, select Data Cloud Object.
            3. For Data Space, select the same data space as before.
            4. For Object, select your unified account DMO, for example, Unified Account 0001.
            5. For Condition Requirements, select All Conditions Are Met (AND).
            6. For Field, select the field that represents the account name, for example, ssot_Name__c.
            7. For Operator, select Equals.
            8. For Value, select {!Get_Account_from_Data_Cloud.ssot__Name__c}.
            9. For How Many Records to Store, click Only the first record.
          7. Add the Create Prompt Instructions element.
            1. For Label, enter Add Account Summary.
            2. For Prompt Instructions, enter: Account details: Account Name is {!Get_Unified_Account.ssot__Name__c};Account Description is {!Get_Unified_Account.ssot__Description__c};Account Type is {!Get_Unified_Account.ssot__AccountTypeId__c};Account Last Modified Date is {!Get_Unified_Account.ssot__LastModifiedDate__c}.
          8. Save your work, and click Activate.

          Now you can insert the prompt template flow into the field generation prompt template “Summarize open cases for an account” from the Field Generation Example Templates. For a step-by-step guide about how to add a flow merge field to a field generation prompt template, see Add Flows Without Data 360 Objects to a Field Generation Prompt Template.

           
          Loading
          Salesforce Help | Article