Documentation Index
Fetch the complete documentation index at: https://docs.cowagent.ai/llms.txt
Use this file to discover all available pages before exploring further.
Integrate CowAgent into Feishu via a custom enterprise app. Supports p2p chat and group chat (@bot), uses WebSocket long connection (no public IP needed), supports streaming typewriter replies and voice messages.
You need to be a Feishu enterprise user with admin privileges.
1. Setup
Option 1: One-click Scan to Create (Recommended)
No need to manually create an app on the Feishu Developer Platform. Start the Cow project, open the web console (defaulthttp://127.0.0.1:9899/), go to Channels, click Add Channel, choose Feishu, then under the Scan QR tab click One-click Create Feishu App and scan with the Feishu App to complete app creation and connection automatically.
- Requires
lark-oapi≥ 1.5.5. - The created app comes with all required permissions (messaging, card read/write, group events, etc.) and event subscriptions pre-configured — no manual setup on the developer console needed. Currently only the Feishu mainland version is supported (Lark international not yet supported).
feishu_app_id configured, the QR code is also printed to the terminal.
Option 2: Manual Setup
Manually create a custom app on the Feishu Developer Platform, then connect via Web Console or config file. Step 1: Create the App- Go to Feishu Developer Platform, click Create Enterprise Custom App:
- In Add App Capabilities, add the Bot capability:
- In Permission Management, paste the following permissions and Batch Enable all:
- Get
App IDandApp Secretfrom Credentials & Basic Info:
Step 2: Connect to CowAgent
- Web Console
- Config File
Open the web console, go to Channels, click Add Channel, choose Feishu, switch to the Manual tab, enter App ID and App Secret, then click connect.
- After Cow is running, go to Events & Callbacks in the Feishu Developer Platform, choose Long Connection mode and save:
- Click Add Event, search for “Receive Message” and choose Receive Message v2.0.
- Click Version Management & Release, create a version and apply for Production Release. Approve the request in the Feishu client:
2. Features
| Feature | Status |
|---|---|
| P2P chat | ✅ |
| Group chat (@bot) | ✅ |
| Text messages | ✅ send/receive |
| Image messages | ✅ send/receive |
| Voice messages | ✅ send/receive |
| Streaming reply | ✅ (powered by Feishu cardkit streaming card) |
Streaming reply requires the
cardkit:card:write permission (already enabled by one-click creation) and Feishu client version ≥ 7.20. Older clients see an upgrade prompt; if the permission or version is not satisfied, replies fall back to plain text automatically.