# WeChat ClawBot

URL: https://swb.one/ja/docs/setup/wechat

SwB にオーナーとしてサインインしてください。次のプロンプトを、オーナー権限を持つエージェントに渡してください。

https://swb.one/prompts/wechat.md

```
Read the setup guide at https://swb.one/docs/setup/wechat.

Help me connect WeChat ClawBot to the SwB server I host. Give me https://swb.one/docs/connect if I need to connect this agent to SwB first.

Use a SwB client with owner access. Call `connect(what="wechat")`. Ask me whether another agent tool already uses this ClawBot. Call `connect` again with my answer in `choose.existing_binding`. If another agent uses this ClawBot, keep that connection. Connect the agent to SwB through its own integration. Continue with the QR code only when I choose to connect ClawBot to SwB.

Give me the link to the QR code panel at `/connections/wechat` on my SwB server. Ask me to select **Connect**. Ask me to scan the code with my WeChat account. Ask me to confirm the connection in WeChat. If WeChat asks for a PIN, direct me to enter the code in the SwB console. Keep the code in the console.

After ClawBot connects, ask me which agent answers here. Use `targets` to show the choices. Set my choice with `chat_main_set`.

Ask me to send a text message in my one-to-one chat with ClawBot. Ask me to check for a text reply in that chat. If WeChat ends the session, give me the same console link. Ask me to select **Reconnect**. Ask me to scan a new QR code.
```

エージェントは `connect(what="wechat")` で接続の案内を取得します。エージェントツールで ClawBot を使用中の場合は、エージェントに伝えます。その場合は今の接続を保ちます。SwB に ClawBot を任せる場合は、応答するエージェントを選びます。

SwB コンソールで `/connections/wechat` を開いてください。**Connect** を選択してください。WeChat で QR コードを読み取ってください。WeChat で接続を確認してください。WeChat に PIN の入力を求められた場合は、SwB コンソールに入力してください。

ClawBot との個別チャットでテキストメッセージを送ってください。同じチャットにテキストで返信が届くことを確認してください。

WeChat がセッションを終了したら、同じ画面を開いてください。**Reconnect** を選択してください。新しい QR コードを読み取ってください。

[WeChat ClawBot ブロック](/ja/docs/blocks/wechat)
