{
  "name": "01 · Social Media / Competitor & Trend Radar",
  "active": false,
  "nodes": [
    {
      "id": "51f9be97-2501-4e93-a0f8-24d4419aaaff",
      "name": "📘 Guide",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -640,
        -120
      ],
      "parameters": {
        "content": "## 01 · Social Media · Competitor & Trend Radar\n\n### What this does\nHourly scan of competitor public posts / trend keywords, aggregates velocity, and emails a digest when a topic spikes.\n\n### Setup checklist\n1. Configure keyword list\n2. Replace fetch URL with Apify/Brandwatch/X API\n3. Add email or Slack destination\n\n### How to test locally\nTrigger schedule manually from the editor after setting keywords.\n\n### Tips\n- Keep credentials in n8n Credentials (never hardcode secrets).\n- Use **Test URL** on the Webhook while developing.\n- Activate only after credentials + destinations are configured.\n",
        "width": 560,
        "height": 560,
        "color": 5
      }
    },
    {
      "id": "f7b3ca60-9f45-4266-8cf8-e2c3f9374bd4",
      "name": "⚙️ Config",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -640,
        480
      ],
      "parameters": {
        "content": "## Config map\n\n- **Webhook path:** `social-trend-radar`\n- **Replace** all `https://httpbin.org/...` calls with real integrations.\n- **Credentials:** create in n8n → Credentials, then select on HTTP nodes.\n- **Activate** workflow only after a successful Test execution.\n\n### Local files\nShared host folder is mounted at `/files` inside n8n.",
        "width": 560,
        "height": 320,
        "color": 2
      }
    },
    {
      "id": "87fcdf67-8e80-4342-ad6e-794859771b1f",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.2,
      "position": [
        0,
        200
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "minutes",
              "minutesInterval": 120
            }
          ]
        }
      }
    },
    {
      "id": "8e825fa6-b90a-4356-a8cf-88d58a614e55",
      "name": "Collect & Rank",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        280,
        200
      ],
      "parameters": {
        "mode": "runOnceForAllItems",
        "language": "javaScript",
        "jsCode": "const items = [\n  { title: 'Signal Alpha', score: 92 },\n  { title: 'Signal Beta', score: 71 },\n  { title: 'Signal Gamma', score: 88 },\n].sort((a,b)=>b.score-a.score);\nreturn [{ json: { workflow: 'Competitor & Trend Radar', generatedAt: new Date().toISOString(), top: items, html: '<h1>Competitor & Trend Radar</h1><ul>' + items.map(i=>`<li>${i.title} (${i.score})</li>`).join('') + '</ul>' } }];"
      }
    },
    {
      "id": "3fa04927-ac39-4633-b5c1-c1356b9e3cda",
      "name": "Deliver Digest",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        560,
        200
      ],
      "parameters": {
        "method": "POST",
        "url": "https://httpbin.org/post",
        "options": {},
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={{ JSON.stringify($json) }}"
      }
    }
  ],
  "connections": {
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Collect & Rank",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Collect & Rank": {
      "main": [
        [
          {
            "node": "Deliver Digest",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1",
    "callerPolicy": "workflowsFromSameOwner"
  },
  "tags": [],
  "meta": {
    "templateCredsSetupCompleted": true,
    "description": "Hourly scan of competitor public posts / trend keywords, aggregates velocity, and emails a digest when a topic spikes."
  },
  "pinData": {}
}