← 返回 Skills 市场
lm203688

Marketing Automation CLI

作者 lm203688 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ pending
21
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install marketing-automation-cli
功能描述
Automate marketing workflows across Feishu, DingTalk, and WeCom using their official CLIs. Teach AI agents how to orchestrate content creation, multi-channel...
使用说明 (SKILL.md)

Marketing Automation CLI - 营销自动化CLI编排专家

You are an expert at automating marketing workflows across Feishu, DingTalk, and WeCom using their official CLI tools. You orchestrate the full marketing lifecycle: content creation → distribution → tracking → reporting.

Core Philosophy

Marketing is a pipeline, not a broadcast. Every piece of content should flow through: Create → Review → Distribute → Track → Report. Your workflows automate the handoffs between these stages across platforms.

Platform Marketing Strengths

Platform Marketing Strength Best For
Feishu Docs, Slides, Base, Mail Content creation, data analysis, reporting
DingTalk DING, AI Sheet, Approval Sales alerts, campaign approval, team coordination
WeCom Customer groups, SmartSheet Customer engagement, lead tracking, external comms

Workflow Templates

Workflow 1: 内容创作流水线 (Content Creation Pipeline)

Scenario: Create marketing content in Feishu, review, format for each platform, distribute.

# Step 1: Create content draft in Feishu Doc
lark doc create --title "营销文案 $(date +%Y%m%d) - 新品发布" --folder \x3Cmarketing_folder>

# Step 2: Write content with structure
lark doc content --token \x3Cdoc_token> --write "# 新品发布营销方案

## 核心卖点
- 卖点1: ...
- 卖点2: ...
- 卖点3: ...

## 目标受众
- 主要: ...
- 次要: ...

## 渠道策略
- 飞书群: 详细介绍 + 产品文档
- 钉钉: DING销售团队 + 简洁卖点
- 企微客户群: 客户版文案 + 购买链接

## 时间线
- T-3: 预热
- T-0: 发布
- T+1: 跟进
- T+7: 复盘"

# Step 3: Create presentation for leadership review
lark slide create --title "新品发布营销方案" --folder \x3Cmarketing_folder>

# Step 4: Submit for approval via DingTalk
dws approval create --definition \x3Cmarketing_approval_code> \
  --data '{"title":"新品发布营销方案","budget":"50000","channels":"飞书+钉钉+企微"}'

# Step 5: On approval, proceed to distribution (Workflow 2)

Workflow 2: 多渠道营销发布 (Multi-Channel Campaign Launch)

Scenario: Distribute approved marketing content across all platforms with platform-appropriate formatting.

# Step 1: Prepare platform-specific versions
# Feishu version: Rich markdown with images and links
lark message send --chat \x3Cmarketing_chat> --markdown "# 🎉 新品发布

## ✨ 产品亮点
- 亮点1: 详细说明...
- 亮点2: 详细说明...
- 亮点3: 详细说明...

📄 [完整产品文档](doc_link)
📊 [数据报告](base_link)"

# DingTalk version: DING sales team with action items
dws ding send --users "\x3Csales_team>" \
  --text "🎯 新品发布!核心卖点: 1)xxx 2)xxx 3)xxx | 客户话术已更新,请跟进意向客户"

# WeCom version: Customer-facing with purchase links
wecom message send --chat \x3Ccustomer_group_1> \
  --markdown "# 🎉 新品发布

产品介绍...

🔗 [立即购买](purchase_link)
📞 [咨询详情](contact_link)"

wecom message send --chat \x3Ccustomer_group_2> \
  --markdown "# 🎉 新品发布

产品介绍...

🔗 [立即购买](purchase_link)
📞 [咨询详情](contact_link)"

# Step 2: Schedule follow-up reminders
dws calendar event create \
  --summary "营销跟进: 新品发布 T+1" \
  --start "2026-05-27T10:00:00" \
  --end "2026-05-27T10:30:00"

# Step 3: Log campaign launch
lark base record add --app \x3Cmarketing_base> --table \x3Ccampaigns_table> \
  --data '{"name":"新品发布","launch_date":"2026-05-26","channels":"feishu+dingtalk+wecom","status":"active"}'

Workflow 3: 销售线索追踪 (Lead Tracking Pipeline)

Scenario: Capture leads from WeCom, track in SmartSheet/Base, alert sales via DING.

# Step 1: Check new leads from WeCom customer interactions
wecom sheet record list --sheet \x3Clead_sheet> --filter '{"status":"new"}'

# Step 2: Enrich leads with contact info
wecom contact search --name "\x3Clead_name>"

# Step 3: Sync leads to Feishu Base for unified tracking
lark base record add --app \x3Ccrm_base> --table \x3Cleads_table> \
  --data '{"name":"\x3Clead_name>","source":"wecom","interest":"新品","status":"new","created":"2026-05-26"}'

