{
  "name": "YouTube lead generation: Turn comments into enriched prospects with Apify and Gemini AI",
  "nodes": [
    {
      "id": "80b8e575-f28b-4476-be2e-e4408e09e458",
      "name": "When clicking ‘Execute workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -200,
        120
      ]
    },
    {
      "id": "52f7b868-8817-4ff4-92cc-9ef1a31a1b8c",
      "name": "HTTP apify get comments from video",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        460,
        -60
      ]
    },
    {
      "id": "1cd8c9f7-4de2-49a6-83e1-b324e9bc1c32",
      "name": "mark video url as scrapped",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        240,
        180
      ]
    },
    {
      "id": "61fa66e6-eda8-4b0c-b1e1-f096ceda66fe",
      "name": "Get rvideo urls",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        240,
        -60
      ]
    },
    {
      "id": "cb589fa9-6eb6-401f-a6b5-feda95cf45cb",
      "name": "Save scrapped comments",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        680,
        -60
      ]
    },
    {
      "id": "e26c4aab-267f-49ee-8fdb-b94176a645c1",
      "name": "When chat message received",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "position": [
        -80,
        1260
      ]
    },
    {
      "id": "835181c3-3d43-45ac-b824-3e18241c4c6c",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        300,
        1120
      ]
    },
    {
      "id": "b52cb3a0-472a-4947-9ab2-6ee7b662bd0f",
      "name": "OpenRouter Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        80,
        1440
      ]
    },
    {
      "id": "00f70b95-7980-4491-99b1-bc0fc18a7277",
      "name": "get comments",
      "type": "n8n-nodes-base.googleSheetsTool",
      "position": [
        1260,
        1280
      ]
    },
    {
      "id": "acdff41b-c55f-4d7d-8a42-36d58a5bb018",
      "name": "Simple Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        360,
        1440
      ]
    },
    {
      "id": "e44316ce-363b-4c70-8292-706354f4441e",
      "name": "search google",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        600,
        1460
      ]
    },
    {
      "id": "6cca7e09-b87c-47e8-9cac-77b2a0a5e3b8",
      "name": "get url mardown",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        740,
        1460
      ]
    },
    {
      "id": "ac847dda-c6b1-4081-b602-3fc0300a2e3a",
      "name": "create a row for new search user",
      "type": "n8n-nodes-base.googleSheetsTool",
      "position": [
        1140,
        1440
      ]
    },
    {
      "id": "6396b038-a0de-45a7-b848-bc90a870da2e",
      "name": "update result for user",
      "type": "n8n-nodes-base.googleSheetsTool",
      "position": [
        1000,
        1460
      ]
    },
    {
      "id": "54632fac-e65d-46ae-8ad1-9ab53889e5aa",
      "name": "instagram full profile scraper",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        480,
        1440
      ]
    },
    {
      "id": "011caa9d-20f8-42c9-91e7-6e2978a6e308",
      "name": "mark comment as processed",
      "type": "n8n-nodes-base.googleSheetsTool",
      "position": [
        1180,
        1100
      ]
    },
    {
      "id": "337727d9-96f6-4edd-b6dc-c02bb8c76d8c",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -100,
        740
      ]
    },
    {
      "id": "fdf66352-ffaf-4b8c-b529-410401e84bb4",
      "name": "Code",
      "type": "n8n-nodes-base.code",
      "position": [
        80,
        740
      ]
    },
    {
      "id": "e01462f9-48b8-4a3f-b9b6-bbfdc21f844d",
      "name": "Schedule Trigger1",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -240,
        -80
      ]
    },
    {
      "id": "5e9e3db1-9991-40d7-93a3-71ad4bb8236f",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1120,
        -20
      ],
      "parameters": {
        "width": 740,
        "height": 3400,
        "content": "# 🚀 YouTube Lead Generation Workflow\n\nThis document describes a comprehensive workflow designed to automatically extract YouTube video comments, enrich the profiles of comment authors with social medi"
      }
    },
    {
      "id": "c3933a13-08b2-46ad-85d7-fff7f06b0613",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -220,
        480
      ],
      "parameters": {
        "width": 2160,
        "height": 1540,
        "content": "## 🟦 **Section 2: 🕵️ Lead Research & Enrichment (AI Agent)**\n\n"
      }
    },
    {
      "id": "6a0c50de-3b28-4000-857c-6c8c15ebd925",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -320,
        -180
      ],
      "parameters": {
        "width": 1240,
        "height": 580,
        "content": "## ⚙️ **Section 1: 🎥 YouTube Comment Extraction**"
      }
    }
  ],
  "connections": {
    "Code": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "get comments": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "search google": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Get rvideo urls": {
      "main": [
        [
          {
            "node": "HTTP apify get comments from video",
            "type": "main",
            "index": 0
          },
          {
            "node": "mark video url as scrapped",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "get url mardown": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger1": {
      "main": [
        [
          {
            "node": "Get rvideo urls",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenRouter Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Save scrapped comments": {
      "main": [
        []
      ]
    },
    "update result for user": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "mark comment as processed": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "When chat message received": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "mark video url as scrapped": {
      "main": [
        []
      ]
    },
    "instagram full profile scraper": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "create a row for new search user": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "HTTP apify get comments from video": {
      "main": [
        [
          {
            "node": "Save scrapped comments",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "Get rvideo urls",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}