{
  "name": "YouTube Videos to Viral X Threads by Keywords (using Gemini & Claude)",
  "nodes": [
    {
      "id": "3434ce2c-2c06-40fe-99cc-12061d75cad3",
      "name": "Filter High-Performing Videos",
      "type": "n8n-nodes-base.filter",
      "position": [
        1400,
        160
      ]
    },
    {
      "id": "f3283a02-4800-4a88-844e-631ec28819a4",
      "name": "Top 5 Videos",
      "type": "n8n-nodes-base.limit",
      "position": [
        1620,
        160
      ]
    },
    {
      "id": "44f42198-ea4f-4287-af3a-2803b59123d6",
      "name": "Structure Thread Data",
      "type": "n8n-nodes-base.code",
      "position": [
        3780,
        160
      ]
    },
    {
      "id": "279bdd2d-192e-46b4-a9c6-e560882cad9e",
      "name": "Save to Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        4000,
        160
      ]
    },
    {
      "id": "40b4834f-483e-4062-8d37-43f79f5ed198",
      "name": "Get videos",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        740,
        160
      ]
    },
    {
      "id": "2cf127e3-d349-40e6-9529-b432003cecf2",
      "name": "Get statistics",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        960,
        160
      ]
    },
    {
      "id": "0a72dcbe-701f-44ab-8e4c-06fe20b35399",
      "name": "Anthropic Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
      "position": [
        3380,
        320
      ]
    },
    {
      "id": "fa98a773-029d-4caa-9677-4103ca5e1477",
      "name": "On form submission",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -20,
        160
      ]
    },
    {
      "id": "0ba3c06e-3aa5-4008-84a7-f266de700095",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -80,
        0
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "9f27c6d7-58fb-43e3-a454-46692c3b371a",
      "name": "Add context file",
      "type": "n8n-nodes-base.code",
      "position": [
        3180,
        160
      ]
    },
    {
      "id": "94b092a3-8a50-40d6-b045-3f7de66e96d6",
      "name": "Clean data",
      "type": "n8n-nodes-base.code",
      "position": [
        2960,
        160
      ]
    },
    {
      "id": "a8a4abe7-3a20-46f2-8539-d170047c9ff3",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        700,
        0
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "ac1c6941-e651-42e4-8ff9-6803bd84d037",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1800,
        0
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "5c8c571d-676a-4e17-ab98-40d5d0bccb1d",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2680,
        0
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "6e302241-7d14-4de3-bcc8-852b40e76db3",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3740,
        0
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "86dc0609-4a1b-4dfe-adfc-220e45af16ac",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3140,
        0
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "a4fe3cb6-a467-492c-b0d6-94692c44ec4e",
      "name": "Split Batch",
      "type": "n8n-nodes-base.code",
      "position": [
        1180,
        160
      ]
    },
    {
      "id": "c0825b3d-e0a5-4922-90fa-7faf3cff8513",
      "name": "Add to Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1840,
        160
      ]
    },
    {
      "id": "004844d5-0ef8-4d4a-bb70-b7896d46a99f",
      "name": "Extract Video Summary",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2740,
        160
      ]
    },
    {
      "id": "faa5d193-070b-45bb-8d75-a34b5fb083e0",
      "name": "Create Threads",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        3400,
        160
      ]
    },
    {
      "id": "ab3fb889-8b41-448b-8404-dce8946ed62b",
      "name": "Key Word + Audience + Tone",
      "type": "n8n-nodes-base.set",
      "position": [
        240,
        160
      ]
    },
    {
      "id": "c53a959b-01c8-4126-9529-f0be1c9d7763",
      "name": "Keys: YT + Gemini",
      "type": "n8n-nodes-base.set",
      "position": [
        500,
        160
      ]
    },
    {
      "id": "fa3d936f-8080-4b45-8814-f72fd1d2fd2e",
      "name": "Wait 30s",
      "type": "n8n-nodes-base.wait",
      "position": [
        2060,
        160
      ]
    },
    {
      "id": "c9270f5e-deb2-482e-928b-7a9f8d35cf69",
      "name": "Filter by 'Yes'",
      "type": "n8n-nodes-base.filter",
      "position": [
        2520,
        160
      ]
    },
    {
      "id": "b72bd25b-dfde-4beb-b0ea-2fc06a53049b",
      "name": "Check if 'Yes'",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2300,
        160
      ]
    }
  ],
  "connections": {
    "Wait 30s": {
      "main": [
        [
          {
            "node": "Check if 'Yes'",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Clean data": {
      "main": [
        [
          {
            "node": "Add context file",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get videos": {
      "main": [
        [
          {
            "node": "Get statistics",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Batch": {
      "main": [
        [
          {
            "node": "Filter High-Performing Videos",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Top 5 Videos": {
      "main": [
        [
          {
            "node": "Add to Google Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check if 'Yes'": {
      "main": [
        [
          {
            "node": "Filter by 'Yes'",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Threads": {
      "main": [
        [
          {
            "node": "Structure Thread Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get statistics": {
      "main": [
        [
          {
            "node": "Split Batch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter by 'Yes'": {
      "main": [
        [
          {
            "node": "Extract Video Summary",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add context file": {
      "main": [
        [
          {
            "node": "Create Threads",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Keys: YT + Gemini": {
      "main": [
        [
          {
            "node": "Get videos",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On form submission": {
      "main": [
        [
          {
            "node": "Key Word + Audience + Tone",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add to Google Sheets": {
      "main": [
        [
          {
            "node": "Wait 30s",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Anthropic Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Create Threads",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Extract Video Summary": {
      "main": [
        [
          {
            "node": "Clean data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structure Thread Data": {
      "main": [
        [
          {
            "node": "Save to Google Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Key Word + Audience + Tone": {
      "main": [
        [
          {
            "node": "Keys: YT + Gemini",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter High-Performing Videos": {
      "main": [
        [
          {
            "node": "Top 5 Videos",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}