> ## Documentation Index
> Fetch the complete documentation index at: https://docs.langbot.app/llms.txt
> Use this file to discover all available pages before exploring further.

# 個人 WeChat（OpenClaw）

> LangBot で個人 WeChat AI ボットを構築。大規模言語モデルを WeChat アカウントに接続。

## はじめに

[OpenClaw](https://github.com/dingxiang-me/OpenClaw-Wechat) はオープンソースの AI Agent フレームワークです。OpenClaw WeChat アダプターを使用することで、LangBot を個人の WeChat アカウントに接続でき、単一チャット、ストリーミング出力、ホワイトリスト制御などの機能をサポートしています。

## クイックスキャンログイン（おすすめ）

LangBot は WeChat のワンクリックスキャンログインをサポートしており、クレデンシャルを自動入力します。手動でのトークン入力は不要です。

<Warning>
  スマートフォンの WeChat バージョンが **8.0.69** 以上であることを確認してください。それ以外の場合、正常に動作しない可能性があります。
</Warning>

1. LangBot WebUI を開き、**ボット > ボットを作成** に移動
2. ボット名を入力し、プラットフォーム/アダプターで `個人微信ボット` を選択
3. 表示される **スキャンログイン** エリアで **開始** ボタンをクリック

<img src="https://mintcdn.com/langbot/2gQAELt1nN3_kQMs/images/zh/deploy/bots/wexin/wexin_scan_login.png?fit=max&auto=format&n=2gQAELt1nN3_kQMs&q=85&s=25ccffd54c0a960da009724aa7a38c9a" alt="スキャンログインを選択" width="1765" height="840" data-path="images/zh/deploy/bots/wexin/wexin_scan_login.png" />

4. WeChat で QR コードをスキャンし、手机端で「新しい OpenClaw を WeChat に接続」をタップし **続行** をクリック

<img src="https://mintcdn.com/langbot/2gQAELt1nN3_kQMs/images/zh/deploy/bots/wexin/wexin_scan_connect.png?fit=max&auto=format&n=2gQAELt1nN3_kQMs&q=85&s=bcead9cc902d49273e653c0815b08cd8" alt="スキャンして接続" width="1422" height="884" data-path="images/zh/deploy/bots/wexin/wexin_scan_connect.png" />

5. 認証成功後、トークンとアカウント ID がフォームに**自動入力**されます

<img src="https://mintcdn.com/langbot/2gQAELt1nN3_kQMs/images/zh/deploy/bots/wexin/wexin_config_auto_fill.png?fit=max&auto=format&n=2gQAELt1nN3_kQMs&q=85&s=8ef5afeb73eefe6afcf4268f7a9d79bb" alt="設定自動入力" width="1595" height="885" data-path="images/zh/deploy/bots/wexin/wexin_config_auto_fill.png" />

6. **送信** をクリックして完了

<Warning>
  接続に失敗した場合は、WeChat のバージョンが 8.0.69 以上であることを確認してください。
</Warning>

### ログイン成功の確認

スキャンが成功すると、スマートフォンに ClawBot のチャット画面が表示されます。

<img src="https://mintcdn.com/langbot/y4IHfUMtvCt0Q8rn/images/zh/deploy/bots/wexin/wexin_05.jpg?fit=max&auto=format&n=y4IHfUMtvCt0Q8rn&q=85&s=f9c2f8a08b05016e51c6d5435229c6b3" alt="WeChat ClawBot チャット画面" width="1080" height="2400" data-path="images/zh/deploy/bots/wexin/wexin_05.jpg" />

同時に、LangBot のログに接続成功のメッセージが表示され、設定ページのトークンとアカウントが自動的に更新されます。これでログイン成功です。

<img src="https://mintcdn.com/langbot/y4IHfUMtvCt0Q8rn/images/zh/deploy/bots/wexin/wexin_06.png?fit=max&auto=format&n=y4IHfUMtvCt0Q8rn&q=85&s=b24e9d4835a2e1e06509e4cca9fdd214" alt="ログ情報" width="1754" height="665" data-path="images/zh/deploy/bots/wexin/wexin_06.png" />

<img src="https://mintcdn.com/langbot/y4IHfUMtvCt0Q8rn/images/zh/deploy/bots/wexin/wexin_07.png?fit=max&auto=format&n=y4IHfUMtvCt0Q8rn&q=85&s=66fa2d40b18ed3b0f6dbcaf31c7a2c1d" alt="設定ページ" width="1900" height="895" data-path="images/zh/deploy/bots/wexin/wexin_07.png" />

## 使い方

ログイン成功後、スキャンしたアカウントで先ほど入った ClawBot のチャット画面に話しかけると、LangBot が自動的に返信します。
