QRコードペアリングを使用して10分以内にOpenClawをWhatsAppに接続。このガイドでは、OpenClaw v2026.2+、Node.js 22+要件、Baileysライブラリ統合、自律型AIアシスタントのセキュリティベストプラクティスを説明します。

💬

WhatsApp 連携

OpenClawをWhatsAppに接続して、AIアシスタントにメッセージに即座に回答させましょう。

エンドツーエンド暗号化 QRコードペアリング グループチャット対応

TL;DR

  • Prerequisites: Node.js 22+, OpenClaw installed
  • Configuration: Add WhatsApp section to openclaw.json
  • Time: ~10 minutes
  • Pairing: QR code authentication

Prerequisites

  • 1.

    OpenClaw installed

    Follow the installation guide if you haven't already.

  • 2.

    WhatsApp account

    You'll need an active WhatsApp account for pairing.

  • 3.

    Mobile device with WhatsApp

    Required for QR code scanning during setup.

Setup Steps

Step 1: Configure openclaw.json

Add the WhatsApp configuration to your openclaw.json file:

{
  "channels": {
    "whatsapp": {
      "enabled": true,
      "allowFrom": ["*"]
    }
  }
}

Step 2: Start OpenClaw

Start OpenClaw with WhatsApp enabled:

openclaw start

You'll see a QR code in the console. Scan it with your WhatsApp mobile app.

Step 3: Pair with QR Code

Open WhatsApp on your phone and go to:

  1. Settings → Linked Devices
  2. Tap "Link a Device"
  3. Scan the QR code from the console

🎉 Connected! Your WhatsApp AI assistant is now ready.

Advanced Configuration

Allow Specific Senders

Restrict who can interact with your AI assistant:

{
  "channels": {
    "whatsapp": {
      "enabled": true,
      "allowFrom": ["+1234567890", "+0987654321"]
    }
  }
}

Troubleshooting

QR code not scanning?

Make sure your phone's screen brightness is at maximum and the QR code is fully visible in the console.

Session disconnected?

Restart OpenClaw and re-scan the QR code. WhatsApp sessions may expire after some time.

Messages not being received?

Check that your openclaw.json has "enabled": true for the WhatsApp channel.

よくある質問

OpenClawはWhatsApp Businessに対応していますか?

はい、OpenClawはWhatsApp個人版とWhatsApp Businessの両方に対応しています。セットアッププロセスはどちらのアカウントタイプでも同じです。

WhatsAppペアリングの有効期間はどのくらいですか?

WhatsAppセッションは通常30日間有効で、再認証が必要です。セッションが期限切れになる前にOpenClawが通知します。

OpenClawを使用している間にWhatsApp Webを使用できますか?

いいえ、同時に使用できません。OpenClawはモバイルで動作するため、通常通りスマホでWhatsAppを使用し続けることができます。

WhatsAppの会話データはどこに保存されますか?

OpenClawによって処理されるすべてのWhatsApp会話は地元のサーバーに残ります。クラウドロギングを明示的に設定しない限り、メッセージデータがサードパーティのサーバーに送信されることはありません。