[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-08-19。"],[[["\u003cp\u003eThis page outlines how to provide feedback to Agent Assist regarding the quality of suggested answers, which helps improve future answer quality.\u003c/p\u003e\n"],["\u003cp\u003eAgent Assist feedback is classified as either implicit, based on whether an answer was clicked, or explicit, which details the answer's correctness and optional additional information.\u003c/p\u003e\n"],["\u003cp\u003eFeedback is sent by updating the answer record using the \u003ccode\u003eUpdateAnswerRecord\u003c/code\u003e method and the answer record's resource name, formatted as "projects/project-id/answerRecords/answer-record-id".\u003c/p\u003e\n"],["\u003cp\u003eDifferent types of feedback, such as displayed, clicked, correctness level, answer copied, and clicked URIs, can be sent through the \u003ccode\u003eAnswerFeedback\u003c/code\u003e object in the update request.\u003c/p\u003e\n"],["\u003cp\u003eSummarization feedback can track the time spent on reviewing or editing a summary as well as the edit rate, and also supports updating summaries within each section.\u003c/p\u003e\n"]]],[],null,["# Send feedback to Agent Assist\n\n| This feature is subject to the \"Pre-GA Offerings Terms\" in the General Service Terms section\n| of the [Service Specific Terms](/terms/service-terms#1).\n|\n| Pre-GA features are available \"as is\" and might have limited support.\n|\n| For more information, see the\n| [launch stage descriptions](/products#product-launch-stages).\n\nThis guide describes how to send feedback to Agent Assist about the\nquality of a specific suggested answer. This information is used to improve\nthe quality of your suggested answers in the future.\n\nFeedback types\n--------------\n\nFeedback falls into one of two categories. Information about both feedback\ntypes is conveyed by fields in an\n[`answerFeedback`](/dialogflow/es/docs/reference/rest/v2/projects.answerRecords#answerfeedback)\nobject:\n\n1. **Implicit feedback:** Whether or not an agent clicked on a suggested answer. This information is contained in the boolean `clicked` field.\n2. **Explicit feedback:** The level of correctness of the answer or other detailed information about the answer, provided by the agent. Level of correctness is conveyed by the `correctnessLevel` field. Optionally, additional details can be added to the `agentAssistDetailFeedback` field as an [`AgentAssistantFeedback`](/dialogflow/es/docs/reference/rpc/google.cloud.dialogflow.v2#agentassistantfeedback) object.\n\nSend feedback to Agent Assist\n-----------------------------\n\nThere is an `Answers` field in every Agent Assist response (for example, [`faqAnswers`](/dialogflow/es/docs/reference/rest/v2/SuggestFaqAnswersResponse#FaqAnswer),\n[`articleAnswers`](/dialogflow/es/docs/reference/rest/v2/SuggestArticlesResponse#articleanswer), and\n[`smartReplyAnswers`](/dialogflow/es/docs/reference/rest/v2/SuggestSmartRepliesResponse)). To provide feedback about an answer, find the resource name of the answer record. The resource name has the format \"projects/\u003cvar translate=\"no\"\u003eproject-id\u003c/var\u003e/answerRecords/\u003cvar translate=\"no\"\u003eanswer-record-id\u003c/var\u003e\". Use the answer record to call the [`UpdateAnswerRecord`](/dialogflow/es/docs/reference/rpc/google.cloud.dialogflow.v2#google.cloud.dialogflow.v2.AnswerRecords.UpdateAnswerRecord) method to send [`AnswerFeedback`](/dialogflow/es/docs/reference/rpc/google.cloud.dialogflow.v2#google.cloud.dialogflow.v2.AnswerFeedback)\nabout the answer.\n\n### Generative knowledge assist\n\nGenerative knowledge assist can either answer agent questions or proactively suggest question and answer pairs. These two features require different JSON requests for sending feedback.\n\nUse the answer record to call the\n[`UpdateAnswerRecord`](/dialogflow/es/docs/reference/rpc/google.cloud.dialogflow.v2beta1#google.cloud.dialogflow.v2beta1.AnswerRecords.UpdateAnswerRecord)\nmethod to send\n[`AnswerFeedback`](/dialogflow/es/docs/reference/rpc/google.cloud.dialogflow.v2beta1#google.cloud.dialogflow.v2beta1.AnswerFeedback)\nto indicate possible feedback events:\n\n- `displayed`: Whether the suggestion is displayed to the human agent.\n- `clicked`: Whether the suggestion is clicked by the human agent.\n- `correctness_level`: Whether the suggestion is correct or not. A typical use case is to provide thumbs up and thumbs down buttons for the human agent to provide feedback.\n- `answer_copied`: Whether the answer is copied by the human agent.\n- `clicked_uris`: The URIs clicked by the human agent.\n\n### Smart reply\n\nUse the answer record to call the\n[`UpdateAnswerRecord`](/dialogflow/es/docs/reference/rpc/google.cloud.dialogflow.v2#google.cloud.dialogflow.v2.AnswerRecords.UpdateAnswerRecord)\nmethod to send\n[`AnswerFeedback`](/dialogflow/es/docs/reference/rpc/google.cloud.dialogflow.v2#google.cloud.dialogflow.v2.AnswerFeedback)\nto indicate two feedback events:\n\n1. **displayed** : a suggestion (identified by `answer-record-id` returned in the Smart Reply suggestions) was displayed in the agent UI.\n2. **clicked** : a suggestion (identified by `answer-record-id` returned in the Smart Reply suggestions) was clicked by the agent.\n\nThe suggestion was displayed to the agent. \n\n```\ncurl -X PATCH \n\n -H \"Authorization: Bearer $(gcloud auth application-default print-access-token)\" \n\n -H \"x-goog-user-project: quota-project-id\" \n\n -H \"Content-Type: application/json\" -d \n\n'{\n \"name\": \"projects/project-id/answerRecords/answer-record-id\",\n \"answerFeedback\": {\n \"displayed\": true\n }\n}' https://dialogflow.googleapis.com/v2/projects/project-id/answerRecords/answer-record-id?updateMask=answer_feedback\n```\n\n\u003cbr /\u003e\n\nThe suggestion was clicked by the agent. \n\n```\ncurl -X PATCH \n\n -H \"Authorization: Bearer $(gcloud auth application-default print-access-token)\" \n\n -H \"x-goog-user-project: quota-project-id\" \n\n -H \"Content-Type: application/json\" -d \n\n'{\n \"name\": \"projects/project-id/answerRecords/answer-record-id\",\n \"answerFeedback\": {\n \"clicked\": true\n }\n}' https://dialogflow.googleapis.com/v2/projects/project-id/answerRecords/answer-record-id?updateMask=answer_feedback\n```\n\n\u003cbr /\u003e\n\n### Article suggestion and FAQ assist\n\nThe following sample demonstrates how to send direct feedback from an agent in\nresponse to the agent being asked about suggestion correctness. The\n`correctnessLevel` field can be one of `FULLY_CORRECT`, `PARTIALLY_CORRECT`,\n`NOT_CORRECT`, `CORRECTNESS_LEVEL_UNSPECIFIED`. \n\n```\ncurl -X PATCH \\\n -H \"Authorization: Bearer $(gcloud auth application-default print-access-token)\" \\\n -H \"x-goog-user-project: quota-project-id\" \\\n -H \"Content-Type: application/json\" -d \\\n'{\n \"name\": \"projects/project-id/answerRecords/answer-record-id\",\n \"answerFeedback\": {\n \"correctnessLevel\": \"FULLY_CORRECT\",\n \"agentAssistantDetailFeedback\": {},\n \"clicked\": true\n }\n}' https://dialogflow.googleapis.com/v2/projects/project-id/answerRecords/answer-record-id?updateMask=answer_feedback\n```\n\nThe following sample demonstrates how to send click-only indirect feedback: \n\n```\ncurl -X PATCH \\\n -H \"Authorization: Bearer $(gcloud auth application-default print-access-token)\" \\\n -H \"x-goog-user-project: quota-project-id\" \\\n -H \"Content-Type: application/json\" -d \\\n'{\n \"name\": \"projects/project-id/answerRecords/answer-record-id\",\n \"answerFeedback\": {\n \"clicked\": true\n }\n}' https://dialogflow.googleapis.com/v2/projects/project-id/answerRecords/answer-record-id?updateMask=answer_feedback\n```\n\n### Summarization\n\nSummarization uses feedback to calculate the duration spent on reviewing or editing a summary and edit rate. \n\n```\ncurl -X PATCH \\\n -H \"Authorization: Bearer $(gcloud auth application-default print-access-token)\" \\\n -H \"x-goog-user-project: quota-project-id\" \\\n -H \"Content-Type: application/json\" -d \\\n'{\n \"name\": \"projects/project-id/answerRecords/answer-record-id\",\n \"answerFeedback\": {\n \"agentAssistantDetailFeedback\": {\n \"summarizationFeedback\": {\n \"startTimestamp\": \"2022-10-15T02:10:11.414Z\",\n \"submitTimestamp\": \"2022-10-15T02:12:41.000012345Z\",\n \"summaryText\": \"submitted summary\"\n }\n }\n }\n}' \\\nhttps://dialogflow.googleapis.com/v2beta1/projects/project-id/answerRecords/answer-record-id?updateMask=answer_feedback.agent_assistant_detail_feedback.summarization_feedback\n```\n\nSummarization feedback also supports updating summaries within each section. Note: Only one field should be updated at a time, either `summarizationFeedback.summaryText` or `summarizationFeedback.textSections`. \n\n```\ncurl -X PATCH \\\n -H \"Authorization: Bearer $(gcloud auth application-default print-access-token)\" \\\n -H \"x-goog-user-project: quota-project-id\" \\\n -H \"Content-Type: application/json\" -d \\\n'{\n \"name\": \"projects/project-id/answerRecords/answer-record-id\",\n \"answerFeedback\": {\n \"agentAssistantDetailFeedback\": {\n \"summarizationFeedback\": {\n \"startTimestamp\": \"2022-10-15T02:10:11.414Z\",\n \"submitTimestamp\": \"2022-10-15T02:12:41.000012345Z\",\n \"textSections\": {\n \"section a\": \"section a summary\",\n \"section b\": \"section b summary\"\n }\n }\n }\n }\n}' \\\nhttps://dialogflow.googleapis.com/v2beta1/projects/project-id/answerRecords/answer-record-id?updateMask=answer_feedback.agent_assistant_detail_feedback.summarization_feedback\n```"]]