You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| Conversation Started | When a new conversation begins |`conversationId`|
24
-
| Message Sent | When the first message is added to a thread by user |`conversationId`, `messageId`, `message_body`|
25
-
| Message Received | Non-custom response (text/voice) to user prompt by copilot |`conversationId`, `messageId`, `message_body`|
26
-
| Conversation Ended | When a conversation is completed |`conversationId`, `message_count`|
27
-
|Tool Invoked | When the model or user invokes a capability or tool |`conversationId`, `messageId`, `type`, `action`|
28
-
| Media Generated | When the model generates an image/video/audio |`conversationId`, `messageId`, `type`, `sub_type`|
29
-
| Component Loaded | When a new custom (non-text/voice) component is shown to a user |`conversationId`, `messageId`, `type`|
30
-
| Feedback Submitted | When a user rates a conversation or message |`conversationId`, `messageId`, `rating`|
31
-
| Identify | When a new user is identified anonymously or known |`userId` and/or `anonymousId`|
32
-
| Standard Track Calls | For all events sent to Segment based on user actions taken, like `items purchased`, `support requested`|`conversationId`, `messageId`, `...`|
| Conversation Started | When a new conversation begins |`conversationId`|
24
+
| Message Sent | When the first message is added to a thread by user |`conversationId`, `messageId`, `message_body`, `role` (default is `"customer"`)|
25
+
| Message Received | Non-custom response (text/voice) to user prompt by copilot |`conversationId`, `messageId`, `message_body`, `role` (default is `"agent"`)|
26
+
| Conversation Ended | When a conversation is completed |`conversationId`, `message_count`|
27
+
|Action Invoked | When the model or user invokes a capability or tool |`conversationId`, `messageId`, `type`, `action`|
28
+
| Media Generated | When the model generates an image/video/audio |`conversationId`, `messageId`, `type`, `sub_type`|
29
+
| Component Loaded | When a new custom (non-text/voice) component is shown to a user |`conversationId`, `messageId`, `type`|
30
+
| Feedback Submitted | When a user rates a conversation or message |`conversationId`, `messageId`, `rating`|
31
+
| Identify | When a new user is identified anonymously or known |`userId` and/or `anonymousId`|
32
+
| Standard Track Calls | For all events sent to Segment based on user actions taken, like `items purchased`, `support requested`|`conversationId`, `messageId`, `...`|
33
33
34
34
### Live chat events
35
35
@@ -39,7 +39,7 @@ Segment can also track the following live chat events:
39
39
- Message Sent
40
40
- Message Received
41
41
- Custom Component Loaded
42
-
-Tool Invoked
42
+
-Action Invoked
43
43
- Media Generated
44
44
- Conversation Ended
45
45
@@ -73,15 +73,17 @@ Here's an example of a Conversation Started call:
73
73
74
74
### Message Sent
75
75
76
-
The Message Sent event should be sent when a user adds a new message to a thread.
76
+
The Message Sent event should be sent when a user adds a new message to a thread. The default for `role` is `"customer"`.
77
77
78
78
This event supports the following semantic properties:
|`conversationId`| string | The conversation's unique identifier. |
83
+
|`messageId`| string | The message's unique identifier. |
84
+
|`message_body`| string | The message's content. |
85
+
|`role`| string | The message's sender; default is `"customer"`. |
86
+
85
87
86
88
Here's an example of a Message Sent call:
87
89
@@ -93,7 +95,8 @@ Here's an example of a Message Sent call:
93
95
"properties": {
94
96
"conversationId": "1238041hdou",
95
97
"messageId": "msg123",
96
-
"message_body": "What's the best stock in the Nasdaq right now?"
98
+
"message_body": "What's the best stock in the Nasdaq right now?",
99
+
"role": "customer"
97
100
}
98
101
}
99
102
```
@@ -102,13 +105,17 @@ Here's an example of a Message Sent call:
102
105
103
106
The Message Received event should be sent when the copilot gives a non-custom response (either text or voice) to something the user asked.
104
107
108
+
The default for `role` is `"agent"`. You can extend `role` to different agent type, like `ai_agent`, `human_agent`, `task_automation_agent`, and so on.
109
+
105
110
This event supports the following semantic properties:
0 commit comments