← 返回 Skills 市场
chao980

dingtalk-link

作者 chao980 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
143
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install dingtalk-link-smb
功能描述
钉钉机器人连接配置指南。用于安装、配置和排查 OpenClaw 钉钉连接器 (dingtalk-connector) 的问题。当用户需要连接钉钉机器人、配置 AppKey/AppSecret、或排查钉钉消息收发问题时使用。
使用说明 (SKILL.md)

钉钉机器人配置

配置 OpenClaw 与钉钉机器人连接,支持 AI Card 流式响应和会话管理。

前置要求

  • OpenClaw >= 2026.3.22(dingtalk-connector v0.8.6+ 必需)
  • 钉钉企业账号
  • OpenRouter API Key

快速配置

1. 安装插件

openclaw plugins install @dingtalk-real-ai/dingtalk-connector

2. 创建钉钉应用

  1. 访问 https://open-dev.dingtalk.com/
  2. 应用开发 → 创建企业内部应用
  3. 添加应用能力 → 选择"机器人"
  4. 获取 AppKeyAppSecret(凭证与基础信息页面)
  5. 发布应用(版本管理与发布)

⚠️ 应用必须发布才能正常接收消息

3. 配置凭证

使用命令行配置:

openclaw channels add

选择 DingTalk,输入 AppKey 和 AppSecret。

或手动编辑 ~/.openclaw/openclaw.json

{
  "channels": {
    "dingtalk-connector": {
      "enabled": true,
      "clientId": "你的AppKey",
      "clientSecret": "你的AppSecret"
    }
  }
}

4. 重启并验证

openclaw gateway restart
openclaw status

确认 DingTalk 状态为 ON / OK

常见问题排查

机器人不回复

openclaw logs --follow

检查日志确认:

  • 应用已发布
  • 机器人模式为 Stream(非 Webhook)
  • AppKey/AppSecret 正确

版本不兼容错误

错误信息:Cannot find module '.../plugin-sdk/root-alias.cjs/channel-runtime'

原因:OpenClaw 版本过低

解决:

npm install -g openclaw@latest
openclaw gateway restart

HTTP 401 错误

  • 检查 AppKey/AppSecret 是否正确(注意多余空格)
  • 确认应用已发布

Stream 连接 400 错误

原因 解决方案
应用未发布 发布应用
凭证错误 检查 AppKey/AppSecret
非 Stream 模式 确认机器人配置为 Stream 模式
IP 白名单限制 检查应用是否设置了 IP 白名单

端口冲突

openclaw gateway stop
openclaw gateway start

进阶配置

异步模式(长时间任务)

{
  "channels": {
    "dingtalk-connector": {
      "enabled": true,
      "clientId": "AppKey",
      "clientSecret": "AppSecret",
      "asyncMode": true,
      "ackText": "收到,处理中..."
    }
  }
}

会话配置

{
  "channels": {
    "dingtalk-connector": {
      "enabled": true,
      "clientId": "AppKey",
      "clientSecret": "AppSecret",
      "separateSessionByConversation": true,
      "groupSessionScope": "group"
    }
  }
}

参考链接

  • 插件文档:https://github.com/DingTalk-Real-AI/dingtalk-openclaw-connector
  • 钉钉开放平台:https://open-dev.dingtalk.com/
安全使用建议
This is a configuration guide, not executable code, and appears coherent for setting up a DingTalk connector. Before proceeding: (1) verify the plugin package name (@dingtalk-real-ai/dingtalk-connector) and GitHub repo to ensure you trust the publisher; (2) do not paste secrets into chat — enter AppKey/AppSecret only via the CLI or by editing your local ~/.openclaw/openclaw.json; (3) confirm where the 'OpenRouter API Key' should be stored in your environment or OpenClaw config if you use OpenRouter; (4) running npm install -g or plugin installs requires network and may require elevated privileges — perform those commands on a trusted machine; (5) back up your OpenClaw config before editing. If you want, I can check the referenced GitHub repo URL and the connector package name for authenticity before you install.
功能分析
Type: OpenClaw Skill Name: dingtalk-link-smb Version: 1.0.0 The skill bundle contains documentation and configuration instructions for integrating OpenClaw with DingTalk. The SKILL.md file provides standard procedures for installing the '@dingtalk-real-ai/dingtalk-connector' plugin, managing credentials in '~/.openclaw/openclaw.json', and troubleshooting common connection issues. No malicious code, data exfiltration attempts, or harmful prompt injections were identified.
能力评估
Purpose & Capability
Name and description match the content: the SKILL.md explains installing/configuring the dingtalk-connector, adding AppKey/AppSecret, restarting the gateway, and troubleshooting — all appropriate for a connector setup guide.
Instruction Scope
Instructions stay within the connector setup/troubleshooting scope (install plugin, edit ~/.openclaw/openclaw.json, restart gateway, check logs). Minor inconsistency: the prerequisites list an 'OpenRouter API Key' but the guide does not explain where/how to provide it (no env var or CLI step shown).
Install Mechanism
No install spec or code files are included in the skill bundle — it's instruction-only. The only install actions are user-directed CLI commands (openclaw plugins install, npm install -g) which are appropriate for a setup guide.
Credentials
The skill does not request environment variables or credentials within the bundle. It does instruct the user to provide AppKey/AppSecret (correct for this purpose). The mention of an 'OpenRouter API Key' in prerequisites is plausible but not further justified or mapped to a config/env variable in the instructions.
Persistence & Privilege
always is false and the skill is user-invocable only. There is no instruction to modify other skills' configs or system-wide settings beyond the connector's own OpenClaw config.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install dingtalk-link-smb
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /dingtalk-link-smb 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of dingtalk-link-smb. - Added a comprehensive setup guide for configuring the OpenClaw DingTalk connector. - Included step-by-step instructions for plugin installation, DingTalk app creation, and credential setup. - Documented troubleshooting steps for common issues such as authentication errors and version incompatibility. - Provided advanced configuration options for async mode and session management. - Linked to relevant external documentation for further reference.
元数据
Slug dingtalk-link-smb
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

dingtalk-link 是什么?

钉钉机器人连接配置指南。用于安装、配置和排查 OpenClaw 钉钉连接器 (dingtalk-connector) 的问题。当用户需要连接钉钉机器人、配置 AppKey/AppSecret、或排查钉钉消息收发问题时使用。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 143 次。

如何安装 dingtalk-link?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install dingtalk-link-smb」即可一键安装,无需额外配置。

dingtalk-link 是免费的吗?

是的,dingtalk-link 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

dingtalk-link 支持哪些平台?

dingtalk-link 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 dingtalk-link?

由 chao980(@chao980)开发并维护,当前版本 v1.0.0。

💬 留言讨论