Skip to content

Commit 8bbb91e

Browse files
committed
some action recomendations were kinda dumb, removed for a better implamentation later. also removed un-used vars
1 parent 7b39f0b commit 8bbb91e

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

Specialized Areas/Virtual Agent/Conversation Analyzer/conversation_analyzer.js

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,12 @@
3838
var userStats = {};
3939
var departmentStats = {};
4040
var timeStats = { morning: 0, afternoon: 0, evening: 0, night: 0 };
41-
var abandonmentReasons = {};
4241
var totalAbandoned = 0;
4342
var totalCompleted = 0;
4443

4544
// Process each conversation
4645
conversations.query();
4746
while (conversations.next()) {
48-
var topicId = conversations.getValue('topic');
4947
var topicName = conversations.topic.getDisplayValue() || 'Unknown Topic';
5048
var userId = conversations.getValue('user');
5149
var state = conversations.getValue('state');
@@ -203,30 +201,6 @@
203201
gs.info('Abandoned: ' + totalAbandoned + ' (' + ((totalAbandoned / totalConversations) * 100).toFixed(1) + '%)');
204202
gs.info('Average Daily Conversations: ' + (totalConversations / config.daysToAnalyze).toFixed(1));
205203

206-
// Recommendations
207-
gs.info('');
208-
gs.info('=== Recommendations ===');
209-
gs.info('');
210-
211-
var highAbandonTopics = topicArray.filter(function(t) {
212-
return parseFloat(t.abandonRate) > 30 && t.total >= config.minConversations;
213-
});
214-
215-
if (highAbandonTopics.length > 0) {
216-
gs.info('🔍 Review ' + highAbandonTopics.length + ' topic(s) with high abandonment rates');
217-
}
218-
219-
if (timeStats.night > (totalConversations * 0.1)) {
220-
gs.info('🌙 Significant night-time usage detected (' + timeStats.night + ' conversations) - consider 24/7 support topics');
221-
}
222-
223-
if (totalUsers > 0 && (totalConversations / totalUsers) < 2) {
224-
gs.info('📢 Low engagement (avg ' + (totalConversations / totalUsers).toFixed(1) + ' conversations/user) - consider promoting VA to increase awareness');
225-
}
226-
227-
if ((totalCompleted / totalConversations) > 0.85) {
228-
gs.info('✅ High completion rate (' + ((totalCompleted / totalConversations) * 100).toFixed(1) + '%) - VA is performing well!');
229-
}
230204

231205
gs.info('');
232206
gs.info('=== Analysis Complete ===');

0 commit comments

Comments
 (0)