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
          Flow Builder Strategies

          Flow Builder Strategies

          A Flow Builder strategy specifies business logic and generates output for an Einstein Next Best Action component on a Salesforce Lightning record page.

          Required Editions

          View supported editions for Next Best Action.

          In a Flow Builder strategy, you generate recommendations in either of the following ways:

          Build a Strategy Flow Using Predefined Recommendations

          Build a strategy flow based on predefined recommendations. This method works best if you have a small number of recommendations and want to make them available to multiple Einstein Next Best Action components. For example, you can create a recommendation that offers a discount to a customer. You can then use the same recommendation when creating a strategy for birthday discounts and for new customer discounts.

          Before building your strategy flow, create recommendations in the Recommendations object.

          Note
          Note If you want to create a large number of recommendations dynamically at one time, you can build a strategy flow with on-the-fly recommendations without creating separate records in the Recommendation object.
          1. From Setup, in the Quick Find box, enter Flows, select Flows, and then click New Flow.
          2. On the Alt + Templates tab, select the Recommendation Strategy flow type, and click Create.
          3. Load the records you want to use for your recommendation by adding a Get Records element to the flow.
            1. Enter a label and API name.
            2. Select the object to use for the recommendations, such as the Accounts, Cases, or Contacts object.
            3. In the Filter section, add conditions to limit which records from the object are used in your strategy.
          4. Bring a predefined recommendation into the strategy by adding a Get Records element.
            1. Enter a label and API name.
            2. Select the Recommendations object.
            3. In the Filter section, use conditions to specify the recommendation that you want to use.
          5. Add other flow elements as needed to define the strategy.
          6. Make your recommendation available for use in an Einstein Next Best Action component.
            1. Add an Assignment element.
            2. For Variable, select outputRecommendations.
            3. For operator, select Equals.
            4. For Value, select the predefined recommendation.
          7. Save your flow.
          8. Activate your flow.

          Build Strategy Using On-the-Fly Recommendations

          Build a strategy flow with multiple recommendations that you create dynamically in bulk. For example, you can create a strategy that offers a different upsell recommendation for each product in your product list. With this method, you create recommendations directly in the strategy flow without using separate Recommendation records.

          Note
          Note If you want to reuse recommendations in multiple Einstein Next Best Action components, use pre-defined recommendations created in the Recommendations object.
          1. From Setup, in the Quick Find box, enter Flows, select Flows, and then click New Flow.
          2. On the Alt + Templates tab, select the Recommendation Strategy flow type, and click Create.
          3. Load the records you want to use for your recommendations by adding a Get Records element to the flow.
            • Enter a label and API name.
            • Select the object to use for the recommendations, such as the Product object.
            • In the Filter section, add conditions to limit which records from the object are used in your strategy.
          4. Add a Recommendation Assignment element.
            • Enter a label and API name.
            • For Record Collection Variable, select the variable that you generated with Get Records.

              When you select the variable, the target fields are populated automatically.

            • Set values for the target fields:
              • AcceptanceLabel—Button label to accept the offer.
              • RejectionLabel—Button label to reject the offer.
              • ActionFlow—API name of the flow that performs an action when the offer is accepted or rejected.
              • Description—Text that appears above the buttons in the Next Best Action component.
          5. Make your recommendation available for use in an Einstein Next Best Action component.
            • Add an Assignment element.
            • For Variable, select outputRecommendations.
            • For operator, select Equals.
            • For Value, select the recommendation from the Recommendation Assignment step.
          6. Save your flow.
          7. Activate your flow.
           
          Loading
          Salesforce Help | Article