diff --git a/docs.json b/docs.json index ec089241e..14dfe7402 100644 --- a/docs.json +++ b/docs.json @@ -162,6 +162,12 @@ "en/usage/platforms/wecom/wecomcs", "en/usage/platforms/wecom/wecombot" ] + }, + { + "group": "WeChat", + "pages": [ + "en/usage/platforms/wechat/weixin" + ] } ] }, @@ -353,7 +359,8 @@ { "group": "微信", "pages": [ - "zh/usage/platforms/wechat/wechatpad" + "zh/usage/platforms/wechat/wechatpad", + "zh/usage/platforms/wechat/weixin" ] } ] @@ -564,6 +571,12 @@ "ja/usage/platforms/wecom/wecomcs", "ja/usage/platforms/wecom/wecombot" ] + }, + { + "group": "WeChat", + "pages": [ + "ja/usage/platforms/wechat/weixin" + ] } ] }, diff --git a/en/usage/platforms/wechat/weixin.mdx b/en/usage/platforms/wechat/weixin.mdx new file mode 100644 index 000000000..04b5a2702 --- /dev/null +++ b/en/usage/platforms/wechat/weixin.mdx @@ -0,0 +1,58 @@ +--- +title: "Connect Personal WeChat via OpenClaw" +--- + +## Introduction + +[OpenClaw](https://github.com/dingxiang-me/OpenClaw-Wechat) is an open-source AI Agent framework. Through the OpenClaw WeChat adapter, you can connect LangBot to your personal WeChat account, with support for group chats, streaming output, whitelist control, and more. + +## Prerequisites + +- LangBot is deployed and running + + +Please make sure your mobile WeChat version is the latest **8.0.69** or above, otherwise the OpenClaw WeChat adapter may not work properly. You can check your version in WeChat under "Me" -> "Settings" -> "About WeChat". + + +## Configure in LangBot + +### 1. Create Adapter + +Launch the LangBot main program, create a new bot, fill in the bot name, select `OpenClaw 微信` as the platform/adapter, and click Submit. + +![Create WeChat Adapter](/images/zh/deploy/bots/wexin/wexin_01.png) + +### 2. Enable Adapter + +Enable the adapter and save the configuration. + +![Enable Adapter](/images/zh/deploy/bots/wexin/wexin_02.png) + +### 3. Scan QR Code to Log In + +Open the logs and check the log entry with an image icon to get the login QR code. + +![Open Logs to View QR Code](/images/zh/deploy/bots/wexin/wexin_03.png) + +Use your mobile WeChat to scan the QR code to complete the login. + + +Before scanning, please confirm again that your WeChat version is the latest **8.0.69** or above, otherwise the scan may fail. + + +![Scan QR Code](/images/zh/deploy/bots/wexin/wexin_04.jpg) + +### 4. Confirm Successful Login + +After scanning successfully, your phone will enter the ClawBot chat page on WeChat. + +![WeChat ClawBot Chat Page](/images/zh/deploy/bots/wexin/wexin_05.jpg) + +At the same time, the LangBot logs will show a successful connection message, and the token and account fields on the configuration page will be automatically updated, indicating a successful login. + +![Log Information](/images/zh/deploy/bots/wexin/wexin_06.png) +![Configuration Page](/images/zh/deploy/bots/wexin/wexin_07.png) + +## Start Using + +Once logged in, other WeChat users can send messages to your WeChat account to trigger LangBot's automatic replies. diff --git a/images/zh/deploy/bots/wexin/wexin_01.png b/images/zh/deploy/bots/wexin/wexin_01.png new file mode 100644 index 000000000..f9a8a2529 Binary files /dev/null and b/images/zh/deploy/bots/wexin/wexin_01.png differ diff --git a/images/zh/deploy/bots/wexin/wexin_02.png b/images/zh/deploy/bots/wexin/wexin_02.png new file mode 100644 index 000000000..9f28b805d Binary files /dev/null and b/images/zh/deploy/bots/wexin/wexin_02.png differ diff --git a/images/zh/deploy/bots/wexin/wexin_03.png b/images/zh/deploy/bots/wexin/wexin_03.png new file mode 100644 index 000000000..167ca7635 Binary files /dev/null and b/images/zh/deploy/bots/wexin/wexin_03.png differ diff --git a/images/zh/deploy/bots/wexin/wexin_04.jpg b/images/zh/deploy/bots/wexin/wexin_04.jpg new file mode 100644 index 000000000..1a323289c Binary files /dev/null and b/images/zh/deploy/bots/wexin/wexin_04.jpg differ diff --git a/images/zh/deploy/bots/wexin/wexin_05.jpg b/images/zh/deploy/bots/wexin/wexin_05.jpg new file mode 100644 index 000000000..9aa758166 Binary files /dev/null and b/images/zh/deploy/bots/wexin/wexin_05.jpg differ diff --git a/images/zh/deploy/bots/wexin/wexin_06.png b/images/zh/deploy/bots/wexin/wexin_06.png new file mode 100644 index 000000000..c036a69a5 Binary files /dev/null and b/images/zh/deploy/bots/wexin/wexin_06.png differ diff --git a/images/zh/deploy/bots/wexin/wexin_07.png b/images/zh/deploy/bots/wexin/wexin_07.png new file mode 100644 index 000000000..e7e6d5d9f Binary files /dev/null and b/images/zh/deploy/bots/wexin/wexin_07.png differ diff --git a/ja/usage/platforms/wechat/weixin.mdx b/ja/usage/platforms/wechat/weixin.mdx new file mode 100644 index 000000000..bd9f8d598 --- /dev/null +++ b/ja/usage/platforms/wechat/weixin.mdx @@ -0,0 +1,58 @@ +--- +title: "OpenClaw で個人 WeChat に接続する" +--- + +## はじめに + +[OpenClaw](https://github.com/dingxiang-me/OpenClaw-Wechat) はオープンソースの AI Agent フレームワークです。OpenClaw WeChat アダプターを使用することで、LangBot を個人の WeChat アカウントに接続でき、グループチャット、ストリーミング出力、ホワイトリスト制御などの機能をサポートしています。 + +## 前提条件 + +- LangBot がデプロイされ、実行中であること + + +スマートフォンの WeChat バージョンが最新の **8.0.69** 以上であることを確認してください。それ以外の場合、OpenClaw WeChat アダプターが正常に動作しない可能性があります。WeChat の「自分」->「設定」->「WeChat について」からバージョンを確認できます。 + + +## LangBot での設定 + +### 1. アダプターの作成 + +LangBot メインプログラムを起動し、新しいボットを作成します。ボット名を入力し、プラットフォーム/アダプターで `OpenClaw 微信` を選択して、送信をクリックします。 + +![WeChat アダプターの作成](/images/zh/deploy/bots/wexin/wexin_01.png) + +### 2. アダプターの有効化 + +アダプターを有効にして、設定を保存します。 + +![アダプターの有効化](/images/zh/deploy/bots/wexin/wexin_02.png) + +### 3. QR コードをスキャンしてログイン + +ログを開き、画像アイコンが付いたログエントリを確認して、ログイン用の QR コードを取得します。 + +![ログを開いて QR コードを確認](/images/zh/deploy/bots/wexin/wexin_03.png) + +スマートフォンの WeChat で QR コードをスキャンしてログインを完了します。 + + +スキャン前に、WeChat のバージョンが **8.0.69** 以上であることを再度確認してください。バージョンが古い場合、スキャンに失敗する可能性があります。 + + +![QR コードスキャン](/images/zh/deploy/bots/wexin/wexin_04.jpg) + +### 4. ログイン成功の確認 + +スキャンが成功すると、スマートフォンに ClawBot のチャット画面が表示されます。 + +![WeChat ClawBot チャット画面](/images/zh/deploy/bots/wexin/wexin_05.jpg) + +同時に、LangBot のログに接続成功のメッセージが表示され、設定ページのトークンとアカウントが自動的に更新されます。これでログイン成功です。 + +![ログ情報](/images/zh/deploy/bots/wexin/wexin_06.png) +![設定ページ](/images/zh/deploy/bots/wexin/wexin_07.png) + +## 使い方 + +ログイン成功後、他の WeChat ユーザーがあなたの WeChat アカウントにメッセージを送信すると、LangBot が自動的に返信します。 diff --git a/zh/usage/platforms/wechat/weixin.mdx b/zh/usage/platforms/wechat/weixin.mdx new file mode 100644 index 000000000..506e055a2 --- /dev/null +++ b/zh/usage/platforms/wechat/weixin.mdx @@ -0,0 +1,58 @@ +--- +title: "通过 OpenClaw 接入个人微信" +--- + +## 简介 + +[OpenClaw](https://github.com/dingxiang-me/OpenClaw-Wechat) 是一个开源 AI Agent 框架,通过 OpenClaw 微信适配器可以将 LangBot 接入个人微信,支持群聊、流式输出、白名单控制等功能。 + +## 前置准备 + +- 已部署并运行 LangBot + + +请确认您的手机微信版本为 最新的**8.0.69** 或以上,否则可能无法正常使用 OpenClaw 微信适配器。您可以在微信的「我」->「设置」->「关于微信」中查看当前版本号。 + + +## 在 LangBot 中配置 + +### 1. 新建适配器 + +启动 LangBot 主程序,新建机器人,填写机器人名称,平台/适配器选择 `OpenClaw 微信`,点击提交即可。 + +![新建微信适配器](/images/zh/deploy/bots/wexin/wexin_01.png) + +### 2. 启用适配器 + +启用适配器并保存配置。 + +![启用适配器](/images/zh/deploy/bots/wexin/wexin_02.png) + +### 3. 扫码登录 + +打开日志,查看带有图片标志的日志详情,获取登录二维码。 + +![打开日志查看二维码](/images/zh/deploy/bots/wexin/wexin_03.png) + +使用手机微信扫描二维码完成登录。 + + +扫码前请再次确认微信版本为 **8.0.69** 或以上,否则可能导致扫码失败。 + + +![扫码链接](/images/zh/deploy/bots/wexin/wexin_04.jpg) + +### 4. 确认登录成功 + +扫码成功后,手机端会进入与 ClawBot 的聊天页面。 + +![微信 ClawBot 聊天页面](/images/zh/deploy/bots/wexin/wexin_05.jpg) + +同时,LangBot 日志中会出现连接成功的信息,配置页面中的令牌和账号也会自动更新,表示登录成功。 + +![日志信息](/images/zh/deploy/bots/wexin/wexin_06.png) +![配置页](/images/zh/deploy/bots/wexin/wexin_07.png) + +## 开始使用 + +登录成功后,其他微信用户向您的微信账号发送消息即可触发 LangBot 自动回复。