1. Overview
To enhance reporting accuracy and enable more actionable analytics, it is essential to segregate the statistics based on channel and interaction type.
This refinement proposes an Data Pipeline solution to restructure and classify interaction data across different social and communication platforms. The segregation will support downstream systems (e.g., reporting/grafana dashboards, analytics tools) by enabling filters and breakdowns at the interaction-type level.
Required Segregation Categories
The following categories have been identified as key interaction types that must be segregated:
-
Facebook Inbox
-
Facebook Comments
-
Instagram Timeline
-
Instagram Inbox
-
YouTube Comments
-
LinkedIn Direct Messages (DM)
-
LinkedIn Comments
-
Email
Current Messages in the system
Following are the current messages data required to segregate stats by channel:
-
Agent Messages
-
Customer Messages
2. Source Systems and Data
Primary Source System
-
Database Type: MongoDB
-
Database Name:
conversation-manager_db -
Collections:
-
ConversationActivities -
CustomerTopicEvents
-
-
Query:
-
{$or: [{ "activity.name": "AGENT_MESSAGE" },{ "activity.name": "CUSTOMER_MESSAGE" }]} -
{"cimEvent.data.body.type": 'COMMENT'}
-
Example payloads:
Comment Type Message:
"body": {
"type": "COMMENT",
"markdownText": "aGVsbG8gbmV3IGNvbW1lbnRz",
"postId": "106943938219327_799974918928392",
"attachment": null,
"itemType": "TEXT"
}
DM Type Message:
"body": {
"type": "PLAIN",
"markdownText": "hy"
}
3. Dashboards Requirements and KPI Definitions
The following dashboards and key performance indicators (KPIs) are required to support analysis based on the newly segregated interaction data.
-
Social Media Activity Reasons
|
Required KPIs |
Source |
Description |
Computation Strategy |
Filtration Criteria |
Metrics |
|---|---|---|---|---|---|
|
Major Activity Reasons - Complaints |
|
Wrap-up count with respect to categories - Complaints. |
This data could be segregated based on |
|
Major Activity Reasons |
|
Major Activity Reasons - Information |
|
Wrap-up count with respect to categories - Information. |
This data could be segregated based on |
|
Major Activity Reasons |
-
Social Media Dashboard - May 2025
|
Required KPIs |
Source |
Description |
Computation Strategy |
Filtration Criteria |
Metrics |
|---|---|---|---|---|---|
|
Total SM Unit Activity |
|
|
Activities are (Messages, Conversations, Wrapups)
|
|
|
|
Facebook Activity |
|
This KPI measures the total interaction volume specifically on the Facebook channel. It includes activities across different interaction types such as inbox messages and comments. |
|
|
|
|
Twitter Activity |
|
This KPI measures the total interaction volume specifically on the Twitter channel. It includes activities across different interaction types such as inbox messages and comments. |
|
|
|
|
Instagram Activity |
|
This KPI measures the total interaction volume specifically on the Instagram channel. It includes activities across different interaction types such as inbox messages and comments. |
|
|
|
|
Youtube Activity |
|
This KPI measures the total interaction volume specifically on the Youtube channel. It includes activities across different interaction types such as inbox messages and comments. |
|
|
|
|
SM Unit |
|
|
|
|
Major Activity Reasons |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Youtube/Live Chat |
|
|
|
|
|
|
Facebook Activity Type |
|
|
|
|
|
|
Instagram Activity Type |
|
|
|
|
|
|
FB Inbox |
|
This KPI measures the total inbox messages volume specifically on the Facebook channel. It includes activities across interaction type as inbox. |
|
|
|
|
FB Comment |
|
This KPI measures the total comment messages volume specifically on the Facebook channel. It includes activities across interaction type as comment. |
|
|
|
|
Instagram Timeline |
|
This KPI measures the total posts volume specifically on the Instagram channel. |
|
|
|
|
Instagram Inbox |
|
This KPI measures the total inbox messages volume specifically on the Instagram channel. It includes activities across interaction type as inbox. |
|
|
|
|
|
|
|
|
|
|
-
Social Media Dashboard
|
Required KPIs |
Source |
Description |
Computation Strategy |
Filtration Criteria |
Metrics |
|---|---|---|---|---|---|
|
T Activity - SM Unit/Facebook/Twitter/Instagram |
|
|
Activities are (Messages, Conversations, Wrapups)
|
|
Total Activities
|
|
Complaints |
|
Wrap-up count with respect to categories - Complaints.
|
This data could be segregated based on |
|
Major Activity Reasons |
|
Information |
|
Wrap-up count with respect to categories - Information. |
This data could be segregated based on |
|
Major Activity Reasons |
|
Request |
|
Wrap-up count with respect to categories - Request. |
This data could be segregated based on |
|
Major Activity Reasons |
|
Share in activities |
|
|
|
|
|
|
Activity Type |
|
|
|
|
|
|
Weekly Overview - Complaints vs Information |
|
|
|
|
|
-
Social Media Sentiment Overview
|
Required KPIs |
Source |
Description |
|---|---|---|
|
Facebook Comment |
|
|
|
Facebook Inbox |
|
|
|
Instagram Timeline |
|
|
|
Punjab |
|
Not available in CX |
|
Sindh |
|
Not available in CX |
|
KPK |
|
Not available in CX |
|
Balochistan |
|
Not available in CX |
|
Federal Capital Territory |
|
Not available in CX |