Aliyun OpenClaw (formerly Moltbot/Clawdbot) Feishu Integration (Step-by-step)

OpenClaw
Moltbot
Clawdbot
Feishu
AppFlow
Alibaba Cloud

With Alibaba Cloud AppFlow, you can integrate OpenClaw with Feishu and interact in Feishu group or 1:1 chats using natural language.

Step 1. Purchase the OpenClaw package

Purchase link here: Buy a lightweight server with the preinstalled Moltbot image.

Configuration notes

  1. On the lightweight server page, the resource configuration is pre-filled. If you need to adjust it, refer to the notes below.

    • Instance: memory must be at least 2GiB. You can switch to a larger plan if needed.
    • Region: default is US (Virginia).
    • Important: lightweight servers in mainland China (excluding Hong Kong) cannot use OpenClaw’s web search feature.
    • Purchase period: default is 12 months. Adjust based on your needs.

Step 2. Configure OpenClaw

We’ll use Alibaba’s default model first and finish the flow. You can switch models later.

  1. Go to Alibaba Cloud Bailian Model Service, open the API key page, and create an API key.

Alibaba Cloud Bailian console

  1. On the server page, click the instance ID in the server card to open the overview page.

Server overview

  1. Open the application detail tab and configure OpenClaw.

OpenClaw configuration

  1. Enable Response API access so AppFlow can call OpenClaw.

Clawdbot Gateway configuration

Step 3. Create and configure the Feishu app

  1. Log in to the Feishu developer console, create an internal app, and fill in the app information.

Feishu developer console

  1. In the left sidebar, click Add App Capability, choose Bot, and add it.

Add app capability

  1. In Permission management, enable permissions and add the following API scopes:

Permission management

Permission codePurposeNotes
im:message:send_as_botAllow the bot to send messages as the appRequired
contact:user.employee_id:readonlyGet user IDRequired
im:message.group_at_msg:readonlyReceive @ mentions in group chatsCore permission
im:message.p2p_msg:readonlyRead messages sent to the bot in 1:1 chatsRequired for 1:1
im:message.group_msg:readonlyRead all messages in a groupSensitive permission
  1. Collect the required credentials. You’ll need them for AppFlow.

    • In the left sidebar, open Credentials & Basic Info and copy App ID and App Secret.

Credentials & basic info

Encryption strategy

Step 4. Create the Feishu connection flow (AppFlow)

  1. Open the AppFlow Feishu–OpenClaw template and click Use now.

AppFlow template

  1. Add Feishu auth credentials. Enter a name (any), and fill in the values from Step 3. Click Confirm and select the credential you created.

AppFlow credential config

  1. Create Moltbot auth credentials. Fill in the values from Step 2, click Confirm, and select the credential.

Moltbot credential config

  1. Click Next and fill your public IP and port (default port is 18789).
    Example: 48.253.178.133:18789

Public IP config

  1. Publish the flow, then copy and save your Webhook URL.

Publish success

Step 5. Configure the Feishu bot

🖼️ Event configuration page

This page shows Events & Callbacks and the event configuration tab.

  1. Return to the Feishu developer console. In the left sidebar, go to Events & Callbacks, then configure the subscription method.

Event config

  1. Choose Send events to developer server, paste the Webhook URL from Step 4, and save.

  2. In Event Configuration, add Message Received events.
    This step is critical—without it, the bot will not receive your messages in groups.

Add events

  1. In the left sidebar, go to Version Management & Release, create a version (or open the latest draft), fill in the required fields, save, and submit for review.

Version management

Validation

After configuration, you can add the bot to a group to start interacting.
Currently, adding bots is only supported on Feishu desktop. For external groups, follow Feishu’s docs for external group and external user support.

🖼️ Add bot screenshot

Path: ... > Settings > Group Bots > Add Bot

  1. Follow the path above to add the bot.
  2. @mention the bot to start a conversation.

Add bot