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 retrieving data from local database files and provides features such as intelligent analysis, data visualization, and automated report generation. Based on key indicators such as high-frequency words, sentiment tendencies, and active 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 features of Chatlog
- Intelligent analysis: Automatically extracts key indicators such as high-frequency words, sentiment tendencies, and active periods from chat logs.
- Multi-platform support: Compatible with data formats exported from mainstream chat tools such as WeChat, QQ, and Telegram.
- Data visualization: Generates word clouds, time-series activity charts, relationship network graphs, etc., to intuitively present chat characteristics.
- Privacy protection: Processes data locally without uploading to the cloud, ensuring information security.
- Automated reports: Generates analysis reports with one click and supports export in PDF/Excel format.
Project address of Chatlog
- GitHub repository:https://github.com/sjzar/chatlog
How to use Chatlog
- Install ChatLog:
- Precompiled version: Visit ChatLog Releases. Download the version suitable for your system (Windows, macOS, Linux). After decompression, run chatlog.exe (Windows) or ./chatlog (macOS/Linux).
- Source installation (requires Go environment):go install github.com/sjzar/chatlog@latest
- Start ChatLog: After running the program, enter the Terminal UI interface, use the ↑ and ↓ keys to select menus, press Enter to confirm, press Esc to return, and press Ctrl+C to exit.
- Decrypt chat logs: Select "Decrypt Data" in the interface. Enter the WeChat encryption key. Wait for decryption to complete.
- Start HTTP service: Select "Start HTTP Service" in the interface. The default address is http://127.0.0.1:5030。
- Use HTTP API:
- Query chat logs:GET /api/v1/chatlog?time=2024-01-01&talker=wxid_xxx。
- Query contacts:GET /api/v1/contact。
- Query group chats:GET /api/v1/chatroom。
- Query sessions:GET /api/v1/session。
- Multimedia content access:
- Images:GET /image/<id>。
- Videos:GET /video/<id>。
- Files:GET /file/<id>。
- Voice:GET /voice/<id>。
- MCP integration: Start ChatLog to enable the HTTP service. Add http://127.0.0.1:5030/sse as an SSE Endpoint in an AI assistant (such as ChatWise). Complete the configuration according to the AI assistant's documentation.
Application scenarios of Chatlog
- Personal social analysis: Analyze chat habits and understand high-frequency words and active periods.
- Team collaboration optimization: Quickly summarize group chat content and extract key information.
- Business customer insights: Analyze customer chat logs and extract needs and feedback.
- Work efficiency improvement: Find important chat logs and generate work summaries.
- Data privacy protection: Process data locally to ensure privacy and security.