KPI Report & Generate Kpi Report
Summary Doc
Type of Report -
Standard
Purpose of the Report -
1. Generate Kpi Report- This report gives us the complete analytics within the date range about the sessions on all the platforms in terms of number of sessions, average session time, leads count, bot containment etc.
2. KPI Report- This report helps in caching in the data into db ie saving the above data into the database in “kpidata” collection, using which the data in the KPi report can be filled.
Detailed Description -
| Name of Column | Description of Field | Where is the value fetched from Collection: Session_info & chat_session |
|---|---|---|
| Date | Date range for which the kpi is generated | Specified by the hit on the api converted into IST |
| Brand/Use Case | Brand Name | process.env |
| Channel | Platform Name | BSV.allowedchannels |
| BOT triggers | Number of time bot has triggered | Collection- Bottriggerlogs Unique values of ‘_id’ within the specified date range |
| Average DAU | Average count of daily active users | Psids within the date range/number of days |
| Total sessions | Total number of session in specified range | Number of chat sessions in specified date range |
| Session to trigger % | Ratio of number of sessions to bot triggered | Total number of session/ unique PSIDs |
| Avg Session time (in mins) | Average time of sessions calculated in minutes | Sum of all the session times /total sessions |
| Average message per user | Average number of messages per user | Total message by customer/ total sessions Collection - chatLogs |
| Lead Count | Total number of leads collected | Collection- event log Count of events: “lead_generation-success” |
| Lead to Session % | Ratio leads to number of sessions | Total leads/total sessions |
| BOT containment rate | Percentage of how many flows are started and ended within the session | End node event /start node events Collection -event logs |
| Total no. of chats abandoned after first/welcome message | Count if a user left the bot after triggering | Bottriggerlogs collection |
| Intent recognition rate | Ratio of correctly recognised Intents | Message having intent score >0.6 + entities / total intent captured Collection - chat logs |
| Average BOT response time | Time taken by the bot to response after the user message | Subtraction of time stamp of chatbot and senders message / number of pairs Where pair is one chatbot and one customer message |
| Total FAQ triggered | Total number of FAQs triggered | Count of the event FAQ Query from event logs collection |
Example of Report -
Generate Kpi Report:
Report Format -
Branch : development
Path : Reports/kpiReport.js
Aggregation -
Branch : development
Path: Reports/Chat/kpi.js