{
  "name": "Analyze trending YouTube videos with Apify, OpenAI, and Google Sheets",
  "nodes": [
    {
      "id": "d0605ee4-1304-4fe7-b0da-55d46bca2428",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        -1040,
        -112
      ]
    },
    {
      "id": "a8006ffd-f3cd-48e9-b62c-89ae9cd4b556",
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "position": [
        -720,
        0
      ]
    },
    {
      "id": "3980893b-c2fb-45e4-911e-2e0a10f5aeb0",
      "name": "Step 1 Results",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -480,
        64
      ]
    },
    {
      "id": "681b01b1-4bd5-4782-969c-286ab571db14",
      "name": "Find Duplicate Entries",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -1024,
        112
      ]
    },
    {
      "id": "ab8658bf-c5f1-402b-99c6-0d1b6d30f63e",
      "name": "YouTube Title Generator",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        -1152,
        304
      ]
    },
    {
      "id": "8c200f72-d742-4117-9291-57c52ba3b278",
      "name": "Analyze Thumbnail",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        -1584,
        304
      ]
    },
    {
      "id": "7b7ecf58-980e-416c-b20c-698d9dd2cb3d",
      "name": "Update Rows",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -448,
        304
      ]
    },
    {
      "id": "7a835dcc-5b53-4a53-b95a-540c59d0a0de",
      "name": "YouTube Video Scrape",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1424,
        80
      ]
    },
    {
      "id": "8ee684c9-d495-4bf2-9e1a-59c0f07ecadd",
      "name": "HTTP Request",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1376,
        304
      ]
    },
    {
      "id": "531bdc95-5403-4abf-9c90-50569fba7f05",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2672,
        -144
      ],
      "parameters": {
        "width": 984,
        "height": 748,
        "content": "### ⚙️ Trending YouTube Videos Research Workflow\n\n### 🧑‍💻 Author: [LeeWei]\n\n---\nAutomates scraping trending videos based on a keyword, filters high-potential ones, analyzes thumbnails and transcripts "
      }
    },
    {
      "id": "b6553d58-da4d-4aba-8660-1b777018feb7",
      "name": "On form submission",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -1648,
        80
      ]
    },
    {
      "id": "05e6cf15-0652-4765-b4d7-90a80ed797b9",
      "name": "Outline Generator",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        -784,
        304
      ]
    }
  ],
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Find Duplicate Entries",
            "type": "main",
            "index": 0
          },
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Merge": {
      "main": [
        [
          {
            "node": "Step 1 Results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request": {
      "main": [
        [
          {
            "node": "YouTube Title Generator",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Step 1 Results": {
      "main": [
        [
          {
            "node": "Analyze Thumbnail",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Analyze Thumbnail": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Outline Generator": {
      "main": [
        [
          {
            "node": "Update Rows",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On form submission": {
      "main": [
        [
          {
            "node": "YouTube Video Scrape",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "YouTube Video Scrape": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Find Duplicate Entries": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "YouTube Title Generator": {
      "main": [
        [
          {
            "node": "Outline Generator",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}