PredictionResult

Artificial IntelligenceComputer VisionCRMMachine LearningNatural Language ProcessingPredictive AnalyticsSalesforce

Properties

Name Type Description
recordId string Salesforce record ID.
prediction object
predictionDefinitionId string
View JSON Schema on GitHub

JSON Schema

salesforce-einstein-predictionresult-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/PredictionResult",
  "title": "PredictionResult",
  "type": "object",
  "properties": {
    "recordId": {
      "type": "string",
      "description": "Salesforce record ID."
    },
    "prediction": {
      "type": "object",
      "properties": {
        "score": {
          "type": "number",
          "description": "Prediction score."
        },
        "label": {
          "type": "string",
          "description": "Predicted label (for categorical predictions)."
        },
        "factors": {
          "type": "array",
          "description": "Top factors influencing the prediction.",
          "items": {
            "$ref": "#/components/schemas/PredictionFactor"
          }
        }
      }
    },
    "predictionDefinitionId": {
      "type": "string"
    }
  }
}