Create a Feishu app
Go to the Feishu Open Platform or the Lark Open Platform. Click Create Custom Enterprise App, enter the app name and description, select an app icon, and click Create.
In the left-side navigation pane, click Credentials & Basic Information. Copy the App ID (for example,
cli_xxx) and App Secret.In the left-side navigation pane, click Permissions & Scopes, and then click Bulk Import/Export Permissions. Paste the following JSON configuration, click Next, confirm the New Permissions, and click Request to Activate.
In the left-side navigation pane, click Add Application Capability, select the Add by Capability tab, find the Bot card, and click Configuration.

Configure event subscriptions.
Return to the DataWorks console and create a DataClaw instance. For details, see AI assistant service configuration guide.
In the left-side navigation pane of the Feishu Open Platform, click Events & Callbacks. On the Event Configuration tab, click Subscription Method, select Use Long Connection to Receive Events, and click Save.
On the event configuration page, click Add Event, select the "Subscribe as App" tab, search for "message", select the "Receive Messages", "Message Reacted", and "Message Reaction Removed" events, and click "Confirm".
On the Version Management & Release page, create a version, enter the App Version and Update Description, click Save, and then submit the app for review and publish it.
Configure the bot
You can create a group chat or add the bot to an existing group chat. Mention @Bot in the Feishu group to chat with the bot, or find the bot through search and start a private chat to test it.
To use the bot in an external group, see Enable bots for external groups and private chats with external users.
Add the bot by following this path: .
Click the bot's avatar and click Send Message to send a private message to the bot. To send a message to the bot in a group, mention @Bot.