chatbot21 / features.md
Martechsol
Fix: notification sound auto-login and suspend issues
43bba45
|
Raw
History Blame Contribute Delete
3.76 kB
# Admin Panel Features
This document outlines all the features and capabilities currently implemented in your production-ready Admin Panel. It has been updated to reflect the latest robustness, performance, and UI improvements.
## πŸ“Š Dashboard & Analytics
- **Live Metrics**: Instantly view the number of Live Sessions, Queued Users, Daily Users (tracked accurately by account creation date), and Blocked Users through dedicated dashboard stat cards.
- **Visual Charts**: Interactive line charts showing message activity and session trends over time.
- **Data Integrity**: Accurate, real-time aggregation of metrics across thousands of sessions without UI stutter.
## πŸ’¬ Session & Chat Management
- **Live Monitoring**: Watch active AI conversations in real-time. The auto-refresh system silently updates active chats without interrupting your reading or scrolling.
- **Human Takeover**: Admins can seamlessly take over a chat from the AI to speak directly with the user. Includes role-selection (e.g. "HR", "Supervising Authority").
- **Multi-Thread Support**: View the entire history of a user, separated cleanly into individual "Chat Threads".
- **End Chat**: Manually force-end an ongoing chat thread to reset the AI context for that user.
## πŸ”” Queue & Background Notifications
- **Human Agent Queue**: When users ask to speak to a human, they are placed in a dedicated "Queued Users" list with an active waiting timer.
- **Service Worker Notifications**: A dedicated background Web Worker ensures you receive OS-level popup notifications and custom sound alerts even if the tab is minimized or in the background. It efficiently scales to support thousands of active users without dropping notifications.
- **Smart Muting**: Archiving a session instantly mutes any background notifications or alerts from that user.
## πŸ—„οΈ Archiving System
- **Session-Level Archiving**: Move entire users to the "Archived" tab to declutter your Live and Daily lists. Only explicitly archived sessions appear in the Archive view.
- **Thread-Level Archiving**: Archive specific old chat threads within an active session. Active/ongoing chats are protected from being accidentally archived.
- **Optimistic UI**: Archiving and unarchiving happens instantly on your screen without waiting for page refreshes.
## πŸ–±οΈ Custom Context Menu
- **Premium Right-Click Menu**: A custom, frosted-glass right-click menu replaces the default browser menu.
- **Context-Aware**: Right-clicking a Session gives options to Archive/Block/Delete. Right-clicking a specific Chat Thread gives options to Archive/Unarchive/Delete. It intelligently adapts to whether a session is already archived.
## πŸ›‘οΈ Moderation & Export
- **Block Users**: Instantly block malicious or spam users, moving them to a dedicated "Blocked Users" list where they cannot interact with the bot.
- **Delete Data**: Permanently delete sessions or specific chat threads.
- **Exporting**: Download individual chat transcripts, or click "Export All Data" to receive a generated ZIP file containing all system chats in both JSON and CSV formats.
## βš™οΈ Additional Utilities & Performance
- **Settings Configuration**: A dedicated tab to configure WhatsApp API keys, phone numbers, and notification preferences.
- **Real-Time Search**: Instantly filter the sidebar by typing a user's name or session ID.
- **Responsive Sidebar**: Drag to resize the sidebar width to your preference.
- **Infinite Scrolling**: Scroll through thousands of sessions efficiently. The UI automatically paginates and loads more users as you scroll to the bottom.
- **Strict Data Consistency**: Robust handling of mixed ID types (numeric vs string) guarantees no state corruption or dropped clicks across the interface.