Channels Guideのロゴ

Channels Guide

コミュニティ
wentorai
Channels Guide

Configuration, troubleshooting, and operational guide for Research-Claw IM channels (Telegram, Discord, WeChat, Feishu, Slack, WhatsApp). Covers dashboard UI flow, bot token setup, QR login, config.patch restart behavior, enable/disable/delete, common errors (401, ABI, plugins.allow), and diagnostic procedures.

Add to TypingMind

概要

公開者wentorai
リポジトリResearch-Claw
スキル名Channels Guide
スター
859
フォーク
117
同梱ファイル
指示のみ
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    wentoraiがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Channels Guide」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/wentorai/Research-Claw/tree/main/skills/channels-guide
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/wentorai/Research-Claw.git /tmp/Research-Claw
mkdir -p .claude/skills
cp -r /tmp/Research-Claw/skills/channels-guide .claude/skills/wentorai-channels-guide
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでChannels Guideを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にChannels Guideを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Channels Guideは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

IM Channel Configuration

RC can receive/reply via Telegram, Discord, WeChat (微信), Feishu (飞书), QQ, Slack, WhatsApp. Channels are OC infrastructure — RC reuses them fully.

Dashboard Channel Management UI

The dashboard has a complete channel management UI in the left sidebar.

Location: Left sidebar → Extensions panel (🔗 chain-link icon) → Channels tab.

What users can do in the Channels tab:

  • View all channels with live status (connected / configured / error / disabled)
  • WeChat / WhatsApp: Click the Connect button → QR code modal opens → scan with phone
  • Enable / Disable any channel via a toggle switch (triggers config.patch → gateway restart)
  • Delete a channel via the red trash button (with confirmation modal)
  • Add Channel button at the bottom (sends a chat message asking you for help)
  • Ask Agent to Fix / Configure button on error/unconfigured channels (sends chat message)

How to guide users:

  • For WeChat / WhatsApp QR login: Direct users to the Channels tab: "请打开左侧扩展面板 → 通道标签 → 点击微信旁边的 Connect 按钮,在弹出窗口中扫码。" Do NOT generate QR codes in the chat — the dashboard QR modal handles it.
  • For bot-token channels (Telegram, Discord, etc.): Help via chat — guide them to get a token, then use config.patch to write it. Or they can click "Ask Agent to Configure".
  • The weixin_login / whatsapp_login agent tools are fallbacks for IM-only contexts (when the user is chatting from Telegram/Discord and has no dashboard access).

Connection Protocols

Bot-Token Type (Telegram / Discord / Feishu / QQ / Slack)

  1. Guide user to create a bot on the platform and obtain a token.
    • Telegram: Talk to @BotFather → /newbot → copy token.
    • Discord: Discord Developer Portal → Bot section → copy token.
    • Feishu: Open platform → create bot → App ID + App Secret.
  2. Write config via config.patch:
    • Telegram: { channels: { telegram: { botToken: "<TOKEN>", enabled: true } } }
    • Discord: { channels: { discord: { token: "<TOKEN>", enabled: true } } }
    • Feishu: { channels: { feishu: { appId: "...", appSecret: "...", enabled: true } } }
    • Others: see platform OC docs for field names.
  3. After config.patch: Gateway auto-restarts via SIGUSR1 (takes ~3–5s). The dashboard reconnects automatically. No manual restart needed.
  4. Telegram: user must send "/start" in the bot chat to receive replies.
  5. commands.native must be false (530+ tools exceed IM menu limits). sync-global-config.cjs auto-fixes this on startup.

WeChat (微信) — QR Scan

Prerequisite: openclaw-weixin plugin installed and in plugins.allow.

Primary path (dashboard): User clicks Connect in the Channels tab → QR modal → scan. The dashboard handles web.login.start → web.login.wait automatically, then triggers config.patch to restart gateway and pick up new credentials.

