Submit feedback for generated text.
Operation ID: submitFeedbackcurl "https://api.salesforce.com/einstein/platform/v1/feedback" \
-X POST \
-H "Authorization: Bearer •••••" \
-H "x-sfdc-app-context: EinsteinGPT" \
-H "x-client-feature-id: ai-platform-models-connected-app" \
-H "content-type: application/json" \
-d '{
"id": "d123449d-afed-4abe-9a0e-19c90726d2ea",
"generationId": "d321449d-afed-4abe-9a0e-19c90726d2ea",
"feedback": "GOOD",
"feedbackText": "",
"source": "",
"appFeedback": {},
"appGenerationId": "",
"appGeneration": "d567849d-afed-4abe-9a0e-19c90726d2ea"
}'
Authorization information that contains the JWT. For guidance, see Access Models API with REST.
Bearer •••••
This value is reserved for future use. For now, specify EinsteinGPT
.
EinsteinGPT
This value is reserved for future use. For now, specify ai-platform-models-connected-app
.
ai-platform-models-connected-app
{
"id": "d123449d-afed-4abe-9a0e-19c90726d2ea",
"generationId": "d321449d-afed-4abe-9a0e-19c90726d2ea",
"feedback": "GOOD",
"feedbackText": "",
"source": "",
"appFeedback": {},
"appGenerationId": "",
"appGeneration": "d567849d-afed-4abe-9a0e-19c90726d2ea"
}
A unique ID for the feedback object.
d123449d-afed-4abe-9a0e-19c90726d2ea
Identifies the target of this feedback data. You can specify the ID of a /generations
response, or use any other identifier as a string value. The Models API doesn’t do any semantic validation on this field and it’s only meant for you to identify this information in the datastore.
d321449d-afed-4abe-9a0e-19c90726d2ea
The feedback sentiment. Can be null
.
- GOOD
- BAD
The textual representation of the feedback as provided by the user.
The source of the feedback. For example, human
or app
.
Dictionary of any app-level feedback and any other free-form parameters.
App-specific generation ID to support cases where the client has multiple responses in a single generation.
App-specific generation text to support cases where the client has multiple responses in a single generation.
d567849d-afed-4abe-9a0e-19c90726d2ea
Accepted
{
"message": "Feedback received, Thank you!"
}
application/json
1149