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. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. 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. |