Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class AnswerRecord.
Answer records are records to manage answer history and feedbacks for
Dialogflow.
Currently, answer record includes:
human agent assistant article suggestion
human agent assistant faq article
It doesn't include:
DetectIntent intent matching
DetectIntent knowledge
Answer records are not related to the conversation history in the
Dialogflow Console. A Record is generated even when the end-user disables
conversation history in the console. Records are created when there's a human
agent assistant suggestion generated.
A typical workflow for customers provide feedback to an answer is:
For human agent assistant, customers get suggestion via ListSuggestions
API. Together with the answers,
AnswerRecord.name are
returned to the customers.
[[["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-09-04 UTC."],[],[],null,["# Google Cloud Dialogflow V2 Client - Class AnswerRecord (2.1.2)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.2 (latest)](/php/docs/reference/cloud-dialogflow/latest/V2.AnswerRecord)\n- [2.1.1](/php/docs/reference/cloud-dialogflow/2.1.1/V2.AnswerRecord)\n- [2.0.1](/php/docs/reference/cloud-dialogflow/2.0.1/V2.AnswerRecord)\n- [1.17.2](/php/docs/reference/cloud-dialogflow/1.17.2/V2.AnswerRecord)\n- [1.16.0](/php/docs/reference/cloud-dialogflow/1.16.0/V2.AnswerRecord)\n- [1.15.1](/php/docs/reference/cloud-dialogflow/1.15.1/V2.AnswerRecord)\n- [1.14.0](/php/docs/reference/cloud-dialogflow/1.14.0/V2.AnswerRecord)\n- [1.13.0](/php/docs/reference/cloud-dialogflow/1.13.0/V2.AnswerRecord)\n- [1.12.3](/php/docs/reference/cloud-dialogflow/1.12.3/V2.AnswerRecord)\n- [1.11.0](/php/docs/reference/cloud-dialogflow/1.11.0/V2.AnswerRecord)\n- [1.10.2](/php/docs/reference/cloud-dialogflow/1.10.2/V2.AnswerRecord)\n- [1.9.0](/php/docs/reference/cloud-dialogflow/1.9.0/V2.AnswerRecord)\n- [1.8.0](/php/docs/reference/cloud-dialogflow/1.8.0/V2.AnswerRecord)\n- [1.7.2](/php/docs/reference/cloud-dialogflow/1.7.2/V2.AnswerRecord)\n- [1.6.0](/php/docs/reference/cloud-dialogflow/1.6.0/V2.AnswerRecord)\n- [1.5.0](/php/docs/reference/cloud-dialogflow/1.5.0/V2.AnswerRecord)\n- [1.4.0](/php/docs/reference/cloud-dialogflow/1.4.0/V2.AnswerRecord)\n- [1.3.2](/php/docs/reference/cloud-dialogflow/1.3.2/V2.AnswerRecord)\n- [1.2.0](/php/docs/reference/cloud-dialogflow/1.2.0/V2.AnswerRecord)\n- [1.1.1](/php/docs/reference/cloud-dialogflow/1.1.1/V2.AnswerRecord)\n- [1.0.1](/php/docs/reference/cloud-dialogflow/1.0.1/V2.AnswerRecord) \nReference documentation and code samples for the Google Cloud Dialogflow V2 Client class AnswerRecord.\n\nAnswer records are records to manage answer history and feedbacks for\nDialogflow.\n\nCurrently, answer record includes:\n\n- human agent assistant article suggestion\n- human agent assistant faq article It doesn't include:\n- `DetectIntent` intent matching\n- `DetectIntent` knowledge Answer records are not related to the conversation history in the Dialogflow Console. A Record is generated even when the end-user disables conversation history in the console. Records are created when there's a human agent assistant suggestion generated. A typical workflow for customers provide feedback to an answer is:\n- For human agent assistant, customers get suggestion via ListSuggestions API. Together with the answers, [AnswerRecord.name](/php/docs/reference/cloud-dialogflow/latest/V2.AnswerRecord#_Google_Cloud_Dialogflow_V2_AnswerRecord__getName__) are returned to the customers.\n- The customer uses the [AnswerRecord.name](/php/docs/reference/cloud-dialogflow/latest/V2.AnswerRecord#_Google_Cloud_Dialogflow_V2_AnswerRecord__getName__) to call the [AnswerRecords.UpdateAnswerRecord](/php/docs/reference/cloud-dialogflow/latest/V2.Client.AnswerRecordsClient#_Google_Cloud_Dialogflow_V2_Client_AnswerRecordsClient__updateAnswerRecord__) method to send feedback about a specific answer that they believe is wrong.\n\nGenerated from protobuf message `google.cloud.dialogflow.v2.AnswerRecord`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Dialogflow \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nThe unique identifier of this answer record.\n\nFormat: `projects/\u003cProject ID\u003e/locations/\u003cLocation\nID\u003e/answerRecords/\u003cAnswer Record ID\u003e`.\n\n### setName\n\nThe unique identifier of this answer record.\n\nFormat: `projects/\u003cProject ID\u003e/locations/\u003cLocation\nID\u003e/answerRecords/\u003cAnswer Record ID\u003e`.\n\n### getAnswerFeedback\n\nRequired. The AnswerFeedback for this record. You can set this with\n[AnswerRecords.UpdateAnswerRecord](/php/docs/reference/cloud-dialogflow/latest/V2.Client.AnswerRecordsClient#_Google_Cloud_Dialogflow_V2_Client_AnswerRecordsClient__updateAnswerRecord__)\nin order to give us feedback about this answer.\n\n### hasAnswerFeedback\n\n### clearAnswerFeedback\n\n### setAnswerFeedback\n\nRequired. The AnswerFeedback for this record. You can set this with\n[AnswerRecords.UpdateAnswerRecord](/php/docs/reference/cloud-dialogflow/latest/V2.Client.AnswerRecordsClient#_Google_Cloud_Dialogflow_V2_Client_AnswerRecordsClient__updateAnswerRecord__)\nin order to give us feedback about this answer.\n\n### getAgentAssistantRecord\n\nOutput only. The record for human agent assistant.\n\n### hasAgentAssistantRecord\n\n### setAgentAssistantRecord\n\nOutput only. The record for human agent assistant.\n\n### getRecord"]]