一键导入
qianchuan-dingtalk
DingTalk robot integration for Qianchuan. 5 push types, Outgoing callback for @robot queries, webhook signing, SOP panel config UI.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
DingTalk robot integration for Qianchuan. 5 push types, Outgoing callback for @robot queries, webhook signing, SOP panel config UI.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
CDP-based real-click executor for Qianchuan control tasks. Covers create_boost_task, create_oneclick_task, pause_task, previewTask, and the screenshot verification chain. Use when debugging CDP click flows, DOM selectors, or action outcomes.
Stabilize the Qianchuan live board metrics route. Use when diagnosing or changing live board collection for order count, order cost, GPM, watch conversion rate, total viewers, online count, exposure watch rate, board-collector.js, or boardCollectStatus in the project workspace.
Check and open the local Qianchuan control dashboard after restarting Terminal or Chrome. Use when the user asks to verify the local panel, backend 8788 service, CDP Chrome 9222, Qianchuan tabs, collector status endpoints, or wants one command that checks everything before opening preview.html.
工程监控、自动修复和告警入口。用于检查千川自动化本地调控台、采集器、CDP 标签页、关键指标异常,并按冷却规则触发只读修复。
Stabilize the Qianchuan live board trend route. Use when diagnosing or changing the opening trend chart, every-minute/5-minute/30-minute granularity, net deal amount trend, board-trend-collector.js, boardTrend, or boardTrendCollectStatus in the project workspace.
Stabilize the Qianchuan live ops hourly collection route. Use when diagnosing or changing single-hour spend, hourly base spend, hourly ROI, hour boost ratio, DOM visual collection, scheduled visual routes, or source-mismatch failures in the project workspace.
| name | qianchuan-dingtalk |
| description | DingTalk robot integration for Qianchuan. 5 push types, Outgoing callback for @robot queries, webhook signing, SOP panel config UI. |
Push failures never block the main flow. Wrap all sends in try/catch. Webhooks use HMAC-SHA256 signing. Outgoing callbacks use sessionWebhook and do not require signing.
| Type | Trigger | Format | Cooldown |
|---|---|---|---|
| 采集异常 | 采集器连续失败 2 次 | Markdown 红色 | 5 分钟/采集器 |
| AI 建议 | 每次 AI 决策(act + observe) | Markdown + reasoning | 无 |
| 执行结果 | 审批后执行完成 | Text | 无 |
| 整点汇总 | 北京时间每小时整点 | Markdown | 1 条/小时 |
| 系统告警 | 追投占比 >= 28% 或 AI 连续 2 次失败关停 | Markdown 红色 | 30 分钟 |
群内 @机器人后,DingTalk POST 到 /api/dingtalk/outgoing(经 ngrok 暴露),再按关键词回复:
| 触发词 | 回复 |
|---|---|
| 盘况 / 状态 / 数据 | 8 行指标摘要 |
| 追投 / 任务 | 追投占比 + 最多 5 条任务 |
| 告警 / 异常 | 告警状态 |
| 汇总 / 今日 | 日累计 |
| 其他 | 引导提示 |
回复通过 sessionWebhook 发送,不需要加签。
配置位于 state.json -> config.dingtalk。相关路由:
POST /api/dingtalk/configGET /api/dingtalk/configPOST /api/dingtalk/test前端入口:投放SOP -> 钉钉通知配置。
不要读取、回显或把真实 webhook / secret 写入代码、日志、文档或界面默认值。
local-backend/lib/dingtalk.jslocal-backend/server.js(notify* 函数和路由)local-backend/public/preview.html(dingtalkConfigPanel)local-backend/public/preview.jslocal-backend/scripts/check-dingtalk.jsnode --check local-backend/lib/dingtalk.js
curl -X POST http://127.0.0.1:8788/api/dingtalk/test