Prerequisites
- A DingTalk account with enterprise admin access
- A Claw instance (create one here)
Setup Guide
Create a DingTalk App
- Go to DingTalk Open Platform
- Click Application Development → Enterprise Internal Development
- Click Create Application
- Enter an app name and description
- Click Confirm
Enable Robot Capability
- In your app, go to App Features → Robot
- Enable the robot configuration
- Select Stream Mode (recommended — no public URL needed)
- Click Publish
Publish the App
- Go to Version Management
- Create a new version (at minimum a test version)
- Set the visible range (which users/departments can see the bot)
- Submit and publish
Configure in LemonData Dashboard
- Go to your Claw Dashboard
- Click the settings icon on your instance
- Open the IM Integrations tab
- Expand the DingTalk section
- Paste your AppKey and AppSecret
- 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 |
| Group Allowed Users | List of user IDs | Only these users can trigger the bot (allowlist mode) |
DingTalk always requires @mention to trigger the bot in groups — this is a platform limitation and cannot be configured. Group IDs filtering is not available for DingTalk; use the Group Policy setting to control access.
Troubleshooting
Bot doesn't respond
Bot doesn't respond
- Verify AppKey and AppSecret are correct
- Check that the app is published (at least test version)
- Make sure Stream mode is selected in the robot configuration
- Verify the bot is visible to your user account
Connection drops frequently
Connection drops frequently
- Stream mode maintains a persistent WebSocket connection
- Brief disconnections are normal — the bot will auto-reconnect
- If persistent, try restarting the instance from the dashboard