ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

Ssa Sales Dashboard

Skill by cjboy007

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/cjboy007/ssa-sales-dashboard
Or

Sales Dashboard 销售仪表盘

描述

渐进式销售数据概览,从 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 CRMAPI客户/订单/报价/线索/商机
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

Discord 推送

# 推送最新周报
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 "⚠️ 订单金额异常下降"

定时任务(OpenClaw cron)

任务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 每次更新为最新数据。 环比计算自动读取上一期快照。

已知问题 & 改进记录

v1.0.1 (2026-03-25)

  • 修复: Campaign Tracker reply_rate 从小数 (0.667) 正确转换为百分比 (66.7%)
  • 修复: Campaign Tracker JSON 报告嵌套 metrics 字段兼容
  • 新增: OpenClaw cron 定时任务(周报 + 月报)已创建
  • 验证: OKKI API 时间过滤正常工作(start_time/end_time/time_type 参数)
  • 验证: 历史快照机制正常(data/snapshots/)
  • 待优化: OKKI 沙盒环境数据为空(全 0),切换生产环境后验证

版本: 1.0.1 创建: 2026-03-25 更新: 2026-03-25

Metadata

Author@cjboy007
Stars3562
Views0
Updated2026-03-29
View Author Profile
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-cjboy007-ssa-sales-dashboard": {
      "enabled": true,
      "auto_update": true
    }
  }
}
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.

Related Skills

logistics

物流管理技能,提供提单生成、报关单据生成、物流跟踪等功能。支持 OKKI 客户数据同步和自动化文档处理。

cjboy007 3562

okki-email-sync

Synchronize email activities and quotation events with OKKI CRM as follow-up trail records. Automatically matches emails to CRM customers via domain lookup and vector search, creates trail records (email type=102, quotation type=101), and deduplicates entries. Requires OKKI CRM API access and optional vector search setup. Use when you need to automatically log email communications and quotation events in your CRM.

cjboy007 3562

follow-up-engine

Automated customer follow-up scheduling and execution engine for B2B sales. Generates personalized follow-up email drafts based on customer stage, last contact date, and follow-up strategy. Integrates with CRM systems (configurable) to sync follow-up records. Use when you need to automate outbound sales follow-ups, schedule reminders, or generate follow-up email content for dormant leads.

cjboy007 3562

报价单工作流

自动化生成报价单(Excel/Word/HTML/PDF),集成数据验证防止示例数据,支持 OKKI CRM

cjboy007 3562

auto-evolution

Multi-agent auto-evolution system — orchestrate review-execute-audit loops with 4 roles (Coordinator, Reviewer, Executor, Auditor). A single coordinator agent drives the loop by spawning sub-agents for review, execution, and audit. Break goals into subtasks, auto-iterate with dual quality gates, and auto-package results. Use when: user wants autonomous task execution with built-in quality assurance.

cjboy007 3562