SuggestSmartRepliesResponse

The response message for Participants.SuggestSmartReplies.

JSON representation
{
  "smartReplyAnswers": [
    {
      object (SmartReplyAnswer)
    }
  ],
  "latestMessage": string,
  "contextSize": integer
}
Fields
smartReplyAnswers[]

object (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 latestMessage to compile the suggestion. It may be smaller than the SuggestSmartRepliesRequest.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/"