shaoyunhao0107

Dingtalk Setup

AI 智慧體v0.1.0
作者:shaoyunhao0107更新於 2026-05-11openclaw-skill-dingtalk-setup@clawhub_shaoyunhao0107/openclaw-skill-dingtalk-setup
工具呼叫#微信#消息#钉钉#飞书

據 AlphaMoat 統計,截至 2026-09,Dingtalk Setup 累計下載 1,359 次、獲 0 個星標,在全部 5,078 個 AI 技能中排名第 4,860 位,在「AI 智慧體」分類(969 個)中排名第 934 位。

累計安裝
148
累計下載
1359
星標
-
全站排名
#4,860
全站前 96% · 「AI 智慧體」前 97%
平台累計安裝累計下載星標評論
ClawHub ↗341258--
SkillHub ↗1481359-—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

內容涵蓋釘釘外掛安裝、渠道配置、Gateway 狀態檢查和常見連線問題。該方案僅適用於企業內部應用,不適用于飛書、企業微信或其他平台。文件中的示例包含看似真實的憑證,部署時必須替換成自有值;如果示例憑證曾真實有效,應輪換,並審查安裝來源、配置檔案許可權和命令歷史。

資料釋出於 2026-10-29

可以用來做什麼

  • 安裝並啟用釘釘渠道外掛
  • 配置企業內部機器人並檢查 Gateway 狀態
  • 排查機器人無響應或外掛載入問題

什麼時候用

  • 目標是 OpenClaw 與釘釘企業內部應用對接時
  • 外掛來源和版本已稽核且憑證已替換為自有值時
  • 能夠限制配置檔案訪問並驗證渠道響應時

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

概述如何安全配置釘釘 Stream 機器人並驗證 Gateway;不要複製文件中的憑證、安裝外掛或實際修改配置。

月度資料趨勢

累計下載1359
42892814282026-03 · 累計下載 4972026-05 · 累計下載 8082026-06 · 累計下載 9142026-07 · 累計下載 10812026-08 · 累計下載 11652026-09 · 累計下載 135926-0326-09
星標-
0112026-03 · 星標 -2026-05 · 星標 -2026-06 · 星標 -2026-07 · 星標 -2026-08 · 星標 -2026-09 · 星標 -26-0326-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-091359—-
2026-081165+7.8%-
2026-071081+18.3%-
2026-06914+13.1%-
2026-05808—-
2026-03497—-

SKILL.md 原文

以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。

5.9 KB · ClawHub v0.1.0
---
name: dingtalk-setup
description: "钉钉企业内部机器人渠道快速对接。Use when: 用户需要对接钉钉渠道、配置钉钉 Stream 模式、排查钉钉消息问题。NOT for: 飞书/Lark、企业微信等其他平台。"
homepage: https://github.com/shaoyunhao0107/openclaw-skill-dingtalk-setup
metadata: { "openclaw": { "emoji": "💬", "requires": { "bins": ["openclaw"] } } }
---

# DingTalk Channel Setup

钉钉企业内部机器人渠道快速对接指南。
展開全部(共 274 行)

## When to Use

✅ **USE this skill when:**
- 用户说"对接钉钉"、"配置钉钉机器人"
- 钉钉消息没有响应,需要排查
- 需要安装钉钉插件
- "DingTalk channel setup"

❌ **DON'T use when:**
- 飞书/Lark 配置 → use `feishu` skill
- 企业微信 → use `wecom` skill  
- Telegram/Discord → use respective channel skills

## Prerequisites

确保已准备:
1. 钉钉开放平台企业内部应用(已创建)
2. **Client ID** (AppKey)
3. **Client Secret** (AppSecret)
4. 可选:Robot Code、Corp ID、Agent ID

## Installation

### Step 1: Install Plugin

**国内网络环境(推荐使用镜像):**

```powershell
$env:NPM_CONFIG_REGISTRY="https://registry.npmmirror.com"
openclaw plugins install @soimy/dingtalk
```

**国际网络:**

```bash
openclaw plugins install @soimy/dingtalk
```

**如需代理:**

```powershell
$env:HTTP_PROXY="http://127.0.0.1:7897"
$env:HTTPS_PROXY="http://127.0.0.1:7897"
openclaw plugins install @soimy/dingtalk
```

### Step 2: Enable Plugin

编辑 `~/.openclaw/openclaw.json`,添加插件到白名单:

```json
{
  "plugins": {
    "enabled": true,
    "allow": ["dingtalk"]
  }
}
```

如果已有其他插件,添加到数组中:

```json
{
  "plugins": {
    "allow": ["telegram", "discord", "dingtalk"]
  }
}
```

### Step 3: Configure Channel

**方式一:交互式配置(推荐)**

```bash
openclaw configure --section channels
```

按提示操作:
1. 选择 "Add a new channel"
2. 选择 "DingTalk (钉钉)"
3. 输入 Client ID
4. 输入 Client Secret
5. 选择是否配置完整信息(推荐 Yes)
6. 配置其他选项(DM/Group 策略等)
7. 完成配置

