Represents a message posted into a conversation.
JSON representation |
---|
{ "name": string, "content": string, "languageCode": string, "participant": string, "participantRole": enum ( |
Fields | |
---|---|
name |
Optional. The unique identifier of the message. Format: |
content |
Required. The message content. |
language |
Optional. The message language. This should be a BCP-47 language tag. Example: "en-US". |
participant |
Output only. The participant that sends this message. |
participant |
Output only. The role of the participant. |
create |
Output only. The time when the message was created in Contact Center AI. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
send |
Optional. The time when the message was sent. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
message |
Output only. The annotation for the message. |
sentiment |
Output only. The sentiment analysis result for the message. |
MessageAnnotation
Represents the result of annotation for the message.
JSON representation |
---|
{
"parts": [
{
object ( |
Fields | |
---|---|
parts[] |
The collection of annotated message parts ordered by their position in the message. You can recover the annotated message by concatenating [AnnotatedMessagePart.text]. |
contain |
Indicates whether the text message contains entities. |
AnnotatedMessagePart
Represents a part of a message possibly annotated with an entity. The part can be an entity or purely a part of the message between two entities or message start/end.
JSON representation |
---|
{ "text": string, "entityType": string, "formattedValue": value } |
Fields | |
---|---|
text |
A part of a message possibly annotated with an entity. |
entity |
The Dialogflow system entity type of this message part. If this is empty, Dialogflow could not annotate the phrase part with a system entity. |
formatted |
The Dialogflow system entity formatted value of this message part. For example for a system entity of type { "amount": 5, "currency": "USD" } |