name: "竞品分析报告"
description: "趋势研究 → 数据分析 + SEO 竞品扫描 → 高管摘要，输出一份可直接汇报的竞品报告"

agents_dir: "agency-agents-zh"

llm:
  provider: "deepseek"
  model: "deepseek-chat"
  max_tokens: 4096

concurrency: 2

inputs:
  - name: product
    description: "你的产品/服务名称和简介"
    required: true
  - name: competitors
    description: "竞品名称（逗号分隔，如：飞书,钉钉,企业微信）"
    required: true
  - name: focus
    description: "分析重点（如：定价策略、用户增长、功能差异）"
    required: false
    default: "功能差异、定价策略、市场定位"

steps:
  - id: trend_research
    role: "product/product-trend-researcher"
    task: |
      请对以下产品和竞品进行市场趋势研究：

      我方产品：{{product}}
      竞品：{{competitors}}
      重点关注：{{focus}}

      请输出：
      1. 行业整体趋势（3-5 个关键趋势）
      2. 各竞品最近 6 个月的重大动作（产品发布、融资、合作等）
      3. 市场规模和增长预测
      4. 技术趋势和风口判断
    output: trend_report

  - id: data_analysis
    role: "support/support-analytics-reporter"
    task: |
      基于以下趋势研究，进行定量竞品对比分析：

      {{trend_report}}

      竞品列表：{{competitors}}
      分析重点：{{focus}}

      请输出：
      1. 功能对比矩阵（表格形式，列出各家核心功能的有/无/强/弱）
      2. 定价策略对比（免费版/付费版/企业版各档位）
      3. 用户评价分析（主要好评点和差评点）
      4. SWOT 分析（我方 vs 各竞品）
    output: data_report
    depends_on: [trend_research]

  - id: seo_scan
    role: "marketing/marketing-seo-specialist"
    task: |
      从 SEO 和内容营销角度分析以下竞品：

      {{trend_report}}

      竞品列表：{{competitors}}

      请输出：
      1. 各竞品内容策略分析（博客频率、主题方向、SEO 关键词布局）
      2. 搜索可见度对比（哪些关键词谁排名更好）
      3. 社交媒体声量对比
      4. 内容营销机会点（竞品忽略但有价值的领域）
    output: seo_report
    depends_on: [trend_research]

  - id: executive_summary
    role: "support/support-executive-summary-generator"
    task: |
      请将以下竞品分析整合成一份高管可读的摘要报告：

      ## 市场趋势
      {{trend_report}}

      ## 数据对比
      {{data_report}}

      ## SEO 与内容分析
      {{seo_report}}

      输出格式：
      1. **一句话结论**：我方竞争地位
      2. **核心发现**（3-5 条，每条 1-2 句话）
      3. **威胁与机会**（各 3 条）
      4. **建议行动**（按优先级排序，每条包含负责人建议和时间框架）
      5. **完整对比表**（保留数据分析中的功能矩阵）

      风格：简洁、数据驱动、可直接用于汇报。
    depends_on: [data_analysis, seo_scan]
