# WeChat ClawBot

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

Connectez-vous à SwB en tant que propriétaire. Donnez ce prompt à un agent qui a les droits du propriétaire.

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.
```

L’agent appelle `connect(what="wechat")` pour obtenir les instructions. Dites à l’agent si votre outil pour agents utilise déjà ClawBot. Dans ce cas, gardez cette connexion. Si SwB gère ClawBot, choisissez quel agent répond.

Ouvrez `/connections/wechat` dans la console SwB. Sélectionnez **Connect**. Scannez le code QR avec WeChat. Confirmez la connexion dans WeChat. Si WeChat demande un code PIN, saisissez ce code dans la console SwB.

Envoyez un message texte à ClawBot dans votre conversation privée. Vérifiez que la réponse s’affiche dans la même conversation.

Si WeChat ferme la session, ouvrez la même page. Sélectionnez **Reconnect**. Scannez un nouveau code QR.

[Bloc WeChat ClawBot](/fr/docs/blocks/wechat)