# Step 4: Assign to sales rep and DING
dws ding send --users "\x3Csales_rep_id>" \
  --text "🎯 新线索: \x3Clead_name> | 来源: 企微 | 兴趣: 新品 | 请24小时内跟进"

# Step 5: Create follow-up task
dws todo create \
  --subject "跟进线索: \x3Clead_name>" \
  --due "2026-05-27" \
  --assignee "\x3Csales_rep_id>" \
  --priority high

# Step 6: Track in AI Sheet
dws sheet record add --sheet \x3Csales_pipeline> \
  --data '{"lead":"\x3Clead_name>","rep":"\x3Csales_rep>","stage":"contacted","next_action":"电话跟进","deadline":"2026-05-27"}'

# Step 7: Escalate if no follow-up within 24h
# (Run as scheduled check)
uncontacted=$(dws sheet record list --sheet \x3Csales_pipeline> \
  --filter '{"stage":"new","created_before":"1d ago"}' --format json)
if [ "$(echo "$uncontacted" | jq 'length')" -gt 0 ]; then
  dws ding send --users "\x3Csales_manager>" \
    --text "⚠️ 有$(echo "$uncontacted" | jq 'length')条线索超过24小时未跟进"
fi

Workflow 4: 营销数据看板 (Marketing Performance Dashboard)

Scenario: Collect data from all platforms, aggregate in Base, generate report, distribute.

# Step 1: Collect metrics from each platform
# WeCom customer engagement
wecom sheet record list --sheet \x3Cengagement_sheet> --format json

# DingTalk sales activity
dws sheet record list --sheet \x3Csales_sheet> --format json

# Feishu content performance
lark base record list --app \x3Cmarketing_base> --table \x3Cmetrics_table> --format json

# Step 2: Aggregate into unified dashboard
lark base record add --app \x3Cdashboard_base> --table \x3Cdaily_metrics> \
  --data '{
    "date": "2026-05-26",
    "wecom_opens": "\x3Cvalue>",
    "wecom_clicks": "\x3Cvalue>",
    "dingtalk_responses": "\x3Cvalue>",
    "feishu_reads": "\x3Cvalue>",
    "leads_generated": "\x3Cvalue>",
    "conversion_rate": "\x3Cvalue>"
  }'

# Step 3: Generate performance report
lark doc create --title "营销日报 $(date +%Y%m%d)" --folder \x3Creports_folder>
lark doc content --token \x3Cdoc_token> --write "# 营销日报 $(date +%Y-%m-%d)

## 关键指标
| 指标 | 今日 | 昨日 | 变化 |
|------|------|------|------|
| 企微触达 | xxx | xxx | ↑xx% |
| 钉钉响应 | xxx | xxx | ↑xx% |
| 飞书阅读 | xxx | xxx | ↓xx% |
| 新增线索 | xxx | xxx | ↑xx% |
| 转化率 | xx% | xx% | → |

## 渠道表现
- 企微客户群: 表现最佳,点击率xx%
- 钉钉DING: 响应率xx%,销售跟进及时
- 飞书群: 阅读率xx%,互动较少

## 建议
1. 加大企微渠道投入
2. 优化飞书内容形式
3. 钉钉DING频率控制在每日1次"

# Step 4: Create executive presentation
lark slide create --title "营销日报 $(date +%Y%m%d)" --folder \x3Cpresentations_folder>

# Step 5: Distribute report
lark mail send --to "[email protected]" --subject "营销日报 $(date +%Y%m%d)" \
  --body "日报已生成: \x3Cdoc_link>"
lark message send --chat \x3Cmarketing_chat> --text "📊 营销日报已生成: \x3Cdoc_link>"

# Step 6: Alert on anomalies
if [ \x3Cconversion_rate> -lt \x3Cthreshold> ]; then
  dws ding send --users "\x3Ccmo_id>,\x3Cmarketing_lead>" \
    --text "⚠️ 转化率低于阈值,请关注"
fi

Workflow 5: 客户培育序列 (Customer Nurture Sequence)

Scenario: Automated follow-up sequence for leads across WeCom and DingTalk.

# Day 0: Initial contact
wecom message send --user "\x3Ccustomer_id>" \
  --text "感谢您的关注!这是您感兴趣的产品详情: \x3Clink>"
dws todo create --subject "Day 1跟进: \x3Ccustomer>" --due "2026-05-27" --assignee "\x3Csales_rep>"

# Day 1: Value content
wecom message send --user "\x3Ccustomer_id>" \
  --markdown "# 行业案例分享\
\
看看同行如何使用我们的产品...\
\
📄 [案例文档](link)"
dws ding send --users "\x3Csales_rep>" --text "📋 Day 1内容已发送给 \x3Ccustomer>,请准备电话跟进"

# Day 3: Social proof
wecom message send --user "\x3Ccustomer_id>" \
  --text "📊 已有500+企业选择我们,平均效率提升40%。预约演示: \x3Clink>"

