AI-generated Key Takeaways
- 
          
An Event in a conversation between an agent and a user has a JSON representation with fields for
name,eventType, andrepresentative. - 
          
The
eventTypefield is an enum defining the type of agent event such as typing started/stopped, or representative joining/leaving. - 
          
The
representativefield provides details about the human or chatbot sending the event. - 
          
An event can be created in a conversation using the provided
createmethod. 
Resource: Event
An event in a conversation between an agent and a user.
| JSON representation | 
|---|
{ "name": string, "eventType": enum (  | 
              
| Fields | |
|---|---|
name | 
                
                   
 The name of the event, as set by Business Messages. Resolves to "conversations/{conversationId}/events/{eventId}", where {conversationId} is the unique ID for the conversation and {eventId} is the unique ID for the event.  | 
              
eventType | 
                
                   
 The type of the event.  | 
              
representative | 
                
                   
 Details about the representative (human or chatbot) that sent the event.  | 
              
EventType
Type of an agent event.
| Enums | |
|---|---|
EVENT_TYPE_UNSPECIFIED | 
                Not specified. | 
TYPING_STARTED | 
                The representative is typing. | 
TYPING_STOPPED | 
                The representative stopped typing. | 
REPRESENTATIVE_JOINED | 
                The representative joined the conversation. | 
REPRESENTATIVE_LEFT | 
                The representative left the conversation. | 
Methods | 
            |
|---|---|
                
 | 
              Creates an event in a conversation. |