1. Create Enterprise Custom App
1.1 Create App
Go to Feishu Developer Platform, click Create Enterprise Custom App, fill in the required information and click Create:
1.2 Add Bot Capability
In Add App Capabilities, add Bot capability to the app:
1.3 Configure App Permissions
Click Permission Management, paste the following permission string into the input box below Permission Configuration, select all filtered permissions, click Batch Enable and confirm:
2. Project Configuration
- Get
App IDandApp Secretfrom Credentials & Basic Info:
- Add the following configuration to
config.jsonin the project root:
| Parameter | Description |
|---|---|
feishu_app_id | Feishu bot App ID |
feishu_app_secret | Feishu bot App Secret |
feishu_bot_name | Bot name (set when creating the app), required for group chat usage |
3. Configure Event Subscription
- After the project is running successfully, go to the Feishu Developer Platform, click Events & Callbacks, select Long Connection mode, and click save:
- Click Add Event below, search for “Receive Message”, select “Receive Message v2.0”, and confirm.
- Click Version Management & Release, create a new version and apply for Production Release. Check the approval message in the Feishu client and approve:
Once completed, search for the bot name in Feishu to start chatting.