> ## 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 Channel Setup

> Step-by-step guide on creating and configuring a Feishu bot in OpenClaw Manager, including enterprise app creation, permission setup, event subscription, and pairing code binding.

## Introduction

This tutorial guides you through creating and configuring a Feishu bot in OpenClaw Manager. Once complete, your Feishu Bot will be powered by ElkAPI's AI models for intelligent conversations within Feishu.

<Note>
  **Prerequisites:** Please ensure you have completed the [OpenClaw Manager deployment](/en/integrations/platform/openclaw-manager) and the Manager is running with the management UI accessible.
</Note>

## Step 1: Create a Feishu Enterprise App

1. Go to [Feishu Open Platform](https://open.feishu.cn/app), log in and click **Create Custom 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="Create Custom App" width="1902" height="933" data-path="images/integrations/openclaw-manager/feishu/create-app.png" />
</Frame>

2. Fill in the app name and description, upload an app icon

<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="Fill in app info" width="830" height="723" data-path="images/integrations/openclaw-manager/feishu/app-info.png" />
</Frame>

<caption>*Fill in app name and description*</caption>

## Step 2: Configure App Permissions

1. Enter the app details page, click **Permission Management** in the left menu

2. Click **Batch Enable**, paste the following JSON configuration:

```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="Configure permissions" width="1902" height="918" data-path="images/integrations/openclaw-manager/feishu/permissions.png" />
</Frame>

<caption>*Batch enable required permissions*</caption>

3. Click to confirm

## Step 3: Get Credentials

1. Click **Credentials & Basic Info** in the left menu

2. Copy the **App ID** (format: `cli_xxxxxxxxxx`) and **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="Get credentials" width="1905" height="944" data-path="images/integrations/openclaw-manager/feishu/credentials.png" />
</Frame>

<caption>*Copy App ID and App Secret*</caption>

<Warning>
  **Keep your App Secret secure** and do not share it.
</Warning>

## Step 4: Create Instance in Manager

1. Open the OpenClaw Manager UI (`http://127.0.0.1:51942`)

2. Click **+ New Instance**

3. **Enter instance name** — e.g. `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="Enter instance name" width="1911" height="948" data-path="images/integrations/openclaw-manager/manager/step-name.png" />
</Frame>

4. **Select AI model** — Choose the model you want to use

<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="Select model" 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. **Enter ElkAPI API Key** — Enter your API key starting with `sk-`

<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="Enter 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. **Select channel** — Choose **Feishu**

7. **Fill in credentials** — Paste the App ID and App Secret into the corresponding fields

<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="Configure Feishu channel" width="1899" height="939" data-path="images/integrations/openclaw-manager/feishu/step-channel.png" />
</Frame>

<caption>*Fill in Feishu App ID and App Secret*</caption>

8. Click **Create** to complete instance creation

## Step 5: Configure Event Subscription

After creating the instance, you still need to configure event subscription on the Feishu Open Platform:

1. Return to the Feishu Open Platform, enter the app details

2. Click **Events & Callbacks** in the left menu

3. Set **Subscription Method** to "**Long Connection**"

<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="Select subscription method" width="1896" height="684" data-path="images/integrations/openclaw-manager/feishu/event-method.png" />
</Frame>

<caption>*Select Long Connection subscription method*</caption>

4. Click **Add Event**, search and add `im.message.receive_v1` (Receive messages)

<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="Add event" width="1923" height="936" data-path="images/integrations/openclaw-manager/feishu/event-add.png" />
</Frame>

<caption>*Add the receive message event*</caption>

## Step 6: Create Version and Publish

1. Click **Version Management & Release** in the left menu

2. Click **Create Version**

3. Fill in the version number and update notes

4. Submit for review and wait for admin approval

<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="Create version and publish" width="1872" height="825" data-path="images/integrations/openclaw-manager/feishu/publish.png" />
</Frame>

<caption>*Create version and submit for publication*</caption>

<Warning>
  **Important:** After every permission or event subscription change, you must create a new version and republish for changes to take effect.
</Warning>

## Step 7: Pairing Code Binding

After the app is approved and published:

1. Search for your bot name in Feishu

2. Send any message (e.g. "Hello")

3. The bot will reply with an **8-digit pairing code** (e.g. `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="Get pairing code" width="1620" height="1278" data-path="images/integrations/openclaw-manager/feishu/pairing-code.png" />
</Frame>

<caption>*Pairing code returned by the bot*</caption>

4. Return to the Manager's new instance wizard, enter the pairing code in the "**Enter Pairing Code**" step and click "**Approve**"

<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="Enter pairing code" width="1896" height="938" data-path="images/integrations/openclaw-manager/feishu/pairing-input.png" />
</Frame>

<caption>*Enter pairing code and approve in the wizard*</caption>

5. After the code is approved, click "**Done**"

<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="Pairing approved" width="1887" height="948" data-path="images/integrations/openclaw-manager/feishu/pairing-success.png" />
</Frame>

<caption>*Pairing code approved, click Done*</caption>

6. Return to Feishu, send another message, and the bot will respond with AI-generated content

<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="Chat with bot" width="1617" height="801" data-path="images/integrations/openclaw-manager/feishu/chat-demo.png" />
</Frame>

<caption>*Chat with the AI bot after successful binding*</caption>

## FAQ

### Q1: Bot not responding to messages?

**Solutions:**

1. Confirm event subscription has added `im.message.receive_v1`
2. Confirm subscription method is "**Long Connection**" (not Webhook)
3. Confirm a new version has been created and published, and approval has passed
4. Confirm the instance status is "**Running**" in Manager

### Q2: Insufficient permissions error?

**Solutions:**

1. Check that all permissions are enabled (see Step 2)
2. After modifying permissions, you must create a new version and republish
3. Wait for admin approval

### Q3: Pairing code approval failed?

**Solutions:**

* Confirm Gateway is running
* Pairing codes are case-sensitive, double check carefully
* Codes expire after Gateway restart, have the user send a new message

***

<Card title="Back to OpenClaw Manager Deployment Guide" icon="arrow-left" href="/en/integrations/platform/openclaw-manager">
  View the complete guide for Manager installation, deployment and instance management
</Card>
