Some products and features are in the process of being renamed. Generative playbook and flow features are also being migrated to a single consolidated console. See the details.
Optional. In case of thumbs down rating provided, users can optionally provide context about the rating.
customRating
string
Optional. Custom rating from the user about the provided answer, with maximum length of 1024 characters. For example, client could use a customized JSON object to indicate the rating.
Represents thumbs up/down rating provided by user about a response.
Enums
RATING_UNSPECIFIED
Rating not specified.
THUMBS_UP
Thumbs up feedback from user.
THUMBS_DOWN
Thumbs down feedback from user.
RatingReason
Stores extra information about why users provided thumbs down rating.
JSON representation
{"reasonLabels": [string],"feedback": string}
Fields
reasonLabels[]
string
Optional. Custom reason labels for thumbs down rating provided by the user. The maximum number of labels allowed is 10 and the maximum length of a single label is 128 characters.
feedback
string
Optional. Additional feedback about the rating. This field can be populated without choosing a predefined reason.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-27 UTC."],[[["\u003cp\u003eThis documentation describes how to submit user feedback for a single turn of a bot response via a \u003ccode\u003ePOST\u003c/code\u003e request to the specified endpoint, including the session ID as a required path parameter.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must include the \u003ccode\u003eresponseId\u003c/code\u003e, and \u003ccode\u003eanswerFeedback\u003c/code\u003e containing the feedback provided, with an optional \u003ccode\u003eupdateMask\u003c/code\u003e field for specifying which fields to update.\u003c/p\u003e\n"],["\u003cp\u003eThe response body includes optional fields for \u003ccode\u003erating\u003c/code\u003e (thumbs up/down), \u003ccode\u003eratingReason\u003c/code\u003e (details for thumbs down), and \u003ccode\u003ecustomRating\u003c/code\u003e for additional user input.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization requires either the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/dialogflow\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eRatingReason\u003c/code\u003e allows for optional custom \u003ccode\u003ereasonLabels\u003c/code\u003e and \u003ccode\u003efeedback\u003c/code\u003e to provide context on thumbs down ratings.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.agents.sessions.submitAnswerFeedback\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n - [JSON representation](#body.AnswerFeedback.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Rating](#Rating)\n- [RatingReason](#RatingReason)\n - [JSON representation](#RatingReason.SCHEMA_REPRESENTATION)\n- [Try it!](#try-it)\n\nUpdates the feedback received from the user for a single turn of the bot response.\n\n### HTTP request\n\n`POST https://{endpoint}/v3/{session=projects/*/locations/*/agents/*/sessions/*}:submitAnswerFeedback`\n\nWhere `{endpoint}` is one of the [supported service endpoints](/dialogflow/cx/docs/reference/rest#rest_endpoints).\n\nThe URLs use [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Request body\n\nThe request body contains data with the following structure:\n\n### Response body\n\nStores information about feedback provided by users about a response.\n\nIf successful, the response body contains data with the following structure:\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n- `\n https://www.googleapis.com/auth/dialogflow`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp).\n\nRating\n------\n\nRepresents thumbs up/down rating provided by user about a response.\n\nRatingReason\n------------\n\nStores extra information about why users provided thumbs down rating."]]