Skip to main content

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 ColumnDescription of FieldWhere is the value fetched from
Collection: Session_info & chat_session
DateDate range for which the kpi is generatedSpecified by the hit on the api converted into IST
Brand/Use CaseBrand Nameprocess.env
ChannelPlatform NameBSV.allowedchannels
BOT triggersNumber of time bot has triggered

Collection- Bottriggerlogs

Unique values of ‘_id’ within the specified date range

Average DAUAverage count of daily active usersPsids within the date range/number of days
Total sessionsTotal number of session in specified rangeNumber of chat sessions in specified date range
Session to trigger %Ratio of number of sessions to bot triggeredTotal number of session/ unique PSIDs
Avg Session time (in mins)Average time of sessions calculated in minutesSum of all the session times /total sessions
Average message per userAverage number of messages per userTotal message by customer/ total sessions
Collection - chatLogs
Lead CountTotal number of leads collectedCollection- event log
Count of events: “lead_generation-success”
Lead to Session %Ratio leads to number of sessionsTotal leads/total sessions
BOT containment ratePercentage 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 messageCount if a user left the bot after triggeringBottriggerlogs collection
Intent recognition rateRatio of correctly recognised IntentsMessage having intent score >0.6 + entities / total intent captured Collection - chat logs
Average BOT response timeTime taken by the bot to response after the user messageSubtraction of time stamp of chatbot and senders message / number of pairs
Where pair is one chatbot and one customer message
Total FAQ triggeredTotal number of FAQs triggeredCount of the event FAQ Query from event logs collection

Example of Report -

Image Generate Kpi Report:

(https://docs.google.com/spreadsheets/d/1P\_0jBYSiXotmw-cMfk3ggYm9YIpXfHth/edit?usp=sharing&ouid=105734641735843511344&rtpof=true&sd=true)

Report Format -
Branch : development
Path : Reports/kpiReport.js

Aggregation -
Branch : development
Path: Reports/Chat/kpi.js