Salesforce Dictionary - Free Salesforce GlossarySalesforce Dictionary
Full Recommendation Strategy entry
How-to guide

Build and deploy a Recommendation Strategy

Create a Recommendation Strategy as a flow, fill it with logic, then attach it to the Einstein Next Best Action component on a page.

By Dipojjal Chakrabarti · Founder & Editor, Salesforce DictionaryLast updated Jun 16, 2026

Create a Recommendation Strategy as a flow, fill it with logic, then attach it to the Einstein Next Best Action component on a page.

  1. Create the strategy flow

    In Setup, open Flows, click New Flow, choose Use a Template, then select the Recommendation Strategy flow type and click Create.

  2. Load candidate recommendations

    Add a Get Records element that reads the Recommendation object or a related object. Set condition requirements so only recommendations that fit the context enter the collection.

  3. Filter and rank

    Add Collection Filter and Collection Sort elements to trim the list and order it. Optionally call Einstein Recommendation Builder, an Einstein Discovery model, or Apex to score and prioritize.

  4. Set the output

    Add an Assignment element that places your final recommendations into the outputRecommendations collection, then save and activate the flow.

  5. Surface it on a page

    In Lightning App Builder, drop the Einstein Next Best Action component onto a record page, home page, or Experience Cloud page and point it at your strategy.

Key options
Recommendation Strategy flow typeremember

The flow template that gives you a canvas wired for recommendations and the outputRecommendations collection.

outputRecommendations collectionremember

The reserved collection the component reads. Only recommendation records placed here are displayed to the user.

Get Records condition requirementsremember

Filters applied as records are retrieved, so ineligible recommendations never enter the strategy in the first place.

Scoring sourceremember

An optional Einstein Recommendation Builder model, Einstein Discovery model, or Apex action that ranks recommendations.

Gotchas
  • Recommendations not in the outputRecommendations collection are silently dropped, so an empty panel often means nothing was assigned to it.
  • The strategy decides which recommendations show, but you still have to author the recommendation records and the actions they launch.
  • One strategy can serve many pages. Splitting scenarios into separate strategies is easier to maintain than one strategy with branches for everything.
  • Strategies built in the original Strategy Builder should be recreated as Recommendation Strategy flows, since new investment goes into the Flow Builder path.

See the full Recommendation Strategy entry

Recommendation Strategy includes the definition, worked example, deep dive, related terms, and a quiz.