Newer Version Available

This content describes an older version of this product. View Latest

Einstein Prompt Template Generations Resource

Generates a response based on the specified prompt template and input parameters.
Resource
1/einstein/prompt-templates/promptTemplateDevName/generations
The promptTemplateDevName is the developer name or ID of the prompt template record to generate a response for.
Available version
60.0
HTTP methods
POST
Request body for POST
Einstein Prompt Template Generations Input
Root XML tag
EinsteinPromptTemplateGenerationsInput
JSON example
1{
2  "isPreview": false,
3  "inputParams": {
4    "valueMap": {
5      "Input:Account": {
6        "value": {
7          "id": "001SB000004nerfYAA"
8        }
9      }
10    }
11  },
12  "additionalConfig": {
13    "applicationName": "PromptTemplateGenerationsInvocable"
14  }
15}
Properties
Name Type Description Required or Optional Available Version
additional​Config EinsteinLlm​Additional​ConfigInput Configuration information for the LLM provider. Required 60.0
inputParams Map<String, Wrapped Value> Parameters and values to resolve the specified prompt template. Required 60.0
isPreview Boolean Specifies whether to only resolve the prompt template (true) or to resolve the prompt template and generate an LLM response (false). Required 60.0
Response body for POST
Einstein Prompt Template Generations