with one click
sales-dashboard
销售仪表盘,渐进式数据概览 + 周报月报
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
销售仪表盘,渐进式数据概览 + 周报月报
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
动态定价引擎,铜价/数量阶梯/客户等级/汇率计算
审批流程引擎,报价审批 + 异常处理
邮件智能回复系统,自动识别客户意图并生成个性化回复草稿
订单管理系统,状态跟踪 + 客户通知
生成专业收款通知,支持 HTML/PDF 格式,自动集成银行账户信息
Use when a sales workflow needs single-company customer background research, buyer/contact discovery, email verification, lead-fit scoring, source-backed outreach angles, or company dossier generation.
| name | sales-dashboard |
| description | 销售仪表盘,渐进式数据概览 + 周报月报 |
| metadata | {"openclaw":{"emoji":"📈","requires":{"anyBins":["node"]}}} |
渐进式销售数据概览,从 OKKI CRM 和 Campaign Tracker 采集核心指标,生成周报/月报,通过 Discord 推送。
scripts/
├── data-collector.js # 数据采集(OKKI API + 可选数据源)
├── metrics-calculator.js # 指标计算(漏斗 + 环比 + 异常检测)
├── report-generator.js # Markdown 报告生成(周报/月报)
└── discord-push.js # Discord 推送(自动分片 >1800 字符)
config/
└── dashboard-config.json # KPI 定义 / 数据源映射 / 告警阈值
data/
├── latest.json # 最新一次采集的指标
├── calculated.json # 计算后的指标(含漏斗/告警)
├── snapshots/ # 历史快照({period}-{date}.json)
└── reports/ # Markdown 报告
| 数据源 | 必选 | 类型 | 说明 |
|---|---|---|---|
| OKKI CRM | ✅ | API | 客户/订单/报价/线索/商机 |
| campaign-tracker | ❌ | 文件 | 邮件发送量/回复率 |
| follow-up-engine | ❌ | 文件 | 跟进数据 |
| order-tracker | ❌ | 文件 | 订单跟踪 |
| customer-segmentation | ❌ | 文件 | 客户分群 |
| pricing-engine | ❌ | 文件 | 定价数据 |
缺失的可选数据源显示 N/A,不报错。
node scripts/data-collector.js --period weekly [--date 2026-03-24] [--dry-run]
node scripts/data-collector.js --period monthly [--date 2026-03-01]
node scripts/metrics-calculator.js --check-alerts
node scripts/report-generator.js --period weekly [--dry-run]
node scripts/report-generator.js --period monthly
# 推送最新周报
node scripts/discord-push.js --latest-report weekly
# 推送指定报告
node scripts/discord-push.js --report data/reports/weekly-2026-03-24.md
# 手动告警
node scripts/discord-push.js --alert "⚠️ 订单金额异常下降"
| 任务 | Cron ID | 时间 | 说明 |
|---|---|---|---|
| 周报 | bbdf51a8-36e0-4ee9-824b-0c92f7a44bf1 | 每周一 09:00 CST | 采集 + 计算 + 生成 + 推送 |
| 月报 | 13e4378e-655e-4082-8bc0-c8fbd8e91c12 | 每月 1 日 09:00 CST | 采集 + 计算 + 生成 + 推送 |
| 指标 | 条件 | 阈值 |
|---|---|---|
| 邮件回复率 | 低于 | 10% |
| 订单金额 | 环比下降超 | 50% |
| 周订单数 | 等于 | 0 |
每次采集保存 data/snapshots/{period}-{date}.json,永不覆盖。
data/latest.json 每次更新为最新数据。
环比计算自动读取上一期快照。
版本: 1.0.1 创建: 2026-03-25 更新: 2026-03-25