DingTalk
DingTalk adapter with HTTP callback for internal enterprise apps.
Prerequisites
- Create an internal app at DingTalk Open Platform.
- Obtain AppKey and AppSecret.
- Configure Event Subscription → HTTP callback:
https://<your-public-host>/dingtalk.
Environment
export DINGTALK_APP_KEY=...export DINGTALK_APP_SECRET=...export DINGTALK_CALLBACK_TOKEN=...export DINGTALK_ENCODING_AES_KEY=...export DINGTALK_DEFAULT_WEBHOOK=... # optional: custom group bot webhookexport DINGTALK_WEBHOOK_HOST=0.0.0.0export DINGTALK_WEBHOOK_PORT=16673export DINGTALK_WEBHOOK_PATH=/dingtalkThread semantics
Group chats use conversationId; DMs use senderStaffId.
DINGTALK_DEFAULT_WEBHOOK
Custom group bot webhooks are useful for stateless push (e.g., task-complete notifications), complementing the two-way app integration. Optional.
Troubleshooting
- Callback signature invalid: confirm the DingTalk callback Token and EncodingAESKey match the event subscription settings.
- Can’t send messages: the app might not yet be admin-approved, or hasn’t joined the target group.