mirror of
https://github.com/sipeed/picoclaw.git
synced 2026-06-12 18:08:54 +00:00
60a7098fd3
- Add BaiduSearchConfig struct and register in WebToolsConfig/defaults - Insert Baidu Search in priority chain: DuckDuckGo > Baidu > GLM Search - Use perplexityTimeout (30s) — Qianfan is LLM-based - Fix response parsing: use references[] field per API spec - Add baidu_search block to config.example.json docs: sync configuration.md and README Documentation table across all languages - Complete truncated configuration.md for fr/ja/pt-br/vi/zh: add Spawn async flow diagram, Providers table, Model Configuration (all vendors, examples, load balancing, migration), Provider Architecture, Scheduled Tasks, and Advanced Topics links - Add Hooks/Steering/SubTurn entries to Documentation table in all 8 READMEs (en/zh/fr/id/it/ja/pt-br/vi), ordered before Troubleshooting - Add Baidu Search row to web search table in all 8 READMEs and tools_configuration.md (en + 5 i18n); zh README reorders search engines with China-friendly options first - Add Matrix channel docs translations (fr/ja/pt-br/vi) - Add Weixin channel to chat-apps.md and all README Channels tables Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
659 lines
21 KiB
Markdown
659 lines
21 KiB
Markdown
# 💬 チャットアプリ設定
|
||
|
||
> [README](../../README.ja.md) に戻る
|
||
|
||
## 💬 チャットアプリ連携
|
||
|
||
PicoClaw は複数のチャットプラットフォームをサポートしており、Agent をどこにでも接続できます。
|
||
|
||
> **注意**: すべての Webhook ベースのチャネル(LINE、WeCom など)は、共有 Gateway HTTP サーバー(`gateway.host`:`gateway.port`、デフォルト `127.0.0.1:18790`)上で提供されます。チャネルごとにポートを設定する必要はありません。注意:飛書(Feishu)は WebSocket/SDK モードを使用し、共有 HTTP Webhook サーバーは使用しません。
|
||
|
||
### チャネル一覧
|
||
|
||
| チャネル | セットアップ難易度 | 特徴 | ドキュメント |
|
||
| -------------------- | ------------------ | ----------------------------------------- | --------------------------------------------------------------------------------------------------------------- |
|
||
| **Telegram** | ⭐ 簡単 | 推奨、音声テキスト変換対応、ロングポーリング(公開 IP 不要) | [ドキュメント](../channels/telegram/README.ja.md) |
|
||
| **Discord** | ⭐ 簡単 | Socket Mode、グループ/DM 対応、Bot エコシステム充実 | [ドキュメント](../channels/discord/README.ja.md) |
|
||
| **WhatsApp** | ⭐ 簡単 | ネイティブ (QR スキャン) または Bridge URL | [ドキュメント](#whatsapp) |
|
||
| **微信 (Weixin)** | ⭐ 簡単 | ネイティブ QR スキャン(Tencent iLink API)| [ドキュメント](#weixin) |
|
||
| **Slack** | ⭐ 簡単 | **Socket Mode** (公開 IP 不要)、エンタープライズ対応 | [ドキュメント](../channels/slack/README.ja.md) |
|
||
| **Matrix** | ⭐⭐ 中程度 | フェデレーションプロトコル、セルフホスト対応 | [ドキュメント](../channels/matrix/README.ja.md) |
|
||
| **QQ** | ⭐⭐ 中程度 | 公式ボット API、中国コミュニティ向け | [ドキュメント](../channels/qq/README.ja.md) |
|
||
| **DingTalk** | ⭐⭐ 中程度 | Stream モード(公開 IP 不要)、企業向け | [ドキュメント](../channels/dingtalk/README.ja.md) |
|
||
| **LINE** | ⭐⭐⭐ やや難 | HTTPS Webhook が必要 | [ドキュメント](../channels/line/README.ja.md) |
|
||
| **WeCom (企業微信)** | ⭐⭐⭐ やや難 | グループ Bot (Webhook)、カスタムアプリ (API)、AI Bot 対応 | [Bot](../channels/wecom/wecom_bot/README.ja.md) / [App](../channels/wecom/wecom_app/README.ja.md) / [AI Bot](../channels/wecom/wecom_aibot/README.ja.md) |
|
||
| **Feishu (飛書)** | ⭐⭐⭐ やや難 | エンタープライズコラボレーション、機能豊富 | [ドキュメント](../channels/feishu/README.ja.md) |
|
||
| **IRC** | ⭐⭐ 中程度 | サーバー + TLS 設定 | [ドキュメント](#irc) |
|
||
| **OneBot** | ⭐⭐ 中程度 | NapCat/Go-CQHTTP 互換、コミュニティエコシステム充実 | [ドキュメント](../channels/onebot/README.ja.md) |
|
||
| **MaixCam** | ⭐ 簡単 | Sipeed AI カメラハードウェア統合チャネル | [ドキュメント](../channels/maixcam/README.ja.md) |
|
||
| **Pico** | ⭐ 簡単 | PicoClaw ネイティブプロトコルチャネル | |
|
||
|
||
---
|
||
|
||
<a id="telegram"></a>
|
||
<details>
|
||
<summary><b>Telegram</b>(推奨)</summary>
|
||
|
||
**1. Bot を作成**
|
||
|
||
* Telegram を開き、`@BotFather` を検索
|
||
* `/newbot` を送信し、プロンプトに従う
|
||
* Token をコピー
|
||
|
||
**2. 設定**
|
||
|
||
```json
|
||
{
|
||
"channels": {
|
||
"telegram": {
|
||
"enabled": true,
|
||
"token": "YOUR_BOT_TOKEN",
|
||
"allow_from": ["YOUR_USER_ID"]
|
||
}
|
||
}
|
||
}
|
||
```
|
||
|
||
> Telegram の `@userinfobot` から User ID を取得できます。
|
||
|
||
**3. 実行**
|
||
|
||
```bash
|
||
picoclaw gateway
|
||
```
|
||
|
||
**4. Telegram コマンドメニュー(起動時に自動登録)**
|
||
|
||
PicoClaw は統一されたコマンド定義を使用します。起動時に Telegram がサポートするコマンド(例: `/start`、`/help`、`/show`、`/list`)を Bot コマンドメニューに自動登録し、メニュー表示と実際の動作を一致させます。
|
||
Telegram 側はコマンドメニュー登録機能を保持し、汎用コマンドの実行は Agent Loop 内の commands executor で統一的に処理されます。
|
||
|
||
ネットワークや API の一時的なエラーで登録に失敗しても、チャネルの起動はブロックされません。システムがバックグラウンドで自動リトライします。
|
||
|
||
</details>
|
||
|
||
<a id="discord"></a>
|
||
<details>
|
||
<summary><b>Discord</b></summary>
|
||
|
||
**1. Bot を作成**
|
||
|
||
* <https://discord.com/developers/applications> にアクセス
|
||
* アプリケーションを作成 → Bot → Bot を追加
|
||
* Bot Token をコピー
|
||
|
||
**2. Intents を有効化**
|
||
|
||
* Bot 設定で **MESSAGE CONTENT INTENT** を有効化
|
||
* (オプション)メンバーデータに基づくホワイトリストが必要な場合は **SERVER MEMBERS INTENT** を有効化
|
||
|
||
**3. User ID を取得**
|
||
|
||
* Discord 設定 → 詳細設定 → **開発者モード** を有効化
|
||
* アバターを右クリック → **ユーザー ID をコピー**
|
||
|
||
**4. 設定**
|
||
|
||
```json
|
||
{
|
||
"channels": {
|
||
"discord": {
|
||
"enabled": true,
|
||
"token": "YOUR_BOT_TOKEN",
|
||
"allow_from": ["YOUR_USER_ID"]
|
||
}
|
||
}
|
||
}
|
||
```
|
||
|
||
**5. Bot を招待**
|
||
|
||
* OAuth2 → URL Generator
|
||
* Scopes: `bot`
|
||
* Bot Permissions: `Send Messages`, `Read Message History`
|
||
* 生成された招待リンクを開き、Bot をサーバーに追加
|
||
|
||
**オプション:グループトリガーモード**
|
||
|
||
デフォルトでは Bot はサーバーチャネル内のすべてのメッセージに応答します。@メンション時のみ応答するには:
|
||
|
||
```json
|
||
{
|
||
"channels": {
|
||
"discord": {
|
||
"group_trigger": { "mention_only": true }
|
||
}
|
||
}
|
||
}
|
||
```
|
||
|
||
キーワードプレフィックスでトリガーすることもできます(例: `!bot`):
|
||
|
||
```json
|
||
{
|
||
"channels": {
|
||
"discord": {
|
||
"group_trigger": { "prefixes": ["!bot"] }
|
||
}
|
||
}
|
||
}
|
||
```
|
||
|
||
**6. 実行**
|
||
|
||
```bash
|
||
picoclaw gateway
|
||
```
|
||
|
||
</details>
|
||
|
||
<a id="whatsapp"></a>
|
||
<details>
|
||
<summary><b>WhatsApp</b>(ネイティブ whatsmeow)</summary>
|
||
|
||
PicoClaw は 2 つの WhatsApp 接続方式をサポートしています:
|
||
|
||
- **ネイティブ(推奨):** プロセス内で [whatsmeow](https://github.com/tulir/whatsmeow) を使用。独立した Bridge は不要です。`"use_native": true` に設定し、`bridge_url` を空にします。初回実行時に WhatsApp で QR コードをスキャン(リンクデバイス)。セッションはワークスペース配下(例: `workspace/whatsapp/`)に保存されます。ネイティブチャネルは**オプション**ビルドで、`-tags whatsapp_native` でコンパイルします(例: `make build-whatsapp-native` または `go build -tags whatsapp_native ./cmd/...`)。
|
||
- **Bridge:** 外部 WebSocket Bridge に接続。`bridge_url`(例: `ws://localhost:3001`)を設定し、`use_native` を false のままにします。
|
||
|
||
**設定(ネイティブ)**
|
||
|
||
```json
|
||
{
|
||
"channels": {
|
||
"whatsapp": {
|
||
"enabled": true,
|
||
"use_native": true,
|
||
"session_store_path": "",
|
||
"allow_from": []
|
||
}
|
||
}
|
||
}
|
||
```
|
||
|
||
`session_store_path` が空の場合、セッションは `<workspace>/whatsapp/` に保存されます。`picoclaw gateway` を実行し、初回実行時にターミナルに表示される QR コードをスキャンしてください(WhatsApp → リンクデバイス)。
|
||
|
||
</details>
|
||
|
||
<a id="weixin"></a>
|
||
<details>
|
||
<summary><b>微信 (Weixin)</b></summary>
|
||
|
||
PicoClaw は Tencent iLink 公式 API を使用して WeChat 個人アカウントへの接続をサポートしています。
|
||
|
||
**1. ログイン**
|
||
|
||
インタラクティブな QR ログインフローを実行します:
|
||
```bash
|
||
picoclaw onboard weixin
|
||
```
|
||
WeChat モバイルアプリで表示された QR コードをスキャンしてください。ログイン成功後、トークンが設定ファイルに保存されます。
|
||
|
||
**2. 設定**
|
||
|
||
(オプション)ボットと会話できるユーザーを制限するために `allow_from` に WeChat ユーザー ID を追加します:
|
||
```json
|
||
{
|
||
"channels": {
|
||
"weixin": {
|
||
"enabled": true,
|
||
"token": "YOUR_TOKEN",
|
||
"allow_from": ["YOUR_USER_ID"]
|
||
}
|
||
}
|
||
}
|
||
```
|
||
|
||
**3. 実行**
|
||
```bash
|
||
picoclaw gateway
|
||
```
|
||
|
||
</details>
|
||
|
||
<a id="matrix"></a>
|
||
<details>
|
||
<summary><b>Matrix</b></summary>
|
||
|
||
**1. Bot アカウントを準備**
|
||
|
||
* お好みの homeserver(例: `https://matrix.org` またはセルフホスト)を使用
|
||
* Bot ユーザーを作成し、access token を取得
|
||
|
||
**2. 設定**
|
||
|
||
```json
|
||
{
|
||
"channels": {
|
||
"matrix": {
|
||
"enabled": true,
|
||
"homeserver": "https://matrix.org",
|
||
"user_id": "@your-bot:matrix.org",
|
||
"access_token": "YOUR_MATRIX_ACCESS_TOKEN",
|
||
"allow_from": []
|
||
}
|
||
}
|
||
}
|
||
```
|
||
|
||
**3. 実行**
|
||
|
||
```bash
|
||
picoclaw gateway
|
||
```
|
||
|
||
すべてのオプション(`device_id`、`join_on_invite`、`group_trigger`、`placeholder`、`reasoning_channel_id`)については [Matrix チャネル設定ガイド](../channels/matrix/README.md) を参照してください。
|
||
|
||
</details>
|
||
|
||
<a id="qq"></a>
|
||
<details>
|
||
<summary><b>QQ</b></summary>
|
||
|
||
**クイックセットアップ(推奨)**
|
||
|
||
QQ 開放プラットフォームでは、OpenClaw 互換ボットのワンクリックセットアップページが提供されています:
|
||
|
||
1. [QQ Bot クイックスタート](https://q.qq.com/qqbot/openclaw/index.html) を開き、QR コードをスキャンしてログイン
|
||
2. ボットが自動的に作成されます — **App ID** と **App Secret** をコピー
|
||
3. PicoClaw を設定:
|
||
|
||
```json
|
||
{
|
||
"channels": {
|
||
"qq": {
|
||
"enabled": true,
|
||
"app_id": "YOUR_APP_ID",
|
||
"app_secret": "YOUR_APP_SECRET",
|
||
"allow_from": []
|
||
}
|
||
}
|
||
}
|
||
```
|
||
|
||
4. `picoclaw gateway` を実行し、QQ を開いてボットとチャット
|
||
|
||
> App Secret は一度しか表示されません。すぐに保存してください — 再度表示するとリセットされます。
|
||
>
|
||
> クイックセットアップで作成されたボットは、最初は作成者のみが使用でき、グループチャットには対応していません。グループアクセスを有効にするには、[QQ 開放プラットフォーム](https://q.qq.com/) でサンドボックスモードを設定してください。
|
||
|
||
**手動セットアップ**
|
||
|
||
ボットを手動で作成する場合:
|
||
|
||
* [QQ 開放プラットフォーム](https://q.qq.com/) にログインして開発者登録
|
||
* QQ ボットを作成 — アバターと名前をカスタマイズ
|
||
* ボット設定から **App ID** と **App Secret** をコピー
|
||
* 上記の設定を行い、`picoclaw gateway` を実行
|
||
|
||
</details>
|
||
|
||
<a id="slack"></a>
|
||
<details>
|
||
<summary><b>Slack</b></summary>
|
||
|
||
**1. Slack App を作成**
|
||
|
||
* [Slack API](https://api.slack.com/apps) にアクセスして新しいアプリを作成
|
||
* **OAuth & Permissions** で Bot スコープを追加:`chat:write`、`app_mentions:read`、`im:history`、`im:read`、`im:write`
|
||
* アプリをワークスペースにインストール
|
||
* **Bot Token**(`xoxb-...`)と **App-Level Token**(`xapp-...`、Socket Mode を有効にして取得)をコピー
|
||
|
||
**2. 設定**
|
||
|
||
```json
|
||
{
|
||
"channels": {
|
||
"slack": {
|
||
"enabled": true,
|
||
"bot_token": "xoxb-YOUR-BOT-TOKEN",
|
||
"app_token": "xapp-YOUR-APP-TOKEN",
|
||
"allow_from": []
|
||
}
|
||
}
|
||
}
|
||
```
|
||
|
||
**3. 実行**
|
||
|
||
```bash
|
||
picoclaw gateway
|
||
```
|
||
|
||
</details>
|
||
|
||
<a id="irc"></a>
|
||
<details>
|
||
<summary><b>IRC</b></summary>
|
||
|
||
**1. 設定**
|
||
|
||
```json
|
||
{
|
||
"channels": {
|
||
"irc": {
|
||
"enabled": true,
|
||
"server": "irc.libera.chat:6697",
|
||
"tls": true,
|
||
"nick": "picoclaw-bot",
|
||
"channels": ["#your-channel"],
|
||
"password": "",
|
||
"allow_from": []
|
||
}
|
||
}
|
||
}
|
||
```
|
||
|
||
オプション:NickServ 認証用の `nickserv_password`、SASL 認証用の `sasl_user`/`sasl_password`。
|
||
|
||
**2. 実行**
|
||
|
||
```bash
|
||
picoclaw gateway
|
||
```
|
||
|
||
ボットは IRC サーバーに接続し、指定されたチャネルに参加します。
|
||
|
||
</details>
|
||
|
||
<a id="dingtalk"></a>
|
||
<details>
|
||
<summary><b>DingTalk</b></summary>
|
||
|
||
**1. Bot を作成**
|
||
|
||
* [開放プラットフォーム](https://open.dingtalk.com/) にアクセス
|
||
* 内部アプリを作成
|
||
* Client ID と Client Secret をコピー
|
||
|
||
**2. 設定**
|
||
|
||
```json
|
||
{
|
||
"channels": {
|
||
"dingtalk": {
|
||
"enabled": true,
|
||
"client_id": "YOUR_CLIENT_ID",
|
||
"client_secret": "YOUR_CLIENT_SECRET",
|
||
"allow_from": []
|
||
}
|
||
}
|
||
}
|
||
```
|
||
|
||
> `allow_from` を空にするとすべてのユーザーを許可します。DingTalk ユーザー ID を指定してアクセスを制限することもできます。
|
||
|
||
**3. 実行**
|
||
|
||
```bash
|
||
picoclaw gateway
|
||
```
|
||
|
||
</details>
|
||
|
||
<a id="line"></a>
|
||
<details>
|
||
<summary><b>LINE</b></summary>
|
||
|
||
**1. LINE 公式アカウントを作成**
|
||
|
||
- [LINE Developers Console](https://developers.line.biz/) にアクセス
|
||
- Provider を作成 → Messaging API チャネルを作成
|
||
- **Channel Secret** と **Channel Access Token** をコピー
|
||
|
||
**2. 設定**
|
||
|
||
```json
|
||
{
|
||
"channels": {
|
||
"line": {
|
||
"enabled": true,
|
||
"channel_secret": "YOUR_CHANNEL_SECRET",
|
||
"channel_access_token": "YOUR_CHANNEL_ACCESS_TOKEN",
|
||
"webhook_path": "/webhook/line",
|
||
"allow_from": []
|
||
}
|
||
}
|
||
}
|
||
```
|
||
|
||
> LINE Webhook は共有 Gateway サーバー(`gateway.host`:`gateway.port`、デフォルト `127.0.0.1:18790`)上で提供されます。
|
||
|
||
**3. Webhook URL を設定**
|
||
|
||
LINE は HTTPS Webhook が必要です。リバースプロキシまたはトンネルを使用してください:
|
||
|
||
```bash
|
||
# 例:ngrok を使用(Gateway デフォルトポートは 18790)
|
||
ngrok http 18790
|
||
```
|
||
|
||
LINE Developers Console で Webhook URL を `https://your-domain/webhook/line` に設定し、**Use webhook** を有効にしてください。
|
||
|
||
**4. 実行**
|
||
|
||
```bash
|
||
picoclaw gateway
|
||
```
|
||
|
||
> グループチャットでは、Bot は @メンション時のみ応答します。返信は元のメッセージを引用します。
|
||
|
||
</details>
|
||
|
||
<a id="feishu"></a>
|
||
<details>
|
||
<summary><b>Feishu (飛書)</b></summary>
|
||
|
||
PicoClaw は WebSocket/SDK モードで飛書に接続します — 公開 Webhook URL やコールバックサーバーは不要です。
|
||
|
||
**1. アプリを作成**
|
||
|
||
* [飛書開放プラットフォーム](https://open.feishu.cn/) にアクセスしてアプリケーションを作成
|
||
* アプリ設定で **ボット** 機能を有効化
|
||
* バージョンを作成してアプリを公開(アプリは公開しないと有効になりません)
|
||
* **App ID**(`cli_` で始まる)と **App Secret** をコピー
|
||
|
||
**2. 設定**
|
||
|
||
```json
|
||
{
|
||
"channels": {
|
||
"feishu": {
|
||
"enabled": true,
|
||
"app_id": "cli_xxx",
|
||
"app_secret": "YOUR_APP_SECRET",
|
||
"allow_from": []
|
||
}
|
||
}
|
||
}
|
||
```
|
||
|
||
オプション:`encrypt_key` と `verification_token` でイベント暗号化(本番環境推奨)。
|
||
|
||
**3. 実行してチャット**
|
||
|
||
```bash
|
||
picoclaw gateway
|
||
```
|
||
|
||
飛書を開き、ボット名を検索してチャットを開始できます。ボットをグループに追加することもできます — `group_trigger.mention_only: true` を設定すると @メンション時のみ応答します。
|
||
|
||
詳細なオプションについては [飛書チャネル設定ガイド](../channels/feishu/README.ja.md) を参照してください。
|
||
|
||
</details>
|
||
|
||
<a id="wecom"></a>
|
||
<details>
|
||
<summary><b>WeCom (企業微信)</b></summary>
|
||
|
||
PicoClaw は 3 種類の WeCom 統合をサポートしています:
|
||
|
||
**方式 1: グループ Bot (Bot)** — セットアップ簡単、グループチャット対応
|
||
**方式 2: カスタムアプリ (App)** — より多機能、プロアクティブメッセージング、プライベートチャットのみ
|
||
**方式 3: AI Bot** — 公式 AI Bot、ストリーミング返信、グループ・プライベートチャット対応
|
||
|
||
詳細なセットアップ手順は [WeCom AI Bot 設定ガイド](../channels/wecom/wecom_aibot/README.ja.md) を参照してください。
|
||
|
||
**クイックセットアップ — グループ Bot:**
|
||
|
||
**1. Bot を作成**
|
||
|
||
* WeCom 管理コンソール → グループチャット → グループ Bot を追加
|
||
* Webhook URL をコピー(形式:`https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=xxx`)
|
||
|
||
**2. 設定**
|
||
|
||
```json
|
||
{
|
||
"channels": {
|
||
"wecom": {
|
||
"enabled": true,
|
||
"token": "YOUR_TOKEN",
|
||
"encoding_aes_key": "YOUR_ENCODING_AES_KEY",
|
||
"webhook_url": "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=YOUR_KEY",
|
||
"webhook_path": "/webhook/wecom",
|
||
"allow_from": []
|
||
}
|
||
}
|
||
}
|
||
```
|
||
|
||
> WeCom Webhook は共有 Gateway サーバー(`gateway.host`:`gateway.port`、デフォルト `127.0.0.1:18790`)上で提供されます。
|
||
|
||
**クイックセットアップ — カスタムアプリ:**
|
||
|
||
**1. アプリを作成**
|
||
|
||
* WeCom 管理コンソール → アプリ管理 → アプリを作成
|
||
* **AgentId** と **Secret** をコピー
|
||
* 「マイ企業」ページで **CorpID** をコピー
|
||
|
||
**2. メッセージ受信を設定**
|
||
|
||
* アプリ詳細で「メッセージ受信」→「API を設定」をクリック
|
||
* URL を `http://your-server:18790/webhook/wecom-app` に設定
|
||
* **Token** と **EncodingAESKey** を生成
|
||
|
||
**3. 設定**
|
||
|
||
```json
|
||
{
|
||
"channels": {
|
||
"wecom_app": {
|
||
"enabled": true,
|
||
"corp_id": "wwxxxxxxxxxxxxxxxx",
|
||
"corp_secret": "YOUR_CORP_SECRET",
|
||
"agent_id": 1000002,
|
||
"token": "YOUR_TOKEN",
|
||
"encoding_aes_key": "YOUR_ENCODING_AES_KEY",
|
||
"webhook_path": "/webhook/wecom-app",
|
||
"allow_from": []
|
||
}
|
||
}
|
||
}
|
||
```
|
||
|
||
**4. 実行**
|
||
|
||
```bash
|
||
picoclaw gateway
|
||
```
|
||
|
||
> **注意**: WeCom Webhook コールバックは Gateway ポート(デフォルト 18790)で提供されます。HTTPS にはリバースプロキシを使用してください。
|
||
|
||
**クイックセットアップ — AI Bot:**
|
||
|
||
**1. AI Bot を作成**
|
||
|
||
* WeCom 管理コンソール → アプリ管理 → AI Bot
|
||
* AI Bot 設定でコールバック URL を設定:`http://your-server:18790/webhook/wecom-aibot`
|
||
* **Token** をコピーし、「ランダム生成」をクリックして **EncodingAESKey** を取得
|
||
|
||
**2. 設定**
|
||
|
||
```json
|
||
{
|
||
"channels": {
|
||
"wecom_aibot": {
|
||
"enabled": true,
|
||
"token": "YOUR_TOKEN",
|
||
"encoding_aes_key": "YOUR_43_CHAR_ENCODING_AES_KEY",
|
||
"webhook_path": "/webhook/wecom-aibot",
|
||
"allow_from": [],
|
||
"welcome_message": "こんにちは!何かお手伝いできますか?",
|
||
"processing_message": "⏳ Processing, please wait. The results will be sent shortly."
|
||
}
|
||
}
|
||
}
|
||
```
|
||
|
||
**3. 実行**
|
||
|
||
```bash
|
||
picoclaw gateway
|
||
```
|
||
|
||
> **注意**: WeCom AI Bot はストリーミングプルプロトコルを使用しており、返信タイムアウトの心配はありません。長時間タスク(30 秒超)は自動的に `response_url` プッシュ配信に切り替わります。
|
||
|
||
</details>
|
||
|
||
<a id="onebot"></a>
|
||
<details>
|
||
<summary><b>OneBot(OneBot プロトコル経由の QQ)</b></summary>
|
||
|
||
OneBot は QQ ボット向けのオープンプロトコルです。PicoClaw は OneBot v11 互換の実装(例:[Lagrange](https://github.com/LagrangeDev/Lagrange.Core)、[NapCat](https://github.com/NapNeko/NapCatQQ))に WebSocket で接続します。
|
||
|
||
**1. OneBot 実装をセットアップ**
|
||
|
||
OneBot v11 互換の QQ ボットフレームワークをインストールして実行します。WebSocket サーバーを有効にしてください。
|
||
|
||
**2. 設定**
|
||
|
||
```json
|
||
{
|
||
"channels": {
|
||
"onebot": {
|
||
"enabled": true,
|
||
"ws_url": "ws://127.0.0.1:8080",
|
||
"access_token": "",
|
||
"allow_from": []
|
||
}
|
||
}
|
||
}
|
||
```
|
||
|
||
| フィールド | 説明 |
|
||
|-------|-------------|
|
||
| `ws_url` | OneBot 実装の WebSocket URL |
|
||
| `access_token` | 認証用アクセストークン(OneBot 側で設定している場合) |
|
||
| `reconnect_interval` | 再接続間隔(秒)(デフォルト:5) |
|
||
|
||
**3. 実行**
|
||
|
||
```bash
|
||
picoclaw gateway
|
||
```
|
||
|
||
</details>
|
||
|
||
<a id="maixcam"></a>
|
||
<details>
|
||
<summary><b>MaixCam</b></summary>
|
||
|
||
Sipeed AI カメラハードウェア向けの統合チャネルです。
|
||
|
||
```json
|
||
{
|
||
"channels": {
|
||
"maixcam": {
|
||
"enabled": true
|
||
}
|
||
}
|
||
}
|
||
```
|
||
|
||
```bash
|
||
picoclaw gateway
|
||
```
|
||
|
||
</details>
|