2.5k
GitHub Stars
6
Bundled Files
6 months ago
Catalog Refreshed
7 months ago
First Indexed
Readme & install
Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.
Installation
Preview and clipboard use veilstrat where the catalogue uses aiagentskills.
npx veilstrat add skill openclaw/skills --skill dingtalk-bot-publish- _meta.json292 B
- CLAUDE.md701 B
- package.json548 B
- README.md16.3 KB
- SKILL.md6.9 KB
- tsconfig.json470 B
Overview
This skill integrates with the DingTalk Open Platform to perform enterprise-grade operations: user and department search, detailed queries, robot messaging, Stream-mode event handling, and multi-session conversation isolation. It supports both traditional API calls and a recommended Stream mode for real-time WebSocket event delivery. Use it to automate user directory tasks, send and route robot messages, manage approvals, and maintain per-user conversation memory.
How this skill works
The skill calls DingTalk REST APIs for user/department management, robot single- and group-chat messaging, and OA approval operations using AppKey/AppSecret or OAuth2 depending on app type. For real-time scenarios it runs a Stream Bridge that maintains WebSocket connections to receive events, create isolated per-user or per-group sessions, persist session memory, and send AI-generated replies back through DingTalk APIs. Error responses follow a unified JSON format for easy handling.
When to use it
- Search or retrieve DingTalk user or department details programmatically
- Send robot messages in single chats or group chats from an automated agent
- Receive and process real-time DingTalk events with low latency using Stream mode
- Isolate conversations per user or per group member and preserve contextual memory
- Automate OA approval queries and basic approval workflows
Best practices
- Prefer Stream mode for real-time, high-concurrency interaction and lower latency
- Use least-privilege permissions in the DingTalk developer console
- Store AppKey/AppSecret in environment variables or a secure vault — never hardcode secrets
- Isolate sessions: use separate session IDs per user/group member and persist memory to disk or secure storage
- Implement exponential backoff and check errcode for all API responses to handle rate limits and transient failures
Example use cases
- Enterprise directory sync: bulk-search users, map organization structure, and populate internal systems
- Automated helpdesk bot: Stream-mode receives messages, maintains per-user context, and replies via robot messages
- Approval dashboard: query approval instances, fetch details, and trigger actions like approve/transfer via API
- Group moderation bot: list group bots, send automated group messages, and track per-member conversations
- Session-based assistants: create per-user memory files and auto-clean inactive sessions after a timeout
FAQ
Enterprise internal apps use AppKey/AppSecret to get access_token; third-party apps use OAuth2. Stream mode requires enterprise internal app credentials.
What runtime and environment are required for Stream mode?
Python 3.8+ with a publicly reachable HTTPS endpoint for event callbacks or a WebSocket Stream Bridge; environment variables DINGTALK_APP_KEY and DINGTALK_APP_SECRET must be set.