Resource: AgentEvent
An event from the agent to the user.
JSON representation |
---|
{
"name": string,
"eventType": enum ( |
Fields | |
---|---|
name |
This field is set by the RBM platform. Do not include it when creating an agent event. The field resolves "phones/{E.164}/agentEvents/{eventId}", where {E.164} is the user's phone number in E.164 format and {eventId} is the agent-assigned ID of the agent event. |
eventType |
The type of the agent event. |
messageId |
The ID of the user message that the agent event pertains to. This field is only applicable for agent events of type READ. |
sendTime |
This field is set by the RBM platform. Do not include it when creating an agent message. The field resolves the time when the event is sent to the user. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
AgentEvent.EventType
Type of an agent event.
Enums | |
---|---|
TYPE_UNSPECIFIED |
Not specified. |
IS_TYPING |
The agent is typing. |
READ |
The message sent by a user has been read by the agent. |
Methods |
|
---|---|
|
Sends an event from the agent to a user. |