{
  "name": "Generate YouTube content ideas with Firecrawl, OpenAI and Notion",
  "nodes": [
    {
      "id": "40fb2709-240f-43b0-a33f-f3e60d1848c8",
      "name": "Set Niche",
      "type": "n8n-nodes-base.set",
      "position": [
        -4416,
        -532
      ]
    },
    {
      "id": "11c7bbd8-07ea-4d38-b55a-2477a1a8044a",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -2392,
        -432
      ]
    },
    {
      "id": "7f24a79e-1d36-40c4-878e-5f87cf595b63",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -2264,
        -432
      ]
    },
    {
      "id": "34698409-62aa-4b7e-b819-160e33c75265",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -3072,
        -532
      ]
    },
    {
      "id": "93c15cec-cacc-442a-be28-d6da346c1f4d",
      "name": "Aggregate",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        -928,
        -532
      ]
    },
    {
      "id": "4daadba4-bc4a-4b22-90b9-12f2f3d8444f",
      "name": "ContentIdeas",
      "type": "n8n-nodes-base.set",
      "position": [
        -1824,
        -656
      ]
    },
    {
      "id": "4ff16f55-7e13-44d1-bec2-11fe3ca1a006",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -5264,
        -912
      ],
      "parameters": {
        "width": 496,
        "height": 544,
        "content": "## How it works\n\nThis workflow automates market research by identifying what your audience actually wants. It starts by searching for top-performing YouTube videos in your niche using Firecrawl. The s"
      }
    },
    {
      "id": "e5d3f751-6b5d-4b6e-b1ae-43433a99a9d5",
      "name": "Search YouTube Videos",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -4192,
        -532
      ]
    },
    {
      "id": "b7805e06-4470-47df-b7e6-d80517a0894a",
      "name": "Check Search Status",
      "type": "n8n-nodes-base.if",
      "position": [
        -3968,
        -532
      ]
    },
    {
      "id": "432fd24a-92a7-475d-aa0a-36da792bf266",
      "name": "Parse Video List",
      "type": "n8n-nodes-base.code",
      "position": [
        -3744,
        -532
      ]
    },
    {
      "id": "0f8b256a-409e-4649-8ae3-1e9a80334bb9",
      "name": "Scrape Video Details",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -2848,
        -656
      ]
    },
    {
      "id": "e5a772ed-f6cb-486e-8ddb-489d8d459bb2",
      "name": "Extract Audience Comments",
      "type": "n8n-nodes-base.code",
      "position": [
        -2624,
        -656
      ]
    },
    {
      "id": "b9dc0fce-ba19-4efa-8b0f-0029b28e208c",
      "name": "Identify Strategic Gaps",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -2400,
        -656
      ]
    },
    {
      "id": "53826d14-f904-4b5c-acf7-f8e8d3e815bf",
      "name": "Store Competitor Data",
      "type": "n8n-nodes-base.notion",
      "position": [
        -2048,
        -656
      ]
    },
    {
      "id": "02c19438-38a2-4a6d-b71b-9b50c77d61fc",
      "name": "Store Content Strategy",
      "type": "n8n-nodes-base.notion",
      "position": [
        -1152,
        -656
      ]
    },
    {
      "id": "de7c2258-2e69-43cf-8c3b-778733aab586",
      "name": "Set Video Analysis Limit",
      "type": "n8n-nodes-base.limit",
      "position": [
        -1376,
        -656
      ]
    },
    {
      "id": "e5c45cdf-4d1d-48d9-bb8e-fcb9c5fdde28",
      "name": "Monthly Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -4640,
        -532
      ]
    },
    {
      "id": "07687b5f-6b21-4819-8df2-0636a5512674",
      "name": "Limit Search Results",
      "type": "n8n-nodes-base.limit",
      "position": [
        -3296,
        -532
      ]
    },
    {
      "id": "a63767de-6d1c-4bd4-917f-540dab421534",
      "name": "Split Video Items",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        -3520,
        -532
      ]
    },
    {
      "id": "fad0e94c-d6a0-43ca-896a-e24c05c21964",
      "name": "Split Content Ideas",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        -1600,
        -656
      ]
    },
    {
      "id": "37b57d42-c4e7-44dc-beb3-af6a00b60902",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -4712,
        -916
      ],
      "parameters": {
        "width": 1584,
        "height": 544,
        "content": "## Step 1: Fetch & Filter Videos"
      }
    },
    {
      "id": "da68bc51-954a-4944-ae82-746a88e730bc",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -3120,
        -916
      ],
      "parameters": {
        "width": 640,
        "height": 544,
        "content": "## Step 2: Scrape & Extract Insights"
      }
    },
    {
      "id": "9cd01b0e-750a-46bf-ae9c-3f1422931785",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2448,
        -832
      ],
      "parameters": {
        "width": 320,
        "height": 544,
        "content": "## Step 3: AI Strategy Generation"
      }
    },
    {
      "id": "42a67a0e-afb5-498c-a4aa-ac8fa2d74d69",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2112,
        -916
      ],
      "parameters": {
        "width": 1344,
        "height": 544,
        "content": "## Step 4: Save to Notion"
      }
    }
  ],
  "connections": {
    "Aggregate": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Niche": {
      "main": [
        [
          {
            "node": "Search YouTube Videos",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "ContentIdeas": {
      "main": [
        [
          {
            "node": "Split Content Ideas",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [],
        [
          {
            "node": "Scrape Video Details",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Monthly Trigger": {
      "main": [
        [
          {
            "node": "Set Niche",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse Video List": {
      "main": [
        [
          {
            "node": "Split Video Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Identify Strategic Gaps",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Split Video Items": {
      "main": [
        [
          {
            "node": "Limit Search Results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Search Status": {
      "main": [
        [
          {
            "node": "Parse Video List",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Content Ideas": {
      "main": [
        [
          {
            "node": "Set Video Analysis Limit",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Limit Search Results": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Scrape Video Details": {
      "main": [
        [
          {
            "node": "Extract Audience Comments",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Search YouTube Videos": {
      "main": [
        [
          {
            "node": "Check Search Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Store Competitor Data": {
      "main": [
        [
          {
            "node": "ContentIdeas",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Store Content Strategy": {
      "main": [
        [
          {
            "node": "Aggregate",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Identify Strategic Gaps": {
      "main": [
        [
          {
            "node": "Store Competitor Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Video Analysis Limit": {
      "main": [
        [
          {
            "node": "Store Content Strategy",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Identify Strategic Gaps",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Extract Audience Comments": {
      "main": [
        [
          {
            "node": "Identify Strategic Gaps",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}