
Dingtalk Message
Dingtalk robot and work-notification message skill covering four send channels with Webhook, app, and session routing.
- skills.sh installs
- 1.6K
- GitHub stars
- 102
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers group Webhook bots (text, Markdown, ActionCard, Link, FeedCard), enterprise app bots for one-to-one and group chats, and work notifications
- Includes
scripts/dt_helper.shfor reading and writing config keys, fetching access tokens, and converting unionId to userId - Enforces userId-only identity for message APIs and asks which group send method to use before sending
- Designed for workflows that send, recall, or check read status of DingTalk messages through the open platform
Install
$ npx -y skills add breath57/dingtalk-skills --skill dingtalk-message -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
钉钉消息技能
负责钉钉消息发送的所有操作。本文件为策略指南;完整 API 请求格式、场景路由、消息类型速查、身份标识、错误码等见 references/api.md。
dt_helper.sh位于本SKILL.md同级目录的scripts/dt_helper.sh。
四种消息通道
| 通道 | 适用场景 | Token | 特点 |
|---|---|---|---|
| Webhook 机器人 | 往指定群发通知 | 无需 | 最简单;URL 自带凭证 |
| 企业内部应用机器人 | 单聊私信 / 群聊 | --token(新版) | 可撤回、查已读 |
| 工作通知 | 应用推送到"工作通知" | --old-token(旧版) | 可推全员/部门 |
| sessionWebhook | 回调中直接回复 | 无需 | 回调消息自带临时 URL |
工作流程(每次执行前)
- 识别通道 → 按 api.md「场景路由」判断属于哪个通道
- 校验配置 →
bash scripts/dt_helper.sh --get KEY读取该通道所需键值 - 收集缺失项 → 一次性询问并
bash scripts/dt_helper.sh --set KEY=VALUE写入 - 获取 Token → 机器人用
--token;工作通知用--old-token;Webhook/sessionWebhook 无需 - 执行 API → 多行逻辑写入
/tmp/<task>.sh再执行;禁止 heredoc
各通道所需配置
| 通道 | 所需配置 | 来源说明 |
|---|---|---|
| Webhook | DINGTALK_WEBHOOK_URL(加签额外需 DINGTALK_WEBHOOK_SECRET) | 群设置 → 智能群助手 → 添加自定义机器人 |
| 机器人消息 | DINGTALK_APP_KEY + DINGTALK_APP_SECRET | 开放平台 → 应用管理 → 凭证信息 |
| 工作通知 | DINGTALK_APP_KEY + DINGTALK_APP_SECRET + DINGTALK_AGENT_ID | agentId 在应用管理 → 基本信息 |
robotCode=appKey(完全一致,无需额外配置)- 凭证禁止在输出中完整打印,确认时仅显示前 4 位 +
****- 消息内容缺失时:先询问用户想发什么,不要自行编造
Details
- Repository
- github.com/breath57/dingtalk-skills
- Category
- Email & Messaging
- First seen
- Apr 16, 2026
More from breath57/dingtalk-skills
All 6Similar to Dingtalk Message
More Email & Messaging
dingtalk-todoSkillbreath57/dingtalk-skills420 installsDingtalk todo management skill that creates, queries, updates, completes, and deletes tasks via the DingTalk API.
LINE BotMCP serverline807 starsLead connecting an AI agent to LINE Official Account messaging, rich menus, and profiles.
dingtalk-documentSkillbreath57/dingtalk-skills1.8K installsOperations for DingTalk knowledge bases and documents: create, read, write, and manage members.
Notify MCP ServerMCP serveraahl29 starsSends push notifications to WeCom, Telegram, Bark, Lark, Feishu, DingTalk, and Home Assistant.
feishu-larkSkillopenclaudia/openclaudia-skills1.6K installsSend messages and interactive cards to Feishu and Lark groups via webhooks or Bot API.
dingtalk-connectionSkillxiaomingx/moltbot-connector-feishu-dingtalk522 installsBridge that relays DingTalk outgoing webhook messages to Clawdbot Gateway and returns agent replies.