chat_initiator |
If the chat session was initiated by autosuggest, this is "autosuggest". If the chat session was initiated by chat message from visitor, this is "visitor", "operator" if from user, and "rule" if from rule. |
chat_session_id |
Unique id of the chat session. |
chat_type |
Whether the chat's type is operator (operator ), visitor (visitor ), group (group ), task (task ) or from some external source (external ). If the chat session happened between only users, this is operator . If the chat session had at least one visitor, this is visitor . If the chat session was from external source, this is external . External chats can have members of any type. |
chatted_organization_ids |
If scope == "org", this is unique ids of organizations of users who sent chat messages to the chat session. Otherwise, an empty array. |
order_count |
Number of orders in the chat session. If scope == "user" or "team", this is the number of orders of the chat session after the user or team joined the chat session. If scope == "org", this is total number of orders of the chat session. |
owner_organization_id |
Unique id of the room owner organization. |
room_ids |
Unique ids of rooms the chat session happened in. |
sales |
Sum of sales in the chat session. If scope == "user" or "team", this is the sales of the chat session after the user or team joined the chat session. If scope == "org", this is total sales of the chat session. |
scope |
If the row describes chat session of an organization, this is "org". Similar logic applies for values "user" and "team". NB. Generally, each query should contain only rows of one scope. One chat session will produce multiple rows: one for owner organization, one for each chatted team, and one for each chatted user, and mixing those rows makes sense very rarely! |
subscription_sales |
Sum of subscription sales in the chat session. If scope == "user" or "team", this is the subscription sales of the chat session after the user or team joined the chat session. If scope == "org", this is total subscription sales of the chat session. |
team_id |
If scope == "team", this is the unique id of the team for which the chat session is reported, otherwise null. |
user_id |
If scope == "user", this is the unique id of the user for which the chat session is reported, otherwise null. |
user_message_count |
This is number of chat messages which have been sent by users of the scope to the chat session. E.g. if scope == "team", this contains only messages from the team. |
user_organization_id |
If scope == "user", this is the unique id of organization of the user for which the chat session is reported, otherwise null. |
visitor_ids |
Unique ids of all visitors which are members of the chat session. |
visitor_message_count |
Number of chat messages which have been sent by visitors to the chat session. |
visitor_session_ids |
Unique ids of all visitor sessions which are members of the chat session. |