登录 注册
开发者工具AI 应用与 AI AgentAI 模型与开发框架 chatgptopenaiwechatwechatbotwechaty
11,551
Stars
1,308
Forks
64
Watchers
121
Open Issues
MIT
许可证
JavaScript
语言
2021-12-15
创建时间
2026-09-04
最近更新

项目能做什么

支持 Telegram、WhatsApp、飞书与微信的多平台 IM AI Agent,接入 ChatGPT、Claude、DeepSeek 等实现自动回复与社群管理。
来源:AI 基于仓库事实生成 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
# WeChat Bot

English | [Simplified Chinese](./README.zh-CN.md)

A WeChat / IM agent project based on `Wechaty`.

It can route IM messages received from WeChat QR-code login, Lark IM events, Telegram Bot API polling, or WhatsApp Cloud API webhooks to ChatGPT, DeepSeek, Ollama, Claude, Pi, and other services. It can also use OpenCLI `wx-cli` to access local WeChat chats, contacts, group members, favorites, and Moments cache, then run statistics or AI analysis for a group chat or a specific friend.

If you want to use Pi as the project agent and WeChat, Lark, Telegram, or WhatsApp as the external communication channel, start with [Pi Agent + IM Guide](./docs/pi-im-agent.md).

<!-- ad-slot:autoclaw:start -->

## Sponsors

<div align="center">
  <a href="https://autoclaw.z.ai/?utm_source=github&utm_medium=readme&utm_campaign=wechat-bot">
    <img src="./sponsors/autoclaw.png" alt="AutoClaw" width="48" />
  </a>
  <p>
    <a href="https://autoclaw.z.ai/?utm_source=github&utm_medium=readme&utm_campaign=wechat-bot"><b>AutoClaw</b></a> · An AI agent that works for you, one click to connect WhatsApp / Telegram / Discord<br />
  </p>
</div>

<!-- ad-slot:autoclaw:end -->

## Feature Overview

| Feature | Command entry | Status |
| --- | --- | --- |
| WeChat QR-code IM | `wb agent --im wechat --agent pi` / `wb start --serve pi` | Available. Logs in by QR code and replies to allowlisted messages |
| Pi as project agent | `wb agent --im wechat/lark/telegram/whatsapp --agent pi` | Available. Single-turn non-interactive replies by default |
| Local WeChat chats / contacts / group members | `wb wx sessions`, `wb wx history`, `wb wx members` | Integrated through OpenCLI `wx-cli` |
| Local Moments cache | `wb wx sns-feed`, `wb wx sns-search` | Integrated through OpenCLI `wx-cli` |
| Group / friend analysis | `wb analyze --room "Group name"`, `wb analyze --friend "Friend alias"` | Supports local statistics and AI deep analysis |
| Lark IM | `wb lark login`, `wb lark messages`, `wb lark send`, `wb lark agent` | Supports login, read, search, send, and event-driven auto-replies |
| Telegram IM | `wb telegram agent`, `wb telegram send` | Supports Bot API long-polling receive and send |
| WhatsApp IM | `wb whatsapp agent`, `wb whatsapp send` | Supports WhatsApp Cloud API webhook receive and send |
| Multi-model replies | `--serve ChatGPT/deepseek/ollama/pi/...` | Reuses the existing provider mechanism |

## Quick Start: Pi + WeChat IM

```sh
npm i
cp .env.example .env
npm link
```

Configure at least the following values in `.env`:

```env
BOT_NAME='@Your WeChat nickname'
ALIAS_WHITELIST='Friend alias allowed for private chat'
ROOM_WHITELIST='Group name allowed for access'

PI_BIN='pi'
PI_AGENT_ARGS='--print --no-session'
WECHAT_STORE_MESSAGES='true'
```

Start the agent:

```sh
wb agent --im wechat --agent pi
```

When a QR code appears in the terminal, scan it with WeChat. The message pipeline is:

