Chatlog - an open-source AI chat log analysis tool that automatically parses, visualizes, and mines chat logs.
Chatlog is an open-source chat log analysis tool that supports efficient parsing, visualization, and mining of chat logs from mainstream chat tools such as WeChat, QQ, and Telegram. The tool supports retrieving data from local database files and provides intelligent analysis...
What is Chatlog?
Chatlog is an open-source chat log analysis tool that supports efficient parsing, visualization, and mining of chat logs from mainstream chat tools such as WeChat, QQ, and Telegram. The tool supports data acquisition from local database files and provides intelligent analysis, data visualization, and automated report generation. Based on key indicators such as high-frequency words, sentiment trends, and active time periods, Chatlog helps users quickly summarize chat content and extract useful information. Chatlog is suitable for personal social analysis, team collaboration optimization, and business scenarios.
Main functions of Chatlog
- Intelligent AnalysisAutomatically extracts key indicators such as high-frequency words, sentiment trends, and active time periods from chat history.
- Multi-platform supportIt is compatible with data formats exported from mainstream chat tools such as WeChat, QQ, and Telegram.
- Data visualizationGenerate word clouds, time-series activity graphs, relationship network graphs, etc., to intuitively present chat characteristics.
- Privacy protectionData is processed locally, eliminating the need to upload to the cloud and ensuring information security.
- Automated ReportingGenerate analysis reports with one click, and support exporting to PDF/Excel format.
Chatlog project address
- GitHub repository:https://github.com/sjzar/chatlog
How to use Chatlog
- Install ChatLog:
- pre-compiled version:access ChatLog ReleasesDownload the version suitable for your system (Windows, macOS, Linux). After extracting, run chatlog.exe (Windows) or ./chatlog (macOS/Linux).
- Install from source code (Go environment required):go install github.com/sjzar/chatlog@latest
- Start ChatLogAfter running the program, you will enter the Terminal UI interface. Use the ↑ and ↓ keys to select the menu, press Enter to confirm, press Esc to return, and press Ctrl+C to exit.
- Decrypting chat logsIn the interface, select "Decrypt Data". Enter the WeChat encryption key. Wait for decryption to complete.
- Start HTTP serviceIn the interface, select "Enable HTTP Service". The default address is http://127.0.0.1:5030.
- Using HTTP API:
- Query chat history:GET /api/v1/chatlog?time=2024-01-01&talker=wxid_xxx.
- Search for contacts: GET /api/v1/contact.
- Search group chats: GET /api/v1/chatroom.
- Query Session: GET /api/v1/session.
- Multimedia content access:
- picture:GET /image/<id>.
- video:GET /video/<id>.
- document:GET /file/<id>.
- voice:GET /voice/<id>.
- MCP Integration: Start ChatLog and enable the HTTP service. Add http://127.0.0.1:5030/sse as the SSE Endpoint in the AI assistant (such as ChatWise). Complete the configuration according to the AI assistant's documentation.
Application scenarios of Chatlog
- Personal social analyticsAnalyze chat habits to understand high-frequency words and active times.
- Team collaboration optimizationQuickly summarize group chat content and extract key information.
- Business Customer InsightsAnalyze customer chat logs to extract needs and feedback.
- Improve work efficiencyFind important chat logs and generate work summaries.
- Data privacy protectionData is processed locally to ensure privacy and security.