Back to Registry View Author Profile
Official Verified
dingtalk-log
支持发送和查询钉钉日报/周报,可对工作质量总结与评分。
skill-install — Terminal
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/bigint1/dingtalk-dailyOr
钉钉日志管理
任务目标
- 本 Skill 用于:管理钉钉日志(日报、周报)的创建与查询
- 能力包含:发送日志、查询日志列表、获取模板信息、生成工作质量总结
- 触发条件:用户表达"发送日报"、"创建周报"、"查询日志"、"查看我的日报"、"工作总结"等意图
前置准备
- 依赖说明:脚本使用axios进行HTTP请求
npm install axios - 凭证配置:需要钉钉企业内部应用的AppKey和AppSecret
- 已预置凭证:dingtalk_api
- 凭证环境变量:COZE_DINGTALK_API_<skill_id>
操作步骤
场景一:发送日报/周报
流程说明:
- 智能体确认用户意图(日报或周报)及内容
- 调用脚本获取模板信息
- 调用脚本创建并发送日志
详细步骤:
-
获取模板信息
- 调用:
node scripts/get-template.js --userid <用户工号> --template-name <日报|周报> - 返回:模板ID、字段列表及排序信息
- 示例:
node scripts/get-template.js --userid 2010100111 --template-name 日报
- 调用:
-
创建并发送日志
- 调用:
node scripts/create-report.js --userid <用户工号> --template-id <模板ID> --contents '<JSON内容>' [--to-userids <接收人ID列表>] [--to-chat true] - 参数说明:
--userid:创建者工号--template-id:模板ID(从步骤1获取)--contents:日志内容,JSON数组格式,每项包含sort(字段序号)、key(字段名)、content(内容,支持Markdown)--to-userids:接收人工号列表,逗号分隔(可选)--to-chat:是否发送消息通知(可选,默认false)
- 示例:
node scripts/create-report.js \ --userid 2010100111 \ --template-id 17956cc992245de234cb79433a8a231 \ --contents '[{"sort":0,"key":"今日完成工作","content":"完成钉钉日志Skill开发"},{"sort":1,"key":"未完成工作","content":"优化错误处理"},{"sort":2,"key":"需协调工作","content":"无"}]' \ --to-userids user123,user456 \ --to-chat true
- 调用:
场景二:查询日报/周报
流程说明:
- 智能体确认查询时间范围和模板类型
- 调用脚本查询日志列表
- 智能体格式化展示结果
- 智能体生成工作质量总结(新增)
详细步骤:
-
查询日志列表
- 调用:
node scripts/query-report.js --userid <用户工号> --template-name <日报|周报> --start-time <开始时间戳> --end-time <结束时间戳> [--cursor 0] [--size 10] - 参数说明:
--userid:查询用户的工号--template-name:模板名称(日报或周报)--start-time:查询开始时间,Unix时间戳(毫秒)--end-time:查询结束时间,Unix时间戳(毫秒)--cursor:分页游标(可选,默认0)--size:每页数量(可选,默认10)
- 示例:
node scripts/query-report.js \ --userid 2010100111 \ --template-name 日报 \ --start-time 1774800128000 \ --end-time 1774882928000
- 调用:
-
结果处理
- 脚本返回日志列表,包含:创建时间、修改时间、内容、创建者信息等
- 智能体以易读格式展示给用户
Metadata
AI Skill Finder
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skill Add to Configuration
Paste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-bigint1-dingtalk-daily": {
"enabled": true,
"auto_update": true
}
}
}Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.