Recommendation Input

Input representation of the recommendation request with Einstein Next Best Action.

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