{
  "name": "Analyze competitor strategy from YouTube & RSS with Gemini AI to Notion & Telegram",
  "nodes": [
    {
      "id": "871f2e3f-b311-4fb0-8c0f-430365aa3259",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -144,
        64
      ]
    },
    {
      "id": "94f99a23-6074-4a45-ac2f-7c345f4b6ea0",
      "name": "YouTube (Competitor A): Search Video",
      "type": "n8n-nodes-base.youTube",
      "position": [
        144,
        -224
      ]
    },
    {
      "id": "8f8876ba-5810-4a51-af01-d961546fc9bb",
      "name": "Apify - Get Dataset Items",
      "type": "@apify/n8n-nodes-apify.apify",
      "position": [
        896,
        -128
      ]
    },
    {
      "id": "ef9f0fb5-710b-4de5-9a52-4d623bda4cd4",
      "name": "Code - Normalize Apify Items",
      "type": "n8n-nodes-base.code",
      "position": [
        1120,
        -128
      ]
    },
    {
      "id": "a34e7448-f0ed-4a78-b649-7d9bea1e810b",
      "name": "Merge (YouTube) (Mode Append)",
      "type": "n8n-nodes-base.merge",
      "position": [
        448,
        -128
      ]
    },
    {
      "id": "c9ff9afd-a5de-4154-bf47-dcf2256d69d3",
      "name": "YouTube (Competitor B): Search Video",
      "type": "n8n-nodes-base.youTube",
      "position": [
        144,
        -32
      ]
    },
    {
      "id": "74a46e76-53b4-416a-9023-6a1e0bb7849a",
      "name": "Apify - Run an Actor",
      "type": "@apify/n8n-nodes-apify.apify",
      "position": [
        672,
        -128
      ]
    },
    {
      "id": "9dc7cbf4-32a5-495e-9136-ed2cc967931f",
      "name": "RSS Feed (Competitor A): TechCrunch",
      "type": "n8n-nodes-base.rssFeedRead",
      "position": [
        144,
        160
      ]
    },
    {
      "id": "c7cb3520-3d62-4676-b0cd-31115a13b4f7",
      "name": "RSS Feed (Competitor B): n8n Blog",
      "type": "n8n-nodes-base.rssFeedRead",
      "position": [
        144,
        352
      ]
    },
    {
      "id": "8227ba9d-9f2f-48df-a3a7-72d64a13db8a",
      "name": "Merge (RSS): Mode Append",
      "type": "n8n-nodes-base.merge",
      "position": [
        448,
        256
      ]
    },
    {
      "id": "a4ea4a59-d8aa-4fc9-b80b-6dae596ddc93",
      "name": "Merge (All Data): Mode Append",
      "type": "n8n-nodes-base.merge",
      "position": [
        1344,
        64
      ]
    },
    {
      "id": "b1936f26-0828-4bb5-b88a-6c1d328a7d99",
      "name": "Code (Data Prep)",
      "type": "n8n-nodes-base.code",
      "position": [
        1568,
        64
      ]
    },
    {
      "id": "dd74498e-fecc-4d59-9002-457c04bf37b1",
      "name": "Google Gemini - Generate",
      "type": "@n8n/n8n-nodes-langchain.googleGemini",
      "position": [
        1792,
        64
      ]
    },
    {
      "id": "93d83705-5488-4d28-af76-9920c4eee683",
      "name": "Telegram: Send Message",
      "type": "n8n-nodes-base.telegram",
      "position": [
        2368,
        -32
      ]
    },
    {
      "id": "2e89d05d-3791-4464-81a9-288d4d806ce0",
      "name": "Code (Build Notion Blocks)",
      "type": "n8n-nodes-base.code",
      "position": [
        2592,
        160
      ]
    },
    {
      "id": "37f4bff9-7a2c-4a39-a9cb-0b84e33dc403",
      "name": "Notion - Create Database Page",
      "type": "n8n-nodes-base.notion",
      "position": [
        2368,
        160
      ]
    },
    {
      "id": "ede0979a-12e6-431f-a7ea-52f7f8553c92",
      "name": "HTTP Request (Notion Append Children)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2816,
        160
      ]
    },
    {
      "id": "b7cdd909-272a-4c99-8db2-f4906eaba205",
      "name": "Code - Robust Parser (Gemini JSON)",
      "type": "n8n-nodes-base.code",
      "position": [
        2144,
        64
      ]
    },
    {
      "id": "91b1f5c5-ebeb-4d2b-8406-045abb4057e7",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -720,
        -400
      ],
      "parameters": {
        "width": 480,
        "height": 944,
        "content": "## AI-Powered Intelligence Watchdog: YouTube & RSS to Telegram & Notion\n\nTransform how you track market rivals. Instead of drowning in noise, this workflow acts as your dedicated **AI Strategy Analyst"
      }
    },
    {
      "id": "ece84946-03c8-4155-9688-555ea666d1e9",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -176,
        -368
      ],
      "parameters": {
        "width": 480,
        "height": 880,
        "content": "## 1. Data Sources (User Config)\n* **Setup:** Enter `Channel ID` for YouTube & `URL` for RSS nodes.\n* **Scale Up:** To track more competitors, duplicate these nodes and connect them to the **Merge** n"
      }
    },
    {
      "id": "ef79b0ad-978d-4e77-9e59-8a6775fb8369",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        384,
        -368
      ],
      "parameters": {
        "width": 864,
        "height": 800,
        "content": "## 2. Ingestion & Transcripts\n* **Aggregation:** Combines data from all sources.\n* **Deep Dive:** Triggers **Apify** to fetch full transcripts for all new YouTube videos found.\n* **Normalization:** St"
      }
    },
    {
      "id": "5c695a4c-fab5-4c52-97ef-4221f8d11a9c",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1312,
        -160
      ],
      "parameters": {
        "width": 736,
        "height": 416,
        "content": "## 3. AI Strategy Core\n* **Data Prep:** Deduplicates items (Static Data) & prepares context.\n* **Gemini Analyst:** Reads content to extract \"Strategy\", \"Tone\", and \"Counter-Tactics\"."
      }
    },
    {
      "id": "c78df5b9-4568-481d-92ac-1af11cd67747",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2112,
        -160
      ],
      "parameters": {
        "width": 880,
        "height": 512,
        "content": "## 4. Professional Reporting\n* **Telegram:** Sends an executive HTML summary.\n* **Notion:** Archives the full report with rich formatting (Headings, Toggles)."
      }
    }
  ],
  "connections": {
    "Code (Data Prep)": {
      "main": [
        [
          {
            "node": "Google Gemini - Generate",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "YouTube (Competitor A): Search Video",
            "type": "main",
            "index": 0
          },
          {
            "node": "YouTube (Competitor B): Search Video",
            "type": "main",
            "index": 0
          },
          {
            "node": "RSS Feed (Competitor A): TechCrunch",
            "type": "main",
            "index": 0
          },
          {
            "node": "RSS Feed (Competitor B): n8n Blog",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Apify - Run an Actor": {
      "main": [
        [
          {
            "node": "Apify - Get Dataset Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini - Generate": {
      "main": [
        [
          {
            "node": "Code - Robust Parser (Gemini JSON)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge (RSS): Mode Append": {
      "main": [
        [
          {
            "node": "Merge (All Data): Mode Append",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Apify - Get Dataset Items": {
      "main": [
        [
          {
            "node": "Code - Normalize Apify Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code (Build Notion Blocks)": {
      "main": [
        [
          {
            "node": "HTTP Request (Notion Append Children)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code - Normalize Apify Items": {
      "main": [
        [
          {
            "node": "Merge (All Data): Mode Append",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge (All Data): Mode Append": {
      "main": [
        [
          {
            "node": "Code (Data Prep)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge (YouTube) (Mode Append)": {
      "main": [
        [
          {
            "node": "Apify - Run an Actor",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Notion - Create Database Page": {
      "main": [
        [
          {
            "node": "Code (Build Notion Blocks)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "RSS Feed (Competitor B): n8n Blog": {
      "main": [
        [
          {
            "node": "Merge (RSS): Mode Append",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Code - Robust Parser (Gemini JSON)": {
      "main": [
        [
          {
            "node": "Notion - Create Database Page",
            "type": "main",
            "index": 0
          },
          {
            "node": "Telegram: Send Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "RSS Feed (Competitor A): TechCrunch": {
      "main": [
        [
          {
            "node": "Merge (RSS): Mode Append",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "YouTube (Competitor A): Search Video": {
      "main": [
        [
          {
            "node": "Merge (YouTube) (Mode Append)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "YouTube (Competitor B): Search Video": {
      "main": [
        [
          {
            "node": "Merge (YouTube) (Mode Append)",
            "type": "main",
            "index": 1
          }
        ]
      ]
    }
  }
}