{
  "workflow_id": "competitor_price_radar",
  "description": "Autonomous Enterprise Competitor & Feature Radar \u2014 Scans live competitor pricing pages, tracks price changes & new features, and generates an executive intelligence briefing.",
  "tasks": [
    {
      "id": "fetch_openai_pricing",
      "trigger": "manual",
      "action_type": "http_request",
      "target": "https://openai.com/business/pricing/",
      "payload": {
        "method": "GET",
        "strip_html": true
      }
    },
    {
      "id": "fetch_claude_pricing",
      "trigger": "after:fetch_openai_pricing",
      "action_type": "http_request",
      "target": "https://claude.com/pricing",
      "payload": {
        "method": "GET",
        "strip_html": true
      }
    },
    {
      "id": "parse_market_intelligence",
      "trigger": "after:fetch_claude_pricing",
      "action_type": "http_request",
      "target": "http://localhost:11434/v1/chat/completions",
      "payload": {
        "method": "POST",
        "headers": {
          "Content-Type": "application/json"
        },
        "body": {
          "model": "llama3.2:3b",
          "temperature": 0.0,
          "messages": [
            {
              "role": "user",
              "content": "You are a senior market intelligence analyst. Compare the following scraped pricing page texts from two leading AI competitors: OpenAI and Claude (Anthropic). Extract and compare their main subscription tiers (e.g. Pro, Team, Enterprise, etc.) and key pricing points. Highlight feature differences and limitations. Format the analysis as a clean markdown comparison table followed by a 3-bullet executive summary of strategic takeaways.\n\nOpenAI Pricing Page Data:\n{{fetch_openai_pricing}}\n\nClaude Pricing Page Data:\n{{fetch_claude_pricing}}"
            }
          ]
        }
      },
      "output": {
        "store_as": "parse_market_intelligence"
      }
    },
    {
      "id": "generate_briefing_report",
      "trigger": "after:parse_market_intelligence",
      "action_type": "file_op",
      "target": "{{desktop_dir}}/COMPETITOR_RADAR_BRIEFING.md",
      "payload": {
        "operation": "write",
        "content": "# \ud83d\udee1\ufe0f Enterprise Competitor & Feature Radar Briefing\n\n**Generated by Vibra-Ingenn (Vibe Engine)**  \n**Timestamp:** {{current_datetime}}\n\n---\n\n## \ud83d\udcca OpenAI vs Claude Pricing & Feature Comparison\n\n{{parse_market_intelligence.choices[0].message.content}}\n\n---\n\n### \u26a1 Executive Summary & Strategic Takeaways\n- **Target Sources:** Live Scraped Pricing Pages (OpenAI & Claude)\n- **Execution Runtime:** Native Local Engine\n\n*Report compiled deterministically by Vibra-Ingenn Enterprise Engine.*"
      }
    },
    {
      "id": "notify_executive_team",
      "trigger": "after:generate_briefing_report",
      "action_type": "notify",
      "target": "stdout",
      "payload": {
        "message": "\ud83c\udfaf Competitor & Feature Radar Briefing generated successfully on Desktop!"
      }
    }
  ]
}
