Salesforce · JSON Structure

Salesforce Generate Response Basedon Prompt Template Structure

Type: object Properties: 5 Required: 5
Fortune 500AIAnalyticsCloudCommerceCRMCustomer ServiceEnterpriseMarketingPlatformSales

GenerateResponseBasedonPromptTemplate is a JSON Structure definition published by Salesforce, describing 5 properties, of which 5 are required. It conforms to the https://json-structure.org/draft/2020-12/schema meta-schema.

Properties

generations parameters prompt promptTemplateDevName requestId

Meta-schema: https://json-structure.org/draft/2020-12/schema

JSON Structure

Raw ↑
{
  "type": "object",
  "name": "GenerateResponseBasedonPromptTemplate",
  "properties": {
    "generations": {
      "type": "array",
      "description": "",
      "items": {
        "type": "object",
        "properties": {
          "parameters": {
            "type": "string"
          },
          "responseId": {
            "type": "string"
          },
          "text": {
            "type": "string"
          }
        },
        "required": [
          "parameters",
          "responseId",
          "text"
        ]
      }
    },
    "parameters": {
      "type": "['string', 'null']"
    },
    "prompt": {
      "type": "string"
    },
    "promptTemplateDevName": {
      "type": "string"
    },
    "requestId": {
      "type": "string"
    }
  },
  "required": [
    "generations",
    "parameters",
    "prompt",
    "promptTemplateDevName",
    "requestId"
  ],
  "$schema": "https://json-structure.org/draft/2020-12/schema"
}