REST Resource: conversations.messages

Resource: Message

A message in a conversation between an agent and a user.

JSON representation
{
  "name": string,
  "messageId": string,
  "representative": {
    object (Representative)
  },
  "text": string
}
Fields
name

string

The name of the message, as set by Business Messages. Resolves to "conversation/{conversationId}/messages/{messageId}", where {conversationId} is the unique ID for the conversation and {messageId} is the unique ID for the message.

messageId

string

The unique identifier of the message, assigned by the agent. If a message attempts to use the same messageId as a previous message, Business Messages returns an ALREADY_EXISTS error.

representative

object (Representative)

Required. Details about the representative (human or chatbot) that sent the message.

text

string

Text message.

Representative

Details about the representative (human or chatbot) that sent the message.

JSON representation
{
  "representativeType": enum (RepresentativeType)
}
Fields
representativeType

enum (RepresentativeType)

The type of representative.

RepresentativeType

Representative type

Enums
REPRESENTATIVE_TYPE_UNSPECIFIED Unspecified representative type.
BOT Bot representative.
HUMAN Human representative.

Methods

create

Sends a message from an agent to a user.