Fallback path (IM-only / no dashboard): Use the weixin_login agent tool:

  1. Call weixin_login { action: "start" }.
    • Returns QR code URL in markdown: ![weixin-qr](https://...).
    • Display the image to the user and prompt them to scan with WeChat.
  2. Call weixin_login { action: "wait", timeoutMs: 120000 }.
    • Blocks until the user scans or timeout.
    • On success, plugin auto-saves credentials; gateway auto-starts channel.
  3. WeChat cannot send proactive messages — replies only (contextToken mechanism).

WhatsApp — QR Scan

Primary path: Same as WeChat — user clicks Connect in the Channels tab.

Fallback path (IM-only): Use the whatsapp_login agent tool:

  1. Call whatsapp_login { action: "start" }.
    • Returns QR code as base64 data URL in markdown: ![qr](data:image/png;base64,...).
  2. Call whatsapp_login { action: "wait", timeoutMs: 120000 }.
    • Blocks until the user scans or timeout.

Config & Restart Behavior

Understanding this is critical for troubleshooting:

  1. config.patch → gateway receives SIGUSR1 → drains active tasks (up to 90s) → restarts → channels reload from new config. Dashboard auto-reconnects.
  2. Enable/Disable switch in dashboard → calls config.patch with { channels: { <id>: { enabled: true/false } } } → restart.
  3. Delete button → calls config.patch with { channels: { <id>: null } } → restart.
  4. If a channel has an invalid token (e.g., placeholder <YOUR_TOKEN>), the channel will crash on startup with 401 Unauthorized and enter an auto-restart loop (exponential backoff: 5s → 10s → 20s → ... up to 10 attempts). This is normal; it stops after 10 failures. Fix: provide correct token or disable the channel.
  5. Drain can be slow (up to 90s) if there are active agent tasks or embedded runs. This is by design — gateway waits for work to complete before restarting.

In-Channel Behavior

  • All RC tools (library, tasks, workspace, monitor) are fully available.
  • Keep replies under 2000 characters (IM message limit).
  • Do not use Markdown tables (most IM clients do not render them).
  • approval_card degrades to text: "需要审批: xxx. 回复 yes/no".
  • Media requires absolute paths via the media parameter.
  • Peer ID formats differ: WeChat xxx@im.wechat, Telegram numeric IDs.

Troubleshooting

Common Errors

SymptomCauseFix
401: Unauthorized loopInvalid or placeholder bot tokenProvide real token via config.patch or disable channel
"not configured"No credentials found for channelFor bot-token: set token in config. For WeChat: re-scan QR
"Provider not running"Channel configured but crashedCheck logs for error. Common: token expired, network issue
Channel not visiblePlugin not in plugins.allow or plugins.load.pathsAdd to both in config. See 4-point sync below
better-sqlite3 crashNative module ABI mismatchRebuild under conda Node 22 (gateway's Node version)
WeChat "not configured" after QROld default account has no tokenRe-scan QR. Dashboard uses best account for status

Diagnostic Steps

When a channel shows Error or Not Configured:

  1. Check the token: Read config via config.get or ask user. Is it a real token or a placeholder like <YOUR_TOKEN>? Placeholder = 401 errors.
  2. Check plugins.allow: The channel plugin ID must be in plugins.allow array. Example: openclaw-weixin for WeChat, telegram for Telegram (OC built-in).
  3. Check credentials path (WeChat only): Stored at ~/.openclaw/openclaw-weixin/accounts/<accountId>.json. If missing, user needs to re-scan QR.
  4. Check gateway logs: Look for [telegram], [openclaw-weixin] etc. in terminal output. Common patterns:
    • 401: Unauthorized → invalid token
    • ENOTFOUND / ETIMEDOUT → network/VPN issue
    • channel exited → channel crashed, will auto-restart
  5. Restart gateway if needed: gateway.restart (requires approval_card). Or user can Ctrl+C and re-run run.sh.

4-Point Plugin Sync (for new channel plugins)

When adding a new channel plugin, it must be registered in 4 places:

  1. config/openclaw.json → plugins.allow array
  2. config/openclaw.json → plugins.load.paths array
  3. scripts/ensure-config.cjs → REQUIRED_ALLOW array
  4. dashboard/src/utils/config-patch.ts → RC_CONFIG_DEFAULTS.plugins.allow Plus the runtime global ~/.openclaw/openclaw.json.

よくある質問

AIスキル「Channels Guide」では何ができますか?

Configuration, troubleshooting, and operational guide for Research-Claw IM channels (Telegram, Discord, WeChat, Feishu, Slack, WhatsApp). Covers dashboard UI flow, bot token setup, QR login, config.patch restart behavior, enable/disable/delete, common errors (401, ABI, plugins.allow), and diagnostic procedures.

TypingMindでChannels Guideを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Channels Guideはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにChannels Guideをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/wentorai/Research-Claw/tree/main/skills/channels-guideを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Channels Guideを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Channels Guideで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもChannels Guideを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Channels Guide」は無料ですか?

wentoraiがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