- [JSON representation](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnswerRecord#SCHEMA_REPRESENTATION)
- [AnswerFeedback](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnswerRecord#AnswerFeedback)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnswerRecord#AnswerFeedback.SCHEMA_REPRESENTATION)
- [CorrectnessLevel](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnswerRecord#CorrectnessLevel)
- [AgentAssistantFeedback](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnswerRecord#AgentAssistantFeedback)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnswerRecord#AgentAssistantFeedback.SCHEMA_REPRESENTATION)
- [AnswerRelevance](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnswerRecord#AnswerRelevance)
- [DocumentCorrectness](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnswerRecord#DocumentCorrectness)
- [DocumentEfficiency](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnswerRecord#DocumentEfficiency)
- [SummarizationFeedback](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnswerRecord#SummarizationFeedback)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnswerRecord#SummarizationFeedback.SCHEMA_REPRESENTATION)
- [KnowledgeSearchFeedback](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnswerRecord#KnowledgeSearchFeedback)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnswerRecord#KnowledgeSearchFeedback.SCHEMA_REPRESENTATION)
- [KnowledgeAssistFeedback](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnswerRecord#KnowledgeAssistFeedback)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnswerRecord#KnowledgeAssistFeedback.SCHEMA_REPRESENTATION)
- [CompanionFeedback](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnswerRecord#CompanionFeedback)
- [AgentAssistantRecord](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnswerRecord#AgentAssistantRecord)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnswerRecord#AgentAssistantRecord.SCHEMA_REPRESENTATION)
- [DialogflowAssistAnswer](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnswerRecord#DialogflowAssistAnswer)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnswerRecord#DialogflowAssistAnswer.SCHEMA_REPRESENTATION)
- [IntentSuggestion](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnswerRecord#IntentSuggestion)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnswerRecord#IntentSuggestion.SCHEMA_REPRESENTATION)
- [ReactiveModeResponse](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnswerRecord#ReactiveModeResponse)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnswerRecord#ReactiveModeResponse.SCHEMA_REPRESENTATION)

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:

1. For human agent assistant, customers get suggestion via suggestions.list API. Together with the answers, `https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnswerRecord#FIELDS.name` are returned to the customers.
2. The customer uses the `https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnswerRecord#FIELDS.name` to call the `https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/projects.answerRecords/patch#google.cloud.dialogflow.v2.AnswerRecords.UpdateAnswerRecord` method to send feedback about a specific answer that they believe is wrong.

| JSON representation |
|---|
| ``` { "name": string, "answerFeedback": { object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnswerRecord#AnswerFeedback`) }, // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "agentAssistantRecord": { object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnswerRecord#AgentAssistantRecord`) } // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| `name` | `string` The unique identifier of this answer record. Format: `projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>`. |
| `answerFeedback` | ``object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnswerRecord#AnswerFeedback`)`` Required. The AnswerFeedback for this record. You can set this with `https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/projects.answerRecords/patch#google.cloud.dialogflow.v2.AnswerRecords.UpdateAnswerRecord` in order to give us feedback about this answer. |
| The record for this answer. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `agentAssistantRecord` | ``object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnswerRecord#AgentAssistantRecord`)`` Output only. The record for human agent assistant. |
| End of mutually exclusive fields. ||

## AnswerFeedback

Represents feedback the customer has about the quality \& correctness of a certain answer in a conversation.

| JSON representation |
|---|
| ``` { "correctnessLevel": enum (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnswerRecord#CorrectnessLevel`), "clicked": boolean, "clickTime": string, "displayed": boolean, "displayTime": string, // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "agentAssistantDetailFeedback": { object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnswerRecord#AgentAssistantFeedback`) } // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| `correctnessLevel` | ``enum (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnswerRecord#CorrectnessLevel`)`` The correctness level of the specific answer. |
| `clicked` | `boolean` Indicates whether the answer/item was clicked by the human agent or not. Default to false. For knowledge search and knowledge assist, the answer record is considered to be clicked if the answer was copied or any URI was clicked. |
| `clickTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Time when the answer/item was clicked. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `displayed` | `boolean` Indicates whether the answer/item was displayed to the human agent in the agent desktop UI. Default to false. |
| `displayTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Time when the answer/item was displayed. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| Normally, detail feedback is provided when answer is not fully correct. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `agentAssistantDetailFeedback` | ``object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnswerRecord#AgentAssistantFeedback`)`` Detail feedback of agent assist suggestions. |
| End of mutually exclusive fields. ||

## CorrectnessLevel

The correctness level of an answer.

| Enums ||
|---|---|
| `CORRECTNESS_LEVEL_UNSPECIFIED` | Correctness level unspecified. |
| `NOT_CORRECT` | Answer is totally wrong. |
| `PARTIALLY_CORRECT` | Answer is partially correct. |
| `FULLY_CORRECT` | Answer is fully correct. |

## AgentAssistantFeedback

Detail feedback of Agent Assist result.

| JSON representation |
|---|
| ``` { "answerRelevance": enum (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnswerRecord#AnswerRelevance`), "documentCorrectness": enum (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnswerRecord#DocumentCorrectness`), "documentEfficiency": enum (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnswerRecord#DocumentEfficiency`), "summarizationFeedback": { object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnswerRecord#SummarizationFeedback`) }, "knowledgeSearchFeedback": { object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnswerRecord#KnowledgeSearchFeedback`) }, "knowledgeAssistFeedback": { object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnswerRecord#KnowledgeAssistFeedback`) }, "companionFeedback": { object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnswerRecord#CompanionFeedback`) } } ``` |

| Fields ||
|---|---|
| `answerRelevance` | ``enum (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnswerRecord#AnswerRelevance`)`` Optional. Whether or not the suggested answer is relevant. For example: - Query: "Can I change my mailing address?" - Suggested document says: "Items must be returned/exchanged within 60 days of the purchase date." - `https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnswerRecord#AgentAssistantFeedback.FIELDS.answer_relevance`: `https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnswerRecord#AnswerRelevance.ENUM_VALUES.IRRELEVANT` |
| `documentCorrectness` | ``enum (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnswerRecord#DocumentCorrectness`)`` Optional. Whether or not the information in the document is correct. For example: - Query: "Can I return the package in 2 days once received?" - Suggested document says: "Items must be returned/exchanged within 60 days of the purchase date." - Ground truth: "No return or exchange is allowed." - `https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnswerRecord#AgentAssistantFeedback.FIELDS.document_correctness`: `https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnswerRecord#DocumentCorrectness.ENUM_VALUES.INCORRECT` |
| `documentEfficiency` | ``enum (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnswerRecord#DocumentEfficiency`)`` Optional. Whether or not the suggested document is efficient. For example, if the document is poorly written, hard to understand, hard to use or too long to find useful information, `https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnswerRecord#AgentAssistantFeedback.FIELDS.document_efficiency` is `https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnswerRecord#DocumentEfficiency.ENUM_VALUES.INEFFICIENT`. |
| `summarizationFeedback` | ``object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnswerRecord#SummarizationFeedback`)`` Optional. Feedback for conversation summarization. |
| `knowledgeSearchFeedback` | ``object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnswerRecord#KnowledgeSearchFeedback`)`` Optional. Feedback for knowledge search. |
| `knowledgeAssistFeedback` | ``object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnswerRecord#KnowledgeAssistFeedback`)`` Optional. Feedback for knowledge assist. |
| `companionFeedback` | ``object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnswerRecord#CompanionFeedback`)`` Optional. Feedback for companion agent. |

## AnswerRelevance

Relevance of an answer.

| Enums ||
|---|---|
| `ANSWER_RELEVANCE_UNSPECIFIED` | Answer relevance unspecified. |
| `IRRELEVANT` | Answer is irrelevant to query. |
| `RELEVANT` | Answer is relevant to query. |

## DocumentCorrectness

Correctness of document.

| Enums ||
|---|---|
| `DOCUMENT_CORRECTNESS_UNSPECIFIED` | Document correctness unspecified. |
| `INCORRECT` | Information in document is incorrect. |
| `CORRECT` | Information in document is correct. |

## DocumentEfficiency

Efficiency of document.

| Enums ||
|---|---|
| `DOCUMENT_EFFICIENCY_UNSPECIFIED` | Document efficiency unspecified. |
| `INEFFICIENT` | Document is inefficient. |
| `EFFICIENT` | Document is efficient. |

## SummarizationFeedback

Feedback for conversation summarization.

| JSON representation |
|---|
| ``` { "startTime": string, "submitTime": string, "summaryText": string, "textSections": { string: string, ... } } ``` |

| Fields ||
|---|---|
| `startTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Timestamp when composing of the summary starts. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `submitTime` | ``string (`https://protobuf.dev/reference/protobuf/google.protobuf#timestamp` format)`` Timestamp when the summary was submitted. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: `"2014-10-02T15:01:23Z"`, `"2014-10-02T15:01:23.045123456Z"` or `"2014-10-02T15:01:23+05:30"`. |
| `summaryText` | `string` Text of actual submitted summary. |
| `textSections` | `map (key: string, value: string)` Optional. Actual text sections of submitted summary. An object containing a list of `"key": value` pairs. Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`. |

## KnowledgeSearchFeedback

Feedback for knowledge search.

| JSON representation |
|---|
| ``` { "answerCopied": boolean, "clickedUris": [ string ] } ``` |

| Fields ||
|---|---|
| `answerCopied` | `boolean` Whether the answer was copied by the human agent or not. If the value is set to be true, `https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnswerRecord#AnswerFeedback.FIELDS.clicked` will be updated to be true. |
| `clickedUris[]` | `string` The URIs clicked by the human agent. The value is appended for each `UpdateAnswerRecordRequest`. If the value is not empty, `https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnswerRecord#AnswerFeedback.FIELDS.clicked` will be updated to be true. |

## KnowledgeAssistFeedback

Feedback for knowledge assist.

| JSON representation |
|---|
| ``` { "answerCopied": boolean, "clickedUris": [ string ] } ``` |

| Fields ||
|---|---|
| `answerCopied` | `boolean` Whether the suggested answer was copied by the human agent. If the value is set to be true, `https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnswerRecord#AnswerFeedback.FIELDS.clicked` will be updated to be true. |
| `clickedUris[]` | `string` The URIs clicked by the human agent. The value is appended for each UpdateAnswerRecordRequest. If the value is not empty, `https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnswerRecord#AnswerFeedback.FIELDS.clicked` will be updated to be true. |

## CompanionFeedback

This type has no fields.
Feedback for companion agent.

## AgentAssistantRecord

Represents a record of a human agent assist answer.

| JSON representation |
|---|
| ``` { // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "articleSuggestionAnswer": { object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/ArticleAnswer`) }, "faqAnswer": { object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/FaqAnswer`) }, "dialogflowAssistAnswer": { object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnswerRecord#DialogflowAssistAnswer`) }, "generatorSuggestion": { object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/projects.generators#Generator.GeneratorSuggestion`) }, "companionSuggestion": { object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/CompanionSuggestion`) }, "reactiveCompanionSuggestion": { object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnswerRecord#ReactiveModeResponse`) } // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| Output only. The agent assist answer. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `articleSuggestionAnswer` | ``object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/ArticleAnswer`)`` Output only. The article suggestion answer. |
| `faqAnswer` | ``object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/FaqAnswer`)`` Output only. The FAQ answer. |
| `dialogflowAssistAnswer` | ``object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnswerRecord#DialogflowAssistAnswer`)`` Output only. Dialogflow assist answer. |
| `generatorSuggestion` | ``object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/projects.generators#Generator.GeneratorSuggestion`)`` Output only. The generator suggestion. |
| `companionSuggestion` | ``object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/CompanionSuggestion`)`` Output only. The companion suggestion. |
| `reactiveCompanionSuggestion` | ``object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnswerRecord#ReactiveModeResponse`)`` Output only. The reactive companion suggestion. |
| End of mutually exclusive fields. ||

## DialogflowAssistAnswer

Represents a Dialogflow assist answer.

| JSON representation |
|---|
| ``` { "answerRecord": string, // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "queryResult": { object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/QueryResult`) }, "intentSuggestion": { object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnswerRecord#IntentSuggestion`) } // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| `answerRecord` | `string` The name of answer record, in the format of "projects//locations//answerRecords/" |
| Result from DetectIntent for one matched intent. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `queryResult` | ``object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/QueryResult`)`` Result from v2 agent. |
| `intentSuggestion` | ``object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnswerRecord#IntentSuggestion`)`` An intent suggestion generated from conversation. |
| End of mutually exclusive fields. ||

## IntentSuggestion

Represents an intent suggestion.

| JSON representation |
|---|
| ``` { "displayName": string, "description": string, // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "intentV2": string // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| `displayName` | `string` The display name of the intent. |
| `description` | `string` Human readable description for better understanding an intent like its scope, content, result etc. Maximum character limit: 140 characters. |
| The name of the intent. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `intentV2` | `string` The unique identifier of this `https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/projects.agent.intents#Intent`. Format: `projects/<Project ID>/locations/<Location ID>/agent/intents/<Intent ID>`. |
| End of mutually exclusive fields. ||

## ReactiveModeResponse

The complete response generated by the reactive mode capturing the entire accumulated streaming response, grounding metadata, and tool calls.

| JSON representation |
|---|
| ``` { "response": string, "groundingMetadata": { object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/GroundingMetadata`) }, "toolCalls": [ { object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/ToolCallSuggestion`) } ] } ``` |

| Fields ||
|---|---|
| `response` | `string` Optional. The full reactive suggestion generated by the Companion Agent. After the last streaming chunk is sent, this is the final response concatenating all the streaming response chunks together to represent the full reactive suggestion. |
| `groundingMetadata` | ``object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/GroundingMetadata`)`` Optional. Grounding metadata for the generated response. |
| `toolCalls[]` | ``object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/ToolCallSuggestion`)`` Optional. Captures all the rich structured tool calls and their associated citations used by the reactive agent to generate the reactive suggestion. |