wechat-daily-report微信群聊天记录日报图片生成工具。分析微信群聊天记录,结合 AI 生成内容,**最终输出为手机端分辨率的日报长图(PNG)**。
Install via ClawdBot CLI:
clawdbot install justao/wechat-daily-report1. 运行 analyze_chat.py 分析聊天记录
↓
2. AI 根据聊天文本生成内容 (ai_content.json)
↓
3. 运行 generate_report.py 生成日报图片 (.png)
⚠️ 最终输出是 PNG 图片,不是 HTML。确保 --output 参数使用 .png 后缀。
python scripts/analyze_chat.py <聊天记录.json> --output-stats stats.json --output-text simplified_chat.txt
输出:
stats.json - 统计数据(话唠榜、熬夜冠军、词云等)simplified_chat.txt - 全量聊天文本,供 AI 分析根据 simplified_chat.txt 和 stats.json,按 references/ai_prompt.md 中的格式生成 AI 内容,保存为 ai_content.json。
AI 需要生成的内容包括:
topics: 讨论热点(3-5 个)resources: 教程/资源分享important_messages: 重要消息dialogues: 有趣对话qas: 问答talker_profiles: 话唠成员的特点标签(常用词已由脚本统计)python scripts/generate_report.py --stats stats.json --ai-content ai_content.json --output report.png
✅ 输出后缀必须是 .png,使用 iPhone 14 Pro Max 分辨率 (430x932 @3x)
图片生成需要安装 playwright:pip install playwright && playwright install chromium
{
"meta": {
"name": "群名称",
"platform": "wechat",
"type": "group"
},
"members": [
{"platformId": "xxx", "accountName": "昵称"}
],
"messages": [
{
"sender": "platformId",
"accountName": "昵称",
"timestamp": 1234567890,
"type": 0,
"content": "消息内容"
}
]
}
消息类型 (type):
0: 纯文本(脚本和 AI 只分析此类型)1: 图片5: 动画表情99: 系统消息| 数据 | 说明 |
|------|------|
| 总消息数 | 所有消息计数 |
| 活跃用户数 | 去重用户数 |
| 时间范围 | 首尾消息时间 |
| 话唠榜 TOP3 | 按发言数排序 + 常用词 |
| 熬夜冠军 | 23:00-06:00 最晚活跃者 |
| 词云数据 | jieba 分词 + 词频统计 |
| 内容 | 输入数据 |
|------|----------|
| 讨论热点 | 精简文本 + 词云 TOP50 |
| 成员画像 | 精简文本中的发言 |
| 有趣对话 | 高互动片段 |
| 问答识别 | 问号消息 ± 上下文 |
| 教程/资源 | 精简全文识别 |
pip install jieba jinja2 playwright
playwright install chromium
Generated Mar 1, 2026
Community managers use this skill to generate daily summaries for WeChat groups, highlighting key discussions and member contributions. It helps track engagement trends and share digestible reports with stakeholders or members.
Teachers or course administrators apply this skill to analyze study group chats, identifying popular topics and resource shares. It supports creating visual reports to review class interactions and learning progress.
Project teams utilize this skill to generate daily summaries from work-related WeChat groups, focusing on important messages and task discussions. It aids in tracking project updates and team communication efficiency.
Support teams use this skill to analyze customer service chats in WeChat groups, identifying common questions and resource shares. It helps create reports to improve response strategies and service quality.
Event organizers apply this skill to summarize planning chats in WeChat groups, highlighting key decisions and participant interactions. It assists in generating visual updates for event progress and team alignment.
Offer this skill as a cloud-based service with monthly plans for automated daily report generation. It targets businesses needing regular group chat insights, with tiered pricing based on group size and features.
Provide tailored versions of this skill for specific industries, integrating with existing CRM or analytics platforms. Revenue comes from one-time development fees and ongoing support contracts.
Release a free basic version with limited features, encouraging upgrades to premium for advanced analytics and higher-resolution reports. Monetize through in-app purchases or ad-supported tiers.
💬 Integration Tip
Ensure chat data is formatted as specified JSON and install required dependencies like playwright for image generation.
iMessage/SMS CLI for listing chats, history, watch, and sending.
Use when you need to control Discord from Clawdbot via the discord tool: send messages, react, post or upload stickers, upload emojis, run polls, manage threads/pins/search, fetch permissions or member/role/channel info, or handle moderation actions in Discord DMs or channels.
Use when you need to control Slack from Clawdbot via the slack tool, including reacting to messages or pinning/unpinning items in Slack channels or DMs.
Send WhatsApp messages to other people or search/sync WhatsApp history via the wacli CLI (not for normal user chats).
Build or update the BlueBubbles external channel plugin for Clawdbot (extension package, REST send/probe, webhook inbound).
OpenClaw skill for designing Telegram Bot API workflows and command-driven conversations using direct HTTPS requests (no SDKs).