302 AI Studio

Feishu

Deployment Steps

1. Log in to the Feishu Open Platform

Log in with your Feishu account. For Lark (international version), use https://open.larksuite.com/app and set domain: "lark" in your configuration.

2. After logging in, click Create enterprise self-built app

Fill in the basic information as prompted (name, description, etc.), click Create, and open the app details page. Create App

3. Enable bot capability

On Add app capabilities > Bot:

  • Turn on bot capability
  • Configure bot-related settings

Enable Bot Capability

4. Configure app permissions

On Permission management > Batch import, paste the JSON below to import the required scopes in one step.

Configure App Permissions

{
  "scopes": {
    "tenant": [
      "aily:file:read",
      "aily:file:write",
      "application:application.app_message_stats.overview:readonly",
      "application:application:self_manage",
      "application:bot.menu:write",
      "cardkit:card:write",
      "contact:user.employee_id:readonly",
      "corehr:file:download",
      "docs:document.content:read",
      "event:ip_list",
      "im:chat",
      "im:chat.access_event.bot_p2p_chat:read",
      "im:chat.members:bot_access",
      "im:message",
      "im:message.group_at_msg:readonly",
      "im:message.group_msg",
      "im:message.p2p_msg:readonly",
      "im:message:readonly",
      "im:message:send_as_bot",
      "im:resource",
      "sheets:spreadsheet",
      "wiki:wiki:readonly"
    ],
    "user": ["aily:file:read", "aily:file:write", "im:chat.access_event.bot_p2p_chat:read"]
  }
}

Basic permissions

Permission scopePermission typeDescription
contact:user.base:readonlyUser infoGet basic user information
im:messageMessagingSend and receive messages
im:message.p2p_msg:readonlyDMRead the bot’s direct messages
im:message.group_at_msg:readonlyGroupReceive @bot messages in groups
im:message:send_as_botSendSend messages as the bot
im:resourceMediaUpload/download images and files

Optional full-feature permissions

Permission scopePermission typeDescription
im:message.group_msgGroupRead all messages in groups (sensitive)
im:message:readonlyReadRead message history
im:message:updateEditEdit or update sent messages
im:message:recallRecallRecall sent messages
im:message.reactions:readReactionsView reactions on messages

Make sure messaging, bot, event subscription, and related permissions are enabled.

5. Enter App ID and App Secret and apply configuration

On the Feishu Open Platform Credentials & basic info page, copy App ID and App Secret, paste them into the matching fields in the 302 AI Studio client Settings page, then click Update configuration to apply.

Update Credentials

Update Credentials

6. Set up event callback

Before configuring event subscription, make sure you have:

  1. Opened the 302 AI Studio client
  2. Enabled Open Claw in the client

On Events & callbacks:

  1. Choose Receive events via persistent connection (WebSocket mode)
  2. Add event: im.message.receive_v1 (receive messages)

If the client is not running or Open Claw is disabled, saving the persistent connection settings will fail.

Set Event Callback

Set Event Callback

7. Publish the app

  • Create a version on Version management & release
  • Submit for review and publish
  • Wait for admin approval (enterprise self-built apps are usually approved automatically)

Publish App

8. Send a test message

In Feishu, open the bot you created and send a message to verify it works.

9. Pairing authorization

By default, the bot replies with a pairing code and a pairing command.

If the bot asks you to run a pairing command (for example openclaw pairing approve feishu <pairing_code>), copy it, return to the 302 AI Studio client, send the command to Open Claw, and let it complete pairing.

After pairing succeeds, you can chat as usual.

Optional: Bind a Feishu chat to a workspace

This section is not required to connect Feishu. If you do not enter a Feishu chat ID or bind a workspace, you can still use the Feishu bot normally after finishing the app setup, credentials, event callback, publish, and pairing steps above.

Binding a chat ID lets you work in a workspace in the client at your desk, then continue in the same workspace via Feishu when you step away—this is for personal continuity across contexts, not for “everyone sharing one bot” or competing for a single entry point.

With vs without binding

Not binding chat IDBinding chat ID (workspace)
Feishu bot usableYesYes
Relationship to workspaceFeishu conversations follow Open Claw defaults and are not pinned to the workspace you selected in the client; desktop and Feishu contexts stay separateBinds a specific Feishu chat to a workspace in the client. Messages in Feishu land in that workspace and stay aligned with that workspace’s state, tasks, and files—one continuous thread across scenarios
Typical useUse Feishu mainly as a standalone entry to the bot; you do not need it synced with the client workspaceDeep work in a workspace from the client at your computer; when away from the desk (travel, meetings, mobile, etc.), keep going in the same workspace in Feishu so context does not split

How to bind (optional)

Feishu group chat features (for example talking to the bot in a group or binding a group chat to a workspace) require the 302 AI Studio client to be updated to the latest version; otherwise they may not work or the UI entry may be missing.

In Feishu, create a group chat (or use an existing one), open that group’s group settings, and copy the chat ID. In the client, open the chat view, open the Vibe settings dialog, paste the chat ID into the Feishu field, and save to finish binding the Feishu channel to the workspace.

Get Feishu chat ID

Enter Feishu chat ID

The Save button for Feishu chat ID in the dialog stays disabled until you have had at least one conversation with Open Claw. Saving restarts the gateway and interrupts in-flight tasks—finish the chat or submit work before saving.

Bind Feishu chat to workspace


More information

For detailed configuration options, advanced behavior, and the full reference, see the OpenClaw documentation for Feishu.

On this page