# SuggestSmartRepliesResponse

- [JSON representation](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/SuggestSmartRepliesResponse#SCHEMA_REPRESENTATION)
- [SmartReplyAnswer](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/SuggestSmartRepliesResponse#SmartReplyAnswer)
  - [JSON representation](https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/SuggestSmartRepliesResponse#SmartReplyAnswer.SCHEMA_REPRESENTATION)

The response message for `https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.conversations.participants.suggestions/suggestSmartReplies#google.cloud.dialogflow.v2beta1.Participants.SuggestSmartReplies`.

| JSON representation |
|---|
| ``` { "smartReplyAnswers": [ { object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/SuggestSmartRepliesResponse#SmartReplyAnswer`) } ], "latestMessage": string, "contextSize": integer } ``` |

| Fields ||
|---|---|
| `smartReplyAnswers[]` | ``object (`https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/SuggestSmartRepliesResponse#SmartReplyAnswer`)`` Output only. Multiple reply options provided by smart reply service. The order is based on the rank of the model prediction. The maximum number of the returned replies is set in SmartReplyConfig. |
| `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>`. |
| `contextSize` | `integer` Number of messages prior to and including `https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/SuggestSmartRepliesResponse#FIELDS.latest_message` to compile the suggestion. It may be smaller than the `https://docs.cloud.google.com/dialogflow/es/docs/reference/rest/v2beta1/projects.conversations.participants.suggestions/suggestSmartReplies#body.request_body.FIELDS.context_size` field in the request if there aren't that many messages in the conversation. |

## SmartReplyAnswer

Represents a smart reply answer.

| JSON representation |
|---|
| ``` { "reply": string, "confidence": number, "answerRecord": string } ``` |

| Fields ||
|---|---|
| `reply` | `string` The content of the reply. |
| `confidence` | `number` Smart reply confidence. The system's confidence score that this reply is a good match for this conversation, as a value from 0.0 (completely uncertain) to 1.0 (completely certain). |
| `answerRecord` | `string` The name of answer record, in the format of "projects//locations//answerRecords/" |