基于大众点评截图和商家信息,自动生成标准化的10板块营销策划方案,并输出为 Markdown、钉钉文档或 PPT。
当用户需要以下场景时触发:
从用户或大众点评截图中获取:
| 信息项 | 说明 |
|---|---|
| ------- | ------ |
| 商家名称 | 店名 |
| 品类 | 火锅/日料/烘焙/奶茶/正餐/快餐/西餐/烧烤/咖啡/其他 |
| 城市 | 杭州/上海/北京/深圳/广州/成都/武汉/南京/其他 |
| 客单价 | 人均消费(元) |
| 评分 | 大众点评评分(如4.5) |
| 评价数 | 总评价数量 |
| 特色标签 | 榜单排名、停车、宠物友好、新店开业等 |
| 总预算金额 | 具体数字(如 ¥20,000),允许最低限度超出 |
| 核心诉求 | 拉新/打爆品/提评分/日常维护/冲榜单 |
| 推广平台 | 小红书/抖音/点星(可多选) |
| 要爆文号 | 是/否(如要则预留30%预算,只展示金额不展示数量) |
按照标准10板块模板生成完整方案:
详细模板结构参考:references/template.md
AI生成提示词参考:references/ai-prompts.md
成功案例参考:references/examples.md
支持四种输出格式:
plans/ 目录qclaw_tdoc_mcp_call 直接创建智能文档(推荐)scripts/generate_ppt_v4.py 生成 .pptxscripts/generate_html_slides.py 生成 .html(浏览器直接打开,支持键盘导航)详见 references/kol_price_table.json
精算原则:
kol_price_table.json)预算分配公式(以上海小红书、¥14,000预算、要爆文号为例):
⚠️ 关键:2:1 指的是数量比(千粉篇数:万粉篇数 = 2:1),不是预算比!
总预算:¥14,000
爆文号预留 30%:¥4,200(只展示金额,不展示数量)
腰部剩余 70%:¥9,800
├─ 千粉(篇数是万粉的 2 倍):约49篇 × ¥100(上海千粉不出镜)= ¥4,900
└─ 万粉(篇数是千粉的 1/2):约24篇 × ¥200(上海万粉不出镜)= ¥4,800
素人:80篇(0元,套餐置换)
合计:¥13,900(允许最低限度超出)
注意:不同城市单价不同,计算时必须查 kol_price_table.json 获取对应价格
使用 HTML5 + CSS3 + Vanilla JS 实现,无需任何依赖:
# 从 JSON 数据生成
python3 scripts/generate_html_slides.py plan_data.json "输出文件.html"
特点:
JSON 字段规范(与 PPT 生成器兼容):
{
"merchant": { "name", "category", "location", "hours", "per_capita", "rating", "reviews", "tags", "goal", "budget" },
"insight": { "positive_pct", "neutral_pct", "negative_pct", "top_selling_points", "opportunities", "risks" },
"strategy": { "positioning", "reasons" },
"platform": [{ "name", "goal", "tactics", "expected_result" }],
"content_matrix": { "tier1", "tier2", "tier3", "viral" },
"topics": { "main", "sub", "diff" },
"scripts": [{ "scene", "script" }],
"execution": { "amateur_req", "waist_brief", "head_brief", "viral_brief" },
"budget": { "total_amount", "items" }
}
使用 V4 版本生成器,支持以下特性:
# 从 JSON 数据生成
python3 scripts/generate_ppt_v4.py plan_data.json "输出文件.pptx"
# JSON 数据格式参考 scripts/example_plan_data.json
JSON 字段规范(必须与脚本匹配):
{
"merchant": { "name", "category", "location", "hours", "per_capita", "rating", "reviews", "tags", "goal", "budget" },
"insight": { "positive_pct", "neutral_pct", "negative_pct", "top_selling_points", "opportunities", "risks" },
"strategy": { "positioning", "reasons" },
"platform": [{ "name", "goal", "tactics", "expected_result" }],
"content_matrix": { "tier1", "tier2", "tier3", "viral" },
"topics": { "main", "sub", "diff" },
"scripts": [{ "scene", "script" }],
"execution": { "amateur_req", "waist_brief", "head_brief", "viral_brief" },
"budget": { "total_amount", "items" }
}
关键修复记录(2026-05-18):
s.top.inches > 1.5 → >= 1.5(模板文本框 top=1.50)while len(tf.paragraphs) > 1 → > 0(完全清空避免残留"正文内容...")total_amount 而非 totalPPT 页面结构(15页):
# 使用 qclaw_tdoc_mcp_call 创建智能文档
qclaw_tdoc_mcp_call(
tool_name="create_smartcanvas_by_mdx",
arguments={
"title": "商家名称-营销策划方案",
"mdx": "# 方案内容...",
"content_format": "mdx"
}
)
特点:
⚠️ Windows 用户必读:本 Skill 的 PPT 生成功能依赖 python-pptx 库,需要手动安装。
打开命令提示符(_cmd.exe_)或 PowerShell,输入:
python --version
# 或
python3 --version
Python 3.9.7),说明已安装下载 Python:访问 https://www.python.org/downloads/ ,下载并安装最新版(勾选 "Add Python to PATH")
# 进入 skill 目录
cd %USERPROFILE%\.qclaw\skills\marketing-plan-generator
# 安装依赖
pip install -r requirements.txt
# 使用 pip3(推荐)
pip3 install python-pptx
# 如果 pip3 不可用,尝试 pip
pip install python-pptx
# 如果 pip 也不可用,使用 python -m pip
python -m pip install python-pptx
```bash
python -m pip install python-pptx
```
```bash
pip install --user python-pptx
```
python -c "from pptx import Presentation; print('✅ python-pptx 已成功安装!')"
✅ python-pptx 已成功安装!,说明安装成功ModuleNotFoundError,说明安装失败,请检查步骤 2# 进入 skill 目录
cd %USERPROFILE%\.qclaw\skills\marketing-plan-generator
# 使用示例数据生成 PPT
python scripts\generate_ppt_v4.py scripts\example_plan_data.json 测试输出.pptx
测试输出.pptx,说明环境配置成功assets/ 目录如果不想安装 Python 依赖,可以使用 HTML 幻灯片生成器(无需任何依赖):
python scripts\generate_html_slides.py scripts\example_plan_data.json 测试输出.html
生成的 .html 文件可以直接用浏览器打开,支持键盘导航(←→),适合快速预览和分享。
| 脚本 | 依赖库 | 是否必需 |
|---|---|---|
| ------ | -------- | ---------- |
generate_ppt_v4.py | python-pptx | ✅ 生成 PPT 必需 |
generate_html_slides.py | 无(仅标准库) | ✅ 无需安装 |
validate_plan.py | 无(仅标准库) | ✅ 无需安装 |
upload_to_tencent_docs.py | requests | ⚠️ 上传腾讯文档需要 |
如果不生成 PPT,只需安装 requests:
pip install requests
| 文件 | 用途 |
|---|---|
| ------ | ------ |
| references/template.md | 完整的10板块模板结构 |
| references/ai-prompts.md | 各板块的AI生成提示词 |
| references/examples.md | 已完成的成功案例 |
| references/kol_price_table.json | 达人价格参考表 |
| scripts/generate_ppt_v4.py | PPT生成器源码(V4版本) |
| scripts/generate_html_slides.py | HTML幻灯片生成器源码 |
| scripts/upload_to_tencent_docs.py | 腾讯文档上传辅助脚本 |
共 2 个版本