- [JSON representation](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnalyzeContentResponse#SCHEMA_REPRESENTATION)
- [OutputAudio](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnalyzeContentResponse#OutputAudio)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnalyzeContentResponse#OutputAudio.SCHEMA_REPRESENTATION)
- [AutomatedAgentReply](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnalyzeContentResponse#AutomatedAgentReply)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnalyzeContentResponse#AutomatedAgentReply.SCHEMA_REPRESENTATION)
- [AutomatedAgentReplyType](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnalyzeContentResponse#AutomatedAgentReplyType)
- [SuggestionResult](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnalyzeContentResponse#SuggestionResult)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnalyzeContentResponse#SuggestionResult.SCHEMA_REPRESENTATION)
- [GenerateCompanionSuggestionsResponse](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnalyzeContentResponse#GenerateCompanionSuggestionsResponse)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnalyzeContentResponse#GenerateCompanionSuggestionsResponse.SCHEMA_REPRESENTATION)
- [DtmfParameters](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnalyzeContentResponse#DtmfParameters)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnalyzeContentResponse#DtmfParameters.SCHEMA_REPRESENTATION)

The response message for `https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/projects.conversations.participants/analyzeContent#google.cloud.dialogflow.v2.Participants.AnalyzeContent`.

| JSON representation |
|---|
| ``` { "replyText": string, "replyAudio": { object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnalyzeContentResponse#OutputAudio`) }, "automatedAgentReply": { object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnalyzeContentResponse#AutomatedAgentReply`) }, "message": { object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/Message`) }, "humanAgentSuggestionResults": [ { object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnalyzeContentResponse#SuggestionResult`) } ], "endUserSuggestionResults": [ { object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnalyzeContentResponse#SuggestionResult`) } ], "dtmfParameters": { object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnalyzeContentResponse#DtmfParameters`) } } ``` |

| Fields ||
|---|---|
| `replyText` | `string` The output text content. This field is set if the automated agent responded with text to show to the user. |
| `replyAudio` | ``object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnalyzeContentResponse#OutputAudio`)`` The audio data bytes encoded as specified in the request. This field is set if: - `replyAudioConfig` was specified in the request, or - The automated agent responded with audio to play to the user. In such case, `replyAudio.config` contains settings used to synthesize the speech. In some scenarios, multiple output audio fields may be present in the response structure. In these cases, only the top-most-level audio output has content. |
| `automatedAgentReply` | ``object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnalyzeContentResponse#AutomatedAgentReply`)`` Only set if a Dialogflow automated agent has responded. Note that in \[AutomatedAgentReply.DetectIntentResponse\]\[\], \[Sessions.DetectIntentResponse.output_audio\]\[\] and \[Sessions.DetectIntentResponse.output_audio_config\]\[\] are always empty, use `https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnalyzeContentResponse#FIELDS.reply_audio` instead. |
| `message` | ``object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/Message`)`` Message analyzed by CCAI. |
| `humanAgentSuggestionResults[]` | ``object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnalyzeContentResponse#SuggestionResult`)`` The suggestions for most recent human agent. The order is the same as `https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/projects.conversationProfiles#ConversationProfile.SuggestionConfig.FIELDS.feature_configs` of `https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/projects.conversationProfiles#ConversationProfile.HumanAgentAssistantConfig.FIELDS.human_agent_suggestion_config`. Note that any failure of Agent Assist features will not lead to the overall failure of an AnalyzeContent API call. Instead, the features will fail silently with the error field set in the corresponding SuggestionResult. |
| `endUserSuggestionResults[]` | ``object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnalyzeContentResponse#SuggestionResult`)`` The suggestions for end user. The order is the same as `https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/projects.conversationProfiles#ConversationProfile.SuggestionConfig.FIELDS.feature_configs` of `https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/projects.conversationProfiles#ConversationProfile.HumanAgentAssistantConfig.FIELDS.end_user_suggestion_config`. Same as humanAgentSuggestionResults, any failure of Agent Assist features will not lead to the overall failure of an AnalyzeContent API call. Instead, the features will fail silently with the error field set in the corresponding SuggestionResult. |
| `dtmfParameters` | ``object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnalyzeContentResponse#DtmfParameters`)`` Indicates the parameters of DTMF. |

## OutputAudio

Represents the natural language speech audio to be played to the end user.

| JSON representation |
|---|
| ``` { "config": { object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/OutputAudioConfig`) }, "audio": string } ``` |

| Fields ||
|---|---|
| `config` | ``object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/OutputAudioConfig`)`` Instructs the speech synthesizer how to generate the speech audio. |
| `audio` | `string (https://developers.google.com/discovery/v1/type-format format)` The natural language speech audio. A base64-encoded string. |

## AutomatedAgentReply

Represents a response from an automated agent.

| JSON representation |
|---|
| ``` { "detectIntentResponse": { object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/DetectIntentResponse`) }, "responseMessages": [ { object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/ResponseMessage`) } ], "intent": string, "event": string, "matchConfidence": number, "parameters": { object }, "automatedAgentReplyType": enum (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnalyzeContentResponse#AutomatedAgentReplyType`), "allowCancellation": boolean, "cxCurrentPage": string, "callCompanionAuthCode": string } ``` |

| Fields ||
|---|---|
| `detectIntentResponse` | ``object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/DetectIntentResponse`)`` Response of the Dialogflow `https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/projects.agent.sessions/detectIntent#google.cloud.dialogflow.v2.Sessions.DetectIntent` call. |
| `responseMessages[]` | ``object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/ResponseMessage`)`` Response messages from the automated agent. |
| `intent` | `string` Name of the intent if an intent is matched for the query. For a V2 query, the value format is `projects/<Project ID>/locations/ <Location ID>/agent/intents/<Intent ID>`. For a V3 query, the value format is `projects/<Project ID>/locations/ <Location ID>/agents/<Agent ID>/intents/<Intent ID>`. |
| `event` | `string` Event name if an event is triggered for the query. |
| `matchConfidence` | `number` The confidence of the match. Values range from 0.0 (completely uncertain) to 1.0 (completely certain). This value is for informational purpose only and is only used to help match the best intent within the classification threshold. This value may change for the same end-user expression at any time due to a model retraining or change in implementation. |
| `parameters` | ``object (`https://protobuf.dev/reference/protobuf/google.protobuf#struct` format)`` The collection of current parameters at the time of this response. |
| `automatedAgentReplyType` | ``enum (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnalyzeContentResponse#AutomatedAgentReplyType`)`` AutomatedAgentReply type. |
| `allowCancellation` | `boolean` Indicates whether the partial automated agent reply is interruptible when a later reply message arrives. e.g. if the agent specified some music as partial response, it can be cancelled. |
| `cxCurrentPage` | `string` The unique identifier of the current Dialogflow CX conversation page. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/pages/<Page ID>`. |
| `callCompanionAuthCode` | `string (https://developers.google.com/discovery/v1/type-format format)` The auth code for accessing Call Companion UI. A base64-encoded string. |

## AutomatedAgentReplyType

Represents different automated agent reply types.

| Enums ||
|---|---|
| `AUTOMATED_AGENT_REPLY_TYPE_UNSPECIFIED` | Not specified. This should never happen. |
| `PARTIAL` | Partial reply. e.g. Aggregated responses in a `Fulfillment` that enables `return_partial_response` can be returned as partial reply. WARNING: partial reply is not eligible for barge-in. |
| `FINAL` | Final reply. |

## SuggestionResult

One response of different type of suggestion response which is used in the response of `https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/projects.conversations.participants/analyzeContent#google.cloud.dialogflow.v2.Participants.AnalyzeContent` and `https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/projects.conversations.participants/analyzeContent#google.cloud.dialogflow.v2.Participants.AnalyzeContent`, as well as `https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/HumanAgentAssistantEvent`.

| JSON representation |
|---|
| ``` { // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "error": { object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/Status`) }, "suggestArticlesResponse": { object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/SuggestArticlesResponse`) }, "suggestKnowledgeAssistResponse": { object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/SuggestKnowledgeAssistResponse`) }, "suggestFaqAnswersResponse": { object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/SuggestFaqAnswersResponse`) }, "suggestSmartRepliesResponse": { object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/SuggestSmartRepliesResponse`) }, "generateSuggestionsResponse": { object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/GenerateSuggestionsResponse`) }, "generateCompanionSuggestionsResponse": { object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnalyzeContentResponse#GenerateCompanionSuggestionsResponse`) } // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| Different type of suggestion response. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `error` | ``object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/Status`)`` Error status if the request failed. |
| `suggestArticlesResponse` | ``object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/SuggestArticlesResponse`)`` SuggestArticlesResponse if request is for ARTICLE_SUGGESTION. |
| `suggestKnowledgeAssistResponse` | ``object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/SuggestKnowledgeAssistResponse`)`` SuggestKnowledgeAssistResponse if request is for KNOWLEDGE_ASSIST. |
| `suggestFaqAnswersResponse` | ``object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/SuggestFaqAnswersResponse`)`` SuggestFaqAnswersResponse if request is for FAQ_ANSWER. |
| `suggestSmartRepliesResponse` | ``object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/SuggestSmartRepliesResponse`)`` SuggestSmartRepliesResponse if request is for SMART_REPLY. |
| `generateSuggestionsResponse` | ``object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/GenerateSuggestionsResponse`)`` Suggestions generated using generators triggered by customer or agent messages. |
| `generateCompanionSuggestionsResponse` | ``object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/AnalyzeContentResponse#GenerateCompanionSuggestionsResponse`)`` Suggestions generated by companion agent. |
| End of mutually exclusive fields. ||

## GenerateCompanionSuggestionsResponse

Represents the response message for GenerateCompanionSuggestions.

| JSON representation |
|---|
| ``` { "companionSuggestion": { object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/CompanionSuggestion`) }, "answerRecord": string, "latestMessage": string, "suggestionIndex": integer } ``` |

| Fields ||
|---|---|
| `companionSuggestion` | ``object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2/CompanionSuggestion`)`` Contains the core suggestion generated by the Companion Agent. |
| `answerRecord` | `string` Answer record that uniquely identifies the suggestion. Format: `projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>`. |
| `latestMessage` | `string` The name of the latest conversation message used to compile suggestion for. Format: `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/messages/<Message ID>`. |
| `suggestionIndex` | `integer` Output only. The 1-based sequential index of the suggestion generated in this session. |

## DtmfParameters

The message in the response that indicates the parameters of DTMF.

| JSON representation |
|---|
| ``` { "acceptsDtmfInput": boolean } ``` |

| Fields ||
|---|---|
| `acceptsDtmfInput` | `boolean` Indicates whether DTMF input can be handled in the next request. |