Service Cloud Voice Aura Toolkit Next Best Action

Give your reps recommendations in real time with Next Best Action.

To incorporate Next Best Action into your Service Cloud Voice solution, follow these instructions.

Next Best Action has usage-based entitlements. Invoking recommendations in Service Cloud Voice counts towards that usage.

Note

  1. Build a recommendation strategy that uses the filter element and $Request variable. The $Request variable is a map containing key value pairs. For example, if the recommendation strategy receives the data {intent: "refund"} then $Request.intent evaluates to "refund". To learn more, see Write an Expression.
  2. Enable real time recommendations in your Actions & Recommendations deployment and select the strategy you just built.
  3. Invoke Einstein Next Best Action with a record ID and key:value pairs in the updateNextBestActions() function parameters. Recommendations are displayed for record pages matching the provided ID. The value given to a particular key can be retrieved in the Recommendation Strategy using $Request.key in the filter element.

The following filter element expression shows recommendations that contain a particular keyword in the recommendation name. To learn more, see Write an Expression.

$Request.key != '' && CONTAINS(Name, $Request.key)

The following code invokes the next best action function.

cmp.find('voiceToolkitApi').updateNextBestActions(recordId, params);

Sample function call:

cmp.find('voiceToolkitApi')
   .updateNextBestActions('0LQxx0000004GcSGAU', { intent: 'refund' });