Recommendations

Get recommendations with Einstein Next Best Action. You can now work on actionable next steps with a unified, synchronized view of real-time score predictions and recommendations.
Resource
/connect/aiaccelerator/recommendations
Example
https://yourInstance.salesforce.com/services/data/vXX.X/connect​/aiaccelerator/recommendations
Available version
56.0
Requires Chatter
No
HTTP methods
POST
Request body for POST
JSON example
{
    "usecaseDefinitionName": "ChurnPredictionRealTime",
    "strategyName": "flow_sample",
    "rcmdStrategyParameters": [
      {
       "recordId": "a02xx000001nd0RAAQ",
       "predictionScore": 96
      }
    ],
    "maxRecommendationsCount": 1,
    "recommendationFieldMapping": {}
}
Properties
Name Type Description Required or Optional Available Version
canPersist​Recommendations Boolean Indicates whether the recommendations are persisted (true) or not (false). The default value is false. Optional 56.0
isAsync Boolean Indicates whether the execution mode is async (true) or not (false). The default value is false. Optional 56.0
max​Recommendations​Count Integer The maximum recommendations to request. You can specify a maximum of four recommendations. Optional 56.0
rcmdRecordId​Persistence​Column String The name of the column from the PrimaryResponse object that persists the recommendation record ID when the canPersist​Recommendations property is set to true. Optional 56.0
rcmdStrategy​Parameters Map<String,Object>[] The list of parameters to pass to the flow action for the specified strategy to generate recommendations. Required 56.0
recommendation​FieldMapping Map<String, String> The field mapping that’s used to store the recommendations when the canPersist​Recommendations property is set to true. Optional 56.0
strategyName String The name of the strategy. Required 56.0
usecase​Definition​Name String The API name of the use case definition. Required 56.0
Response body for POST
Recommendation