> ## Documentation Index
> Fetch the complete documentation index at: https://docs.elkapi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenClaw Manager — Feishu チャネル設定

> OpenClaw Manager で Feishu ボットを作成・設定する手順を詳しく解説。企業カスタムアプリの作成、権限設定、イベントサブスクリプション、ペアリングコード連携までの完全ガイド。

## はじめに

このチュートリアルでは、OpenClaw Manager で Feishu ボットを作成・設定する手順を説明します。設定完了後、Feishu Bot が ElkAPI の AI モデルを使用して、Feishu 内でユーザーとインテリジェントな会話を行えるようになります。

<Note>
  **前提条件：** [OpenClaw Manager のデプロイ](/ja/integrations/platform/openclaw-manager)が完了し、Manager が起動中で管理画面にアクセスできることをご確認ください。
</Note>

## ステップ 1：Feishu 企業カスタムアプリを作成

1. [Feishu オープンプラットフォーム](https://open.feishu.cn/app)にアクセスし、ログイン後 **企業カスタムアプリを作成** をクリック

<Frame>
  <img src="https://mintcdn.com/apicore/LGVVJQGJwbbJu2RM/images/integrations/openclaw-manager/feishu/create-app.png?fit=max&auto=format&n=LGVVJQGJwbbJu2RM&q=85&s=11336ed9016eaa3edea92f8acfe9a938" alt="企業カスタムアプリを作成" width="1902" height="933" data-path="images/integrations/openclaw-manager/feishu/create-app.png" />
</Frame>

2. アプリ名と説明を入力し、アプリアイコンをアップロード

<Frame>
  <img src="https://mintcdn.com/apicore/LGVVJQGJwbbJu2RM/images/integrations/openclaw-manager/feishu/app-info.png?fit=max&auto=format&n=LGVVJQGJwbbJu2RM&q=85&s=998bc52eef9411a4f01489f21db076ef" alt="アプリ情報を入力" width="830" height="723" data-path="images/integrations/openclaw-manager/feishu/app-info.png" />
</Frame>

<caption>*アプリ名と説明を入力*</caption>

## ステップ 2：アプリ権限を設定

1. アプリ詳細ページに入り、左メニューの **権限管理** をクリック

2. **一括有効化** をクリックし、以下の JSON 設定を貼り付け：

```json theme={null} theme={null}
{
  "scopes": {
    "tenant": [
      "contact:contact.base:readonly",
      "contact:user.email:readonly",
      "im:chat.members:bot_access",
      "im:message",
      "im:message.group_at_msg:readonly",
      "im:message.p2p_msg:readonly",
      "im:message:readonly",
      "im:message:send_as_bot",
      "cardkit:card:write"
    ]
  }
}
```

<Frame>
  <img src="https://mintcdn.com/apicore/LGVVJQGJwbbJu2RM/images/integrations/openclaw-manager/feishu/permissions.png?fit=max&auto=format&n=LGVVJQGJwbbJu2RM&q=85&s=5bdbb1f242b5f76be8c9f303d6c489e1" alt="権限を設定" width="1902" height="918" data-path="images/integrations/openclaw-manager/feishu/permissions.png" />
</Frame>

<caption>*必要な権限を一括有効化*</caption>

3. 確認をクリック

## ステップ 3：認証情報を取得

1. 左メニューの **認証情報と基本情報** をクリック

2. **App ID**（形式：`cli_xxxxxxxxxx`）と **App Secret** をコピー

<Frame>
  <img src="https://mintcdn.com/apicore/LGVVJQGJwbbJu2RM/images/integrations/openclaw-manager/feishu/credentials.png?fit=max&auto=format&n=LGVVJQGJwbbJu2RM&q=85&s=8f30d4ac67dfae00b87709acace63c44" alt="認証情報を取得" width="1905" height="944" data-path="images/integrations/openclaw-manager/feishu/credentials.png" />
</Frame>

<caption>*App ID と App Secret をコピー*</caption>

<Warning>
  **App Secret を安全に保管してください**。他人に漏らさないでください。
</Warning>

## ステップ 4：Manager でインスタンスを作成

1. OpenClaw Manager 管理画面を開く（`http://127.0.0.1:51942`）

2. **+ 新規インスタンス** をクリック

3. **インスタンス名を入力** — 例：`my-feishu-bot`

<Frame>
  <img src="https://mintcdn.com/apicore/LGVVJQGJwbbJu2RM/images/integrations/openclaw-manager/manager/step-name.png?fit=max&auto=format&n=LGVVJQGJwbbJu2RM&q=85&s=940ab7cfe9efde5fd476f43cc7904074" alt="インスタンス名を入力" width="1911" height="948" data-path="images/integrations/openclaw-manager/manager/step-name.png" />
</Frame>

4. **AI モデルを選択** — 使用するモデルを選択

<Frame>
  <img src="https://mintcdn.com/fuhu/rGvMBqASJ4r9KbNS/images/integrations/openclaw-manager/manager/step-model.png?fit=max&auto=format&n=rGvMBqASJ4r9KbNS&q=85&s=010f34ffb9ccd05046bcd8d8432a2ecc" alt="モデルを選択" width="1905" height="860" data-path="images/integrations/openclaw-manager/manager/step-model.png" data-path="images/integrations/openclaw-manager/manager/step-model.png" />
</Frame>

5. **ElkAPI API Key を入力** — `sk-` で始まる API キーを入力

<Frame>
  <img src="https://mintcdn.com/fuhu/rGvMBqASJ4r9KbNS/images/integrations/openclaw-manager/manager/step-key.png?fit=max&auto=format&n=rGvMBqASJ4r9KbNS&q=85&s=bb8c5aa494bc674523b18fe68cc1a26e" alt="API Key を入力" width="1905" height="948" data-path="images/integrations/openclaw-manager/manager/step-key.png" data-path="images/integrations/openclaw-manager/manager/step-key.png" />
</Frame>

6. **チャネルを選択** — **Feishu** を選択

7. **認証情報を入力** — App ID と App Secret を対応するフィールドに貼り付け

<Frame>
  <img src="https://mintcdn.com/apicore/LGVVJQGJwbbJu2RM/images/integrations/openclaw-manager/feishu/step-channel.png?fit=max&auto=format&n=LGVVJQGJwbbJu2RM&q=85&s=b2dec76a457878bee838b1d8d39025e5" alt="Feishu チャネルを設定" width="1899" height="939" data-path="images/integrations/openclaw-manager/feishu/step-channel.png" />
</Frame>

<caption>*Feishu App ID と App Secret を入力*</caption>

8. **作成** をクリックしてインスタンス作成を完了

## ステップ 5：イベントサブスクリプションを設定

インスタンス作成後、Feishu オープンプラットフォームでイベントサブスクリプションを設定する必要があります：

1. Feishu オープンプラットフォームに戻り、アプリ詳細に入る

2. 左メニューの **イベントとコールバック** をクリック

3. **サブスクリプション方式** を「**ロングコネクション**」に設定

<Frame>
  <img src="https://mintcdn.com/apicore/LGVVJQGJwbbJu2RM/images/integrations/openclaw-manager/feishu/event-method.png?fit=max&auto=format&n=LGVVJQGJwbbJu2RM&q=85&s=ab9b1c9e0ba08a61faafd0ded4ffcce4" alt="サブスクリプション方式を選択" width="1896" height="684" data-path="images/integrations/openclaw-manager/feishu/event-method.png" />
</Frame>

<caption>*ロングコネクションサブスクリプション方式を選択*</caption>

4. **イベントを追加** をクリックし、`im.message.receive_v1`（メッセージ受信）を検索して追加

<Frame>
  <img src="https://mintcdn.com/apicore/LGVVJQGJwbbJu2RM/images/integrations/openclaw-manager/feishu/event-add.png?fit=max&auto=format&n=LGVVJQGJwbbJu2RM&q=85&s=a6edad065584285f6f8f2a89207afaaa" alt="イベントを追加" width="1923" height="936" data-path="images/integrations/openclaw-manager/feishu/event-add.png" />
</Frame>

<caption>*メッセージ受信イベントを追加*</caption>

## ステップ 6：バージョン作成と公開

1. 左メニューの **バージョン管理とリリース** をクリック

2. **バージョンを作成** をクリック

3. バージョン番号と更新内容を入力

4. 審査に提出し、管理者の承認を待つ

<Frame>
  <img src="https://mintcdn.com/apicore/LGVVJQGJwbbJu2RM/images/integrations/openclaw-manager/feishu/publish.png?fit=max&auto=format&n=LGVVJQGJwbbJu2RM&q=85&s=aff4efc7ede61d9ae40c2e8133ba5c2b" alt="バージョンを作成して公開" width="1872" height="825" data-path="images/integrations/openclaw-manager/feishu/publish.png" />
</Frame>

<caption>*バージョンを作成して公開を申請*</caption>

<Warning>
  **重要：** 権限やイベントサブスクリプションを変更するたびに、新しいバージョンを作成して再公開する必要があります。
</Warning>

## ステップ 7：ペアリングコード連携

アプリが承認・公開された後：

1. Feishu でボット名を検索

2. 任意のメッセージを送信（例：「こんにちは」）

3. ボットが **8 桁のペアリングコード**（例：`DFE62DTD`）を返信

<Frame>
  <img src="https://mintcdn.com/apicore/LGVVJQGJwbbJu2RM/images/integrations/openclaw-manager/feishu/pairing-code.png?fit=max&auto=format&n=LGVVJQGJwbbJu2RM&q=85&s=39cab4eef7e7d9ed9fd76416346e484e" alt="ペアリングコードを取得" width="1620" height="1278" data-path="images/integrations/openclaw-manager/feishu/pairing-code.png" />
</Frame>

<caption>*ボットが返信したペアリングコード*</caption>

4. Manager の新規インスタンスウィザードに戻り、「**ペアリングコードを入力**」ステップでコードを入力し、「**承認**」をクリック

<Frame>
  <img src="https://mintcdn.com/apicore/LGVVJQGJwbbJu2RM/images/integrations/openclaw-manager/feishu/pairing-input.png?fit=max&auto=format&n=LGVVJQGJwbbJu2RM&q=85&s=0f4862b807a4373f190ff1f307988606" alt="ペアリングコードを入力" width="1896" height="938" data-path="images/integrations/openclaw-manager/feishu/pairing-input.png" />
</Frame>

<caption>*ウィザードでペアリングコードを入力して承認*</caption>

5. コードが承認されたら、「**完了**」をクリック

<Frame>
  <img src="https://mintcdn.com/apicore/LGVVJQGJwbbJu2RM/images/integrations/openclaw-manager/feishu/pairing-success.png?fit=max&auto=format&n=LGVVJQGJwbbJu2RM&q=85&s=5ac46b83d9336f1a66dc21f9baf8d649" alt="ペアリング承認成功" width="1887" height="948" data-path="images/integrations/openclaw-manager/feishu/pairing-success.png" />
</Frame>

<caption>*ペアリングコード承認成功、完了をクリック*</caption>

6. Feishu に戻り、再度メッセージを送信すると、ボットが AI 生成のコンテンツで応答

<Frame>
  <img src="https://mintcdn.com/apicore/LGVVJQGJwbbJu2RM/images/integrations/openclaw-manager/feishu/chat-demo.png?fit=max&auto=format&n=LGVVJQGJwbbJu2RM&q=85&s=f7537b0e2db33a5c440edec74f53fa2f" alt="ボットと会話" width="1617" height="801" data-path="images/integrations/openclaw-manager/feishu/chat-demo.png" />
</Frame>

<caption>*連携成功後、AI ボットとの通常の会話*</caption>

## よくある質問

### Q1: ボットがメッセージに応答しない？

**解決方法：**

1. イベントサブスクリプションに `im.message.receive_v1` が追加されているか確認
2. サブスクリプション方式が「**ロングコネクション**」（Webhook ではなく）になっているか確認
3. 新しいバージョンを作成して公開済みで、承認が通っているか確認
4. Manager でインスタンスのステータスが「**実行中**」であることを確認

### Q2: 権限不足エラー？

**解決方法：**

1. すべての権限が有効になっているか確認（ステップ 2 を参照）
2. 権限変更後は、新しいバージョンを作成して再公開する必要があります
3. 管理者の承認を待つ

### Q3: ペアリングコードの承認に失敗？

**解決方法：**

* Gateway が実行中であることを確認
* ペアリングコードは大文字小文字を区別します、慎重に確認してください
* コードは Gateway 再起動後に無効になります、ユーザーに新しいメッセージを送信してもらってください

***

<Card title="OpenClaw Manager デプロイガイドに戻る" icon="arrow-left" href="/ja/integrations/platform/openclaw-manager">
  Manager のインストール、デプロイ、インスタンス管理の完全ガイドを確認
</Card>