**方式二:手动编辑配置文件**

编辑 `~/.openclaw/openclaw.json`,添加 channel 配置:

```json
{
  "channels": [
    {
      "id": "dingtalk",
      "plugin": "dingtalk",
      "enabled": true,
      "clientId": "your_client_id",
      "clientSecret": "your_client_secret",
      "dm": "open",
      "group": "open"
    }
  ]
}
```

**完整配置示例:**

```json
{
  "id": "dingtalk",
  "plugin": "dingtalk",
  "enabled": true,
  "clientId": "ding3ti4ahg82dsfkwld",
  "clientSecret": "FrpMFcI30c0STvaJJWyMSZoyeb2Hkm9YqXY-6mJ0dGwdN8Xux7mgT_Xn7qnpvO-F",
  "robotCode": "your_robot_code",
  "corpId": "your_corp_id",
  "agentId": "your_agent_id",
  "aiCard": false,
  "dm": "open",
  "group": "open"
}
```

**方式三:自动化脚本(推荐批量部署)**

使用提供的 PowerShell 脚本:

```powershell
.\scripts\auto-setup.ps1 -ClientId "your_id" -ClientSecret "your_secret"
```

完整参数:

```powershell
.\scripts\auto-setup.ps1 `
    -ClientId "ding3ti4ahg82dsfkwld" `
    -ClientSecret "FrpMFcI30c0STvaJJWyMSZoyeb2Hkm9YqXY-6mJ0dGwdN8Xux7mgT_Xn7qnpvO-F" `
    -RobotCode "your_robot_code" `
    -CorpId "your_corp_id" `
    -AgentId "your_agent_id" `
    -UseProxy
```

### Step 4: Restart Gateway

```bash
openclaw gateway restart
```

## Configuration Options

| 参数 | 必需 | 说明 | 默认值 |
|------|------|------|--------|
| `clientId` | ✅ | DingTalk App Key | - |
| `clientSecret` | ✅ | DingTalk App Secret | - |
| `robotCode` | ❌ | 机器人代码 | - |
| `corpId` | ❌ | 企业 ID | - |
| `agentId` | ❌ | 应用 Agent ID | - |
| `aiCard` | ❌ | 启用 AI 互动卡片 | `false` |
| `dm` | ❌ | 私聊策略:`open` / `allowlist` | `open` |
| `group` | ❌ | 群聊策略:`open` / `allowlist` | `open` |

## Verification

测试连接:

```bash
# 检查 Gateway 状态
openclaw gateway status

# 查看日志
openclaw logs gateway

# 列出插件
openclaw plugins list
```

在钉钉中给机器人发送消息,应该能收到回复。

## Troubleshooting

### 插件安装卡住

如果安装停在 "Installing plugin dependencies...":

```bash
cd ~/.openclaw/extensions/dingtalk
rm -rf node_modules package-lock.json
NPM_CONFIG_REGISTRY=https://registry.npmmirror.com npm install
openclaw gateway restart
```

### 机器人无响应

检查清单:

1. ✅ **Gateway 运行中**
   ```bash
   openclaw gateway status
   ```

2. ✅ **插件在白名单**
   检查 `openclaw.json` 中的 `plugins.allow` 包含 `"dingtalk"`

3. ✅ **渠道已启用**
   检查 `channels[].enabled` 为 `true`

4. ✅ **凭证正确**
   在钉钉开放平台验证 Client ID/Secret

5. ✅ **重启 Gateway**
   ```bash
   openclaw gateway restart
   ```

### 网络问题(中国大陆)

```powershell
# 设置 npm 镜像
$env:NPM_CONFIG_REGISTRY="https://registry.npmmirror.com"

# 设置代理(如需要)
$env:HTTP_PROXY="http://127.0.0.1:7897"
$env:HTTPS_PROXY="http://127.0.0.1:7897"
```

### 常见错误

**"Plugin not found"**
- 确认插件已安装:`openclaw plugins list`
- 检查目录存在:`~/.openclaw/extensions/dingtalk`

**"Connection failed"**
- 验证钉钉开放平台凭证
- 检查网络连接
- 查看日志:`openclaw logs gateway`

**"Plugin not loaded"**
- 添加 `dingtalk` 到 `plugins.allow`
- 重启 Gateway

## Files & Locations

- **配置文件**: `~/.openclaw/openclaw.json`
- **插件目录**: `~/.openclaw/extensions/dingtalk`
- **日志**: `openclaw logs gateway`
- **自动化脚本**: `scripts/auto-setup.ps1`

## References

- [插件仓库](https://github.com/soimy/openclaw-channel-dingtalk)
- [OpenClaw 文档](https://docs.openclaw.ai)
- [钉钉开放平台](https://open.dingtalk.com)

## Notes

- 使用 Stream 模式(无需公网 IP)
- 支持私聊和群聊
- AI 互动卡片可选
- 仅支持企业内部应用
- 提供自动化部署脚本

「AI 智慧體」分類下的熱門技能

資料月份:2026-09 · 下載/星標/安裝數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。