# How do Einstein Next Best Action recommendations guide agents toward optimal resolution strategies?

**Topic:** Service Cloud · **Difficulty:** Medium · **Tags:** Service Cloud, Next Best Action, Einstein AI

Read it on the site: https://www.forcechallenges.com/interview-questions/how-do-einstein-next-best-action-recommendations-guide-agents-toward-optimal-resolution-strategies

## Answer

**Basics:** Agents often decide ad hoc what to offer or do. Next Best Action (NBA) centralizes this: recommendations are records, a strategy chooses which to display for the current case or customer, and a Lightning component presents them. The original answer implies it is purely AI; mostly it is rule-driven, with ML as an optional input.

**How it works:**
1. Create Recommendation records (name, description, image, acceptance and rejection labels, and an action Flow reference).
2. Build a Recommendation Strategy in Flow Builder using elements such as Load, Filter, Sort, Map, Branch, Match and Recommendation limits, pulling context from the record.
3. Add the Next Best Action component on the Lightning record page, selecting the strategy.
4. Agent accepts or rejects; the action flow runs (offer, create task, open article). Responses are stored (RecommendationResponse) and can be used to suppress repeats.

**Advanced / deep dive:** Add intelligence by calling Einstein Discovery or Prediction Builder scores in the strategy, or by loading model output stored on fields. Use filters for eligibility (entitlement, product ownership) and suppression for recently rejected offers. Strategy metrics help tune. The same strategy can surface in Experience Cloud, bots or via API for omnichannel consistency. Performance: keep the number of candidate recommendations bounded and query only needed fields. Branding and licensing are evolving (Einstein features moving under Agentforce); verify edition and license requirements.

**Code / config example:**
Strategy design (Flow Builder): Load Recommendation records where Active = true -> Filter by `Account.Type = Customer` and not rejected in last 30 days -> Sort by custom Priority field descending -> Limit to 3 -> Output to the component.

**Hidden gotchas & must-remember points:**
- Recommendations without an action flow only display, they do nothing.
- Accept and reject must be tracked or the same offer reappears.
- ML scores need trained, maintained models; stale models degrade quality.
- Strategy flows have the same flow limits as other flows.
- Recommendation visibility respects object permissions.
- Rules first, models second; do not start with AI if rules solve it.

**Best practice:** Start with a simple rule-based strategy, measure acceptance rates, then add predictive inputs.

---
Source: ForceChallenges · last updated 2026-11-02
