Feishu (Lark)
Deploy Mona as a Feishu (Lark) bot for enterprise messaging.
Prerequisites
- A working MonoClaw installation
- A Feishu/Lark developer account
- An organization with admin access
1. Create a Feishu app
- Go to open.feishu.cn (China) or open.larksuite.com (International)
- Click Create Custom App
- Fill in app information
- Note the App ID and App Secret
2. Enable bot capability
- In your app settings, go to Capability Addition
- Add Bot
- Enable Receive messages and Send messages
- Set the event subscription URL:
https://your-domain.com/webhooks/feishu - Set the verification token and encrypt key
3. Configure MonoClaw
monoclaw gateway setup
Choose Feishu and enter:
- App ID
- App Secret
- Verification Token
- Encrypt Key (optional)
Or manually:
monoclaw config set FEISHU_APP_ID "cli_..."
monoclaw config set FEISHU_APP_SECRET "your-secret"
monoclaw config set FEISHU_VERIFICATION_TOKEN "your-token"
4. Start the gateway
monoclaw gateway start
5. Publish the app
- In Feishu developer portal, go to Version Management
- Create a version
- Request approval from organization admin
- Once approved, the bot is available to users
Interaction
Group chats
Add the bot to a Feishu group:
- In group settings, click Add Bot
- Search for your app name
- @mention the bot to interact
@Mona 总结今天的会议纪要
DMs
Search for the bot in Feishu and send messages directly.
Configuration
gateway:
feishu:
app_id: "${FEISHU_APP_ID}"
app_secret: "${FEISHU_APP_SECRET}"
verification_token: "${FEISHU_VERIFICATION_TOKEN}"
encrypt_key: "${FEISHU_ENCRYPT_KEY}"
event_url: "https://your-domain.com/webhooks/feishu"
Troubleshooting
| Problem | Fix |
|---|---|
| "Invalid app ID" | Check ID matches the Feishu developer portal |
| "Event subscription failed" | Ensure URL is publicly accessible and returns the challenge |
| Bot not appearing in groups | App must be published and approved by admin |
| "Verification failed" | Check verification token matches exactly |