{
  "name": "Multilingual YouTube metadata translator with Gemini AI and Google Sheets",
  "nodes": [
    {
      "id": "26bda9e3-2fe0-479a-a46b-a37940a56c9b",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -1060,
        -1440
      ]
    },
    {
      "id": "f2e103fd-ac19-4c6b-bc25-d374dbd1b641",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -3900,
        -1440
      ]
    },
    {
      "id": "8ad0e2cd-3be8-4f12-8e44-539c7ae76f97",
      "name": "Get Language List",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -1320,
        -1440
      ]
    },
    {
      "id": "e04a3c36-0bd6-4cc6-bcf1-3d490007f33a",
      "name": "Parse Data To JSON",
      "type": "n8n-nodes-base.code",
      "position": [
        -580,
        -1280
      ]
    },
    {
      "id": "3c93cd87-e161-4f3b-912b-a8111cf3b2a8",
      "name": "Set Languages - New",
      "type": "n8n-nodes-base.set",
      "position": [
        -400,
        -1280
      ]
    },
    {
      "id": "e7ccb483-aeac-4a95-93a5-7d5c85e42722",
      "name": "AI",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        -920,
        -1280
      ]
    },
    {
      "id": "600be5f6-983e-44ea-9678-06852cc83497",
      "name": "Update Status - Success",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        400,
        -1560
      ]
    },
    {
      "id": "3d163ede-31fa-42a4-876d-7a74014e250e",
      "name": "Update Status - Error",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        400,
        -1360
      ]
    },
    {
      "id": "3a6563eb-2f69-447d-a544-da3ab293d148",
      "name": "Prepare Values",
      "type": "n8n-nodes-base.set",
      "position": [
        -3680,
        -1440
      ]
    },
    {
      "id": "49c26bcc-640f-4448-aa91-da11e2117f96",
      "name": "Get Auto Crawl Status",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -3360,
        -1260
      ]
    },
    {
      "id": "ca243a16-7adf-466d-b4d1-09817ff943c9",
      "name": "Check Auto Crawl Status",
      "type": "n8n-nodes-base.if",
      "position": [
        -3140,
        -1260
      ]
    },
    {
      "id": "9649a75e-dd9d-4965-87c8-265453bfa569",
      "name": "Merge All Languages",
      "type": "n8n-nodes-base.code",
      "position": [
        -80,
        -1460
      ]
    },
    {
      "id": "4ff77c6a-9a83-40db-9516-ed13a69f682d",
      "name": "Get Video URL",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -1980,
        -1440
      ]
    },
    {
      "id": "ebf0b684-3289-4a43-8b22-e92bb3e55372",
      "name": "Extract Video ID",
      "type": "n8n-nodes-base.code",
      "position": [
        -1800,
        -1440
      ]
    },
    {
      "id": "b0f90d46-aafc-4027-9bd7-bb1a598e6d65",
      "name": "Get Video Info",
      "type": "n8n-nodes-base.youTube",
      "position": [
        -1620,
        -1440
      ]
    },
    {
      "id": "4a841e42-8e87-41d4-958c-3dab1c1bea2a",
      "name": "Youtube - Get Lastest Video",
      "type": "n8n-nodes-base.youTube",
      "position": [
        -2920,
        -1260
      ]
    },
    {
      "id": "c1857ba5-8b74-4552-8f66-e6082055f2bf",
      "name": "Check Latest Video ID",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -2700,
        -1260
      ]
    },
    {
      "id": "23771d89-e6b1-41a7-9c0c-ae9b129bf04a",
      "name": "If Video ID Not Exist Yet",
      "type": "n8n-nodes-base.if",
      "position": [
        -2480,
        -1260
      ]
    },
    {
      "id": "0c392fad-2209-4636-89e1-a4ba59662177",
      "name": "Insert Video Info",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -2260,
        -1260
      ]
    },
    {
      "id": "97bdee40-86e3-4ac9-867a-4f40bc5f6e8e",
      "name": "Update Video Metadata with Selected Languages",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        140,
        -1460
      ]
    },
    {
      "id": "789d312b-b42c-4c41-a826-fe8749bc5825",
      "name": "Google Gemini's Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        -920,
        -1120
      ]
    },
    {
      "id": "4b5f94a6-8824-42df-8ffb-254157821dab",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -4060,
        -1860
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "8f7a28ef-fd97-419a-b510-e005f26e99af",
      "name": "Sticky Note10",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2040,
        -1860
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "00c32941-3273-4787-922f-36ac18ae9bc7",
      "name": "Sticky Note11",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1420,
        -1860
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "5d3fcf35-ebc0-4cea-bce7-43be6efb0e48",
      "name": "Sticky Note12",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -160,
        -1860
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "96387528-13b0-4e56-bd24-3bbddb387ff9",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -3400,
        -1860
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "5925802b-0858-422e-a472-4524f95cd204",
      "name": "Sticky Note17",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -6300,
        -1860
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "e8f2bc25-d167-48e5-871b-731848955755",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -5180,
        -1860
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    }
  ],
  "connections": {
    "AI": {
      "main": [
        [
          {
            "node": "Parse Data To JSON",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Video URL": {
      "main": [
        [
          {
            "node": "Extract Video ID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Video Info": {
      "main": [
        [
          {
            "node": "Get Language List",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Values": {
      "main": [
        [
          {
            "node": "Get Auto Crawl Status",
            "type": "main",
            "index": 0
          },
          {
            "node": "Get Video URL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [
          {
            "node": "Merge All Languages",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "AI",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Video ID": {
      "main": [
        [
          {
            "node": "Get Video Info",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Prepare Values",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Language List": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Insert Video Info": {
      "main": [
        [
          {
            "node": "Get Video URL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse Data To JSON": {
      "main": [
        [
          {
            "node": "Set Languages - New",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge All Languages": {
      "main": [
        [
          {
            "node": "Update Video Metadata with Selected Languages",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Languages - New": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Latest Video ID": {
      "main": [
        [
          {
            "node": "If Video ID Not Exist Yet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Auto Crawl Status": {
      "main": [
        [
          {
            "node": "Check Auto Crawl Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Auto Crawl Status": {
      "main": [
        [
          {
            "node": "Youtube - Get Lastest Video",
            "type": "main",
            "index": 0
          }
        ],
        []
      ]
    },
    "If Video ID Not Exist Yet": {
      "main": [
        [
          {
            "node": "Insert Video Info",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini's Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Youtube - Get Lastest Video": {
      "main": [
        [
          {
            "node": "Check Latest Video ID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update Video Metadata with Selected Languages": {
      "main": [
        [
          {
            "node": "Update Status - Success",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Update Status - Error",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}