Prerequisites
- A Feishu or Lark account with developer access
- A Claw instance (create one here)
Setup Guide
Create a Feishu App
- Go to Feishu Open Platform (or Lark Developer)
- Click Create Custom App
- Enter an app name and description
- Click Create
Add Bot Capability
- In your app settings, go to Features → Bot
- Enable the bot capability
- This allows your app to receive and send messages
Get Credentials
- Go to Credentials & Basic Info
- Copy the App ID (starts with
cli_) - Copy the App Secret
Configure Event Subscription
- Go to Event Subscriptions
- Select WebSocket mode (recommended — no public URL needed)
- If prompted, set the Encrypt Key and Verification Token
Add Event Permissions
- Under Event Subscriptions, add these events:
im.message.receive_v1— Receive messages
- Go to Permissions & Scopes and add:
im:message— Send and receive messagesim:message.group_at_msg— Receive group @mentions
- Click Save
Publish the App
- Go to App Release → Version Management
- Create a new version
- Submit for review (for internal apps, this is usually instant)
- Once approved, the app is live
Configure in LemonData Dashboard
- Go to your Claw Dashboard
- Click the settings icon on your instance
- Open the IM Integrations tab
- Expand the Feishu section
- Paste your App ID and App Secret
- Copy the auto-generated Encrypt Key and Verification Token back to the Feishu developer console
- Click Save
Group Settings
Configure group chat behavior in the IM Integrations tab of your Dashboard:| Setting | Options | Description |
|---|---|---|
| Group Policy | Open (default) / Allowlist / Disabled | Controls who can trigger the bot in groups |
| Require @mention | On / Off | Bot only responds when @mentioned |
| Group IDs | List of chat IDs | Restrict to specific groups (empty = all groups) |
| Group Allowed Users | List of Open IDs | Only these users can trigger the bot (allowlist mode) |
Troubleshooting
Bot doesn't receive messages
Bot doesn't receive messages
- Verify the app is published and approved
- Check that
im.message.receive_v1event is subscribed - Make sure WebSocket mode is selected (not HTTP)
- Verify Encrypt Key and Verification Token match between Feishu console and Claw config
'app_ticket' error
'app_ticket' error
- This usually means the App ID or App Secret is incorrect
- Double-check the credentials in your dashboard