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 

1/connect/aiaccelerator/recommendations

Example 

1https://{yourInstance}.salesforce.com/services/data/vXX.X/connect​/aiaccelerator/recommendations

{yourInstance} is the domain name of your Salesforce instance.

Available Version 

56.0

Requires Chatter 

No

HTTP Methods 

POST

Request Body for POST 

JSON Example 

1{
2    "usecaseDefinitionName": "ChurnPredictionRealTime",
3    "strategyName": "flow_sample",
4    "rcmdStrategyParameters": [
5      {
6       "recordId": "a02xx000001nd0RAAQ",
7       "predictionScore": 96
8      }
9    ],
10    "maxRecommendationsCount": 1,
11    "recommendationFieldMapping": {}
12}

Properties 

NameTypeDescriptionRequired or OptionalAvailable Version
canPersist​RecommendationsBooleanIndicates whether the recommendations are persisted (true) or not (false). The default value is false.Optional56.0
isAsyncBooleanIndicates whether the execution mode is async (true) or not (false). The default value is false.Optional56.0
max​Recommendations​CountIntegerThe maximum recommendations to request. You can specify a maximum of four recommendations.Optional56.0
rcmdRecordId​Persistence​ColumnStringThe name of the column from the PrimaryResponse object that persists the recommendation record ID when the canPersist​Recommendations property is set to true.Optional56.0
rcmdStrategy​ParametersMap<String,Object>[]The list of parameters to pass to the flow action for the specified strategy to generate recommendations.Required56.0
recommendation​FieldMappingMap<String, String>The field mapping that’s used to store the recommendations when the canPersist​Recommendations property is set to true.Optional56.0
strategyNameStringThe name of the strategy.Required56.0
usecase​Definition​NameStringThe API name of the use case definition.Required56.0

Response Body for POST 

Recommendation