# Day 5: Offer
wecom message send --user "\x3Ccustomer_id>" \
  --markdown "# 🎁 限时优惠\
\
新客户专享8折优惠,截止6/15\
\
🔗 [立即购买](link)"

# Day 7: Final follow-up
dws ding send --users "\x3Csales_rep>" \
  --text "⚠️ \x3Ccustomer> 培育序列已完成,请进行最终跟进"

# Update tracking
lark base record update --app \x3Ccrm_base> --table \x3Cleads_table> \
  --filter '{"name":"\x3Ccustomer>"}' \
  --data '{"nurture_stage":"completed","last_contact":"2026-06-02"}'

Decision Framework

Marketing Request
├── Create content?
│   └── Workflow 1 (Content Creation Pipeline)
├── Launch/distribute campaign?
│   └── Workflow 2 (Multi-Channel Campaign Launch)
├── Track leads?
│   └── Workflow 3 (Lead Tracking Pipeline)
├── Report performance?
│   └── Workflow 4 (Marketing Performance Dashboard)
├── Nurture customers?
│   └── Workflow 5 (Customer Nurture Sequence)
├── Single platform action?
│   ├── Feishu → feishu-workflow-cli
│   ├── DingTalk → dingtalk-todo-cli
│   └── WeCom → Direct wecom command
└── Cross-platform orchestration?
    └── This skill (compose from templates)

Content Format Guide by Platform

Platform Best Format Max Length Rich Media
Feishu Message Markdown Long ✅ Images, links, at-mentions
Feishu Mail HTML/Markdown Unlimited ✅ Full formatting
DingTalk DING Plain text 500 chars ❌ Text only (but guaranteed delivery)
DingTalk Bot Markdown 2000 chars ✅ Links, images
WeCom Customer Markdown 2048 chars ✅ Links, images, mini-programs
WeCom Internal Text/Markdown 2000 chars ✅ Links

Campaign Metrics Tracking

Track these KPIs in your Base/Sheet:

Metric Source Collection Method
Reach (触达) All platforms Message send count
Open rate (打开率) WeCom, Feishu Read receipt data
Click rate (点击率) All platforms Link click tracking
Response rate (响应率) DingTalk DING response data
Lead generation (线索) WeCom SmartSheet new records
Conversion (转化) All platforms CRM Base records
Revenue attribution DingTalk/Feishu Sales Sheet data

Safety Rules

  1. Customer communication consent: Only send marketing messages to opted-in customers
  2. DING for internal only: Never DING external customers — use WeCom message instead
  3. Frequency limits: Max 1 marketing message per customer per day; max 3 per week
  4. Unsubscribe handling: Check opt-out list before sending; respect immediately
  5. Content review: All customer-facing content should go through approval (Workflow 1 Step 4)
  6. Data privacy: Don't share customer data across platforms without consent
  7. A/B testing: When testing variants, use separate customer segments

Prerequisites Check

# Check CLIs
which lark && echo "✅ Feishu" || echo "❌ Feishu"
which dws && echo "✅ DingTalk" || echo "❌ DingTalk"
which wecom && echo "✅ WeCom" || echo "❌ WeCom"

# Check auth
lark auth status
dws auth status
wecom auth status

# Verify marketing-specific access
lark base list --limit 1 2>/dev/null && echo "✅ Base (for tracking)" || echo "❌ Base"
lark slide list --limit 1 2>/dev/null && echo "✅ Slides (for presentations)" || echo "❌ Slides"
dws sheet list --limit 1 2>/dev/null && echo "✅ AI Sheet (for pipeline)" || echo "❌ AI Sheet"
wecom sheet list --limit 1 2>/dev/null && echo "✅ SmartSheet (for leads)" || echo "❌ SmartSheet"

Related Skills

  • feishu-workflow-cli: Deep Feishu workflows (docs, base, mail)
  • dingtalk-todo-cli: DingTalk task management and DING escalation
  • cross-platform-im-cli: General cross-platform IM orchestration
  • This skill: Marketing-specific orchestration across all platforms
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install marketing-automation-cli
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /marketing-automation-cli 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: 5 marketing automation workflow templates (content creation pipeline, multi-channel campaign launch, lead tracking pipeline, marketing performance dashboard, customer nurture sequence) + platform content format guide + campaign metrics tracking framework
元数据
Slug marketing-automation-cli
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Marketing Automation CLI 是什么?

Automate marketing workflows across Feishu, DingTalk, and WeCom using their official CLIs. Teach AI agents how to orchestrate content creation, multi-channel... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 21 次。

如何安装 Marketing Automation CLI?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install marketing-automation-cli」即可一键安装,无需额外配置。

Marketing Automation CLI 是免费的吗?

是的,Marketing Automation CLI 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Marketing Automation CLI 支持哪些平台?

Marketing Automation CLI 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Marketing Automation CLI?

由 lm203688(@lm203688)开发并维护,当前版本 v1.0.0。

💬 留言讨论