Predictions Version 2

Identify the prediction scores for the given request which the customer service representatives can utilize to improve overall customer experience.

Special Access Rules 

You must have AI Accelerator enabled in your org.

Resource 

1/connect/aiaccelerator/v2/predictions

Resource Example 

1https://{yourInstance}.salesforce.com/services/data/v68.0/connect/aiaccelerator/v2/predictions

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

Available Version 

62.0

HTTP Methods 

POST

Request Body for POST 

JSON Example 

1{
2  "usecaseName": "usecaseApiName",
3  "predictionPlatform": "Einstein_on_Data_Cloud",
4  "usecaseModelName": "usecaseNameApiName",
5  "featureExtractorDevName": "featureExtractorIdentifier",
6  "featureExtractorId": "a0Bx00000007YZzEAM",
7  "featureExtractionParameters": [
8    {
9      "featureExtractionParametersMapValue": {
10        "recordId": "01tx00000006j2DAAQ1"
11      }
12    }
13  ],
14  "records": {
15    "wrappedList": [
16      "a00x0000000CHa0AAG"
17    ]
18  },
19  "scoringThreshold": "50",
20  "maxInsights": 3,
21  "sortingOrder": "ASC",
22  "scoreFilterCriteria": "GreaterThanEquals"
23}

Properties 

NameTypeDescriptionRequired or OptionalAvailable Version
featureExtraction​ParametersFeature Extraction Parameters Map Value[]Input parameters to extract the features that a model requires to make the prediction. Supports a maximum of 200 records..Optional63.0
featureExtractor​DevNameStringAPI name of the feature extractor record.Optional63.0
feature​ExtractorIdStringID of the feature extractor record from the AIFeatureExtractor object. The specified feature extractor is used to extract the features for the prediction.Optional63.0
maxInsightsIntegerMaximum number of insights that can be returned by the response.Optional62.0
predictionModelStringAPI name of the prediction model.Optional62.0
predictionPlatformStringPlatform on which the machine learning model is created and deployed.Optional62.0
recordsString[]The IDs of the Salesforce records that are used as input features for model to make the prediction.Optional62.0
scoreFilter​CriteriaStringCriteria to filter the prediction scores based on the scoring threshold. Possible values are:
  • GreaterThan
  • GreaterThanEquals
  • LesserThan
Optional62.0
scoringThresholdDoubleThreshold value for which predictions aren’t shown.Optional62.0
sortingOrderStringSorting order of multiple prediction card in a carousel. Possible values are:
  • Asc
  • Desc
Optional62.0
usecaseModel​NameStringAPI name of the usecase model that’s associated with the feature extractor.Required65.0
usecaseNameStringAPI name of the usecase definition record.Required62.0

Response Body for POST 

Prediction Response