```text
WeChat QR-code login -> Wechaty receives message -> local JSON
阅读完整原文

商业机会分析 AI 生成

跨境出海多渠道AI客服工作台(SaaS)

产品构想规避个人微信高风险风控,基于仓库中的 WhatsApp/Telegram/Lark 抽象层,为出海独立站和跨境卖家提供统一的智能多语言客服与自动追单方案。
核心功能WhatsApp/TG统一收件箱接入、集成DeepSeek/Claude多模型问答、基于商品知识库的自动推荐与追单、多轮对话转人工。
目标用户Shopify/跨境电商独立站卖家、海外社群(Telegram/Discord)运营者。
难度/周期中等 · 1-2个月 · 成本:服务器成本(出海云主机约 $20-50/月)、模型API调用费用、WhatsApp Business API通道成本。
收费模式月费订阅制(阶梯定价,如 $29/$79/$199 每月),按消息量或坐席数计费。
竞争风险WhatsApp商业官方API审核流程严格;第三方协议接入存在封号风险。
依据 已验证事实

私域社群活跃与线索挖掘插件(增值工具包)

产品构想强化项目中提及的社群分析(community analysis)与僵尸粉检测(inactive-friend detection),包装为私域运营深度分析套件。
核心功能群聊发言行为热度分析、静默/流失用户召回策略、高意向购买关键词监听报警、自动化欢迎语与私聊分流。
目标用户知识付费主理人、社群团购操盘手、B2B销售私域运营者。
难度/周期中等偏低 · 3-4周 · 成本:轻量数据存储与分析服务器(100-300元/月)。
收费模式本地部署买断制授权(按设备/单群定价,如 199-599元/年)或私有化部署服务费。
竞争风险个人微信Web端或Hook协议风控极强,容易导致用户封号从而引发退款和客诉。
依据 数据支持的判断

企业飞书/企业微信专属AI知识库机器人(私有化交付)

产品构想针对企业内网场景,将项目改造为纯合规的 Lark/企微 官方 Bot,打包企业内网知识库(RAG)一体化部署解决方案。
核心功能飞书/企微官方开放平台接入、对接本地 Ollama 或云端大模型、企业知识库文档检索、员工权限鉴权隔离。
目标用户有内部知识库问答、IT/行政自动化咨询需求的中小企业。
难度/周期低 · 2-3周 · 成本:本地/私有云部署,主要为人力实施与技术支持成本。
收费模式单次技术实施服务费(2,000 - 10,000元/次)+ 年度维护技术支持费。
竞争风险企业定制化需求琐碎,实施周期容易拉长;获客依赖B端人脉渠道。
依据 AI推测
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

项目中文简介Stars语言
NousResearch/hermes-agent 中文介绍暂未生成
The agent that grows with you
262,411 Python
f/prompts.chat 中文介绍暂未生成
f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect
176,835 MDX
langflow-ai/langflow 中文介绍暂未生成
Langflow is a powerful tool for building and deploying AI-po
156,511 Python
langchain-ai/langchain 中文介绍暂未生成
The agent engineering platform.
149,322 Python
microsoft/generative-ai-for-beginners 中文介绍暂未生成
21 Lessons, Get Started Building with Generative AI
123,310 Jupyter Notebook
rasbt/LLMs-from-scratch 中文介绍暂未生成
Implement a ChatGPT-like LLM in PyTorch from scratch, step b
108,192 Jupyter Notebook
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。

项目优势与风险

技术成熟度创建于 2021-12-15,最近推送 2026-09-04,发布过 2 个 Release
社区活跃Star 11,551 / Fork 1,308 / Issue 121(数据支持,可自行核实)
许可证MIT
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

快速开始(以仓库 README 为准)
git clone https://github.com/wangrongding/wechat-bot.git
cd wechat-bot
docker compose up -d   # 或参考 README 中的 docker run 命令
阅读原仓库文档
术语说明:Docker=应用容器(把程序和依赖打包运行);API Key=调用外部服务的密钥;Git Clone=把仓库代码下载到本地。常见错误:API Key 未配置 / 端口占用 / 数据库连接失败,多数项目在 README 的 Troubleshooting 章节有说明。