Skip to content

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

WeChat Agent

基于 Claude Code 的微信个人助手,通过文件传输助手实现文章整理、智能问答等功能。

功能

功能 说明
文章整理 转发公众号文章,自动提取摘要、分类、关键词并存入数据库
今日简报 发送 今日 查看当天收藏的文章列表
本周汇总 发送 本周 查看一周文章统计和重点推荐
文章搜索 发送 #搜 关键词 搜索已收藏的文章
智能问答 发送任意问题,AI 简短回答(支持联网搜索)

架构

微信 → wechatbot-webhook → inbox_server.py → auto_process.sh → Claude Code
                                                    ↓
                                              SQLite 数据库

部署

1. 环境要求

2. 安装

git clone https://github.com/leoncuhk/wechat-agent.git
cd wechat-agent

# 安装 Python 依赖
pip install -r requirements.txt

# 创建数据目录
mkdir -p data inbox processed logs

3. 配置

# 复制环境变量示例
cp .env.example .env

# 编辑 .env,设置你的 token
vim .env

.env 内容:

WEBHOOK_URL=http://localhost:3001
WEBHOOK_TOKEN=your_secure_token_here

4. 启动服务

# 启动微信 webhook(Docker)
docker-compose up -d

# 启动消息接收服务
python3 inbox_server.py &

# 启动消息处理服务
source .env && ./auto_process.sh &

5. 登录微信

浏览器访问:http://your-server:3001/login?token=your_secure_token_here

扫码登录后即可使用。

使用方法

在微信中给「文件传输助手」发消息:

  • 转发文章 → 自动整理并回复摘要
  • 今日 → 查看今日收藏
  • 本周 → 查看本周汇总
  • #搜 AI → 搜索包含 AI 的文章
  • 任意问题 → AI 回答

文件说明

文件 说明
inbox_server.py FastAPI 服务,接收微信消息存入 inbox
auto_process.sh 轮询处理 inbox 消息,调用 Claude Code
docker-compose.yml wechatbot-webhook 容器配置
data/articles.db SQLite 数据库,存储文章信息

License

MIT

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages