get_usage_stats('month'); $totals = $usage_stats['totals'] ?? array( 'message_count' => 0, 'tokens_used' => 0, 'conversation_count' => 0, ); // Check if upgrade plugin is active $upgrade_active = class_exists('A1AI_Upgrade_Helper') && A1AI_Upgrade_Helper::is_upgrade_active(); ?>

' . esc_html__('Settings', 'a1ai-chatbot') . '' ); ?>

' . esc_html__('Settings', 'a1ai-chatbot') . '' ); ?>

'; } else { echo '๐Ÿค–'; } ?>

0 ? round($totals['message_count'] / $totals['conversation_count'], 1) : 0; echo esc_html(number_format_i18n($avg_messages, 1)); ?>
0 ? round($totals['tokens_used'] / $totals['message_count'], 0) : 0; echo esc_html(number_format_i18n($avg_tokens)); ?>

๐Ÿ“Š

'dashboard_trends', 'title' => __('Message counts are not the number you actually need', 'a1ai-chatbot'), 'body' => __('Premium adds trends and exports for this chatbot. A1Ai Workspace reports on the whole path โ€” which chats became leads, which leads got followed up, and which ones closed.', 'a1ai-chatbot'), 'points' => array( __('Chat โ†’ lead โ†’ email โ†’ close in one dashboard', 'a1ai-chatbot'), __('Chatbot stats sitting next to ad spend, ROAS and pipeline', 'a1ai-chatbot'), __('Reports across every site you run, not one at a time', 'a1ai-chatbot'), ), )); } ?>
'dashboard_workspace', 'eyebrow' => $upgrade_active ? __('You have the chatbot. Here is the rest of it.', 'a1ai-chatbot') : __('Where this chatbot is really going', 'a1ai-chatbot'), 'lead' => $upgrade_active ? __('Premium got this chatbot answering well. A1Ai Workspace is what happens to the conversation afterwards โ€” the lead becomes a CRM contact, the follow-up sends itself, the appointment lands on your calendar, and one report finally shows which chats made money.', 'a1ai-chatbot') : __('The chatbot captures the conversation. A1Ai Workspace is what turns that conversation into a customer โ€” one desktop command center where your chats, contacts, email, calendar, content and reporting finally live together instead of in five disconnected tools.', 'a1ai-chatbot'), )); } ?>