{
  "name": "Generate avatar snippet videos from Google Sheets scripts in Google Drive",
  "nodes": [
    {
      "id": "2bc75899-e75c-4b28-a82c-ef48f3a9f931",
      "name": "When clicking ‘Execute workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -448,
        320
      ]
    },
    {
      "id": "cdd69ab2-8f3c-4332-9191-f7a8699a8b72",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        448,
        320
      ]
    },
    {
      "id": "69266cd8-3c7e-4fe1-940a-c10f89b55bf1",
      "name": "Global Variables",
      "type": "n8n-nodes-base.set",
      "position": [
        0,
        320
      ]
    },
    {
      "id": "d7390c88-d913-4ef7-a5c4-84a501ef6af5",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -64,
        144
      ],
      "parameters": {
        "width": 448,
        "height": 400,
        "content": "## Define and Get Script\nHere you set the name of the page where your script is, and it gets that page information. The set variable is used so the page can be queried later when the video link is emb"
      }
    },
    {
      "id": "73408c21-5c1b-4de6-b26e-deb81f9e0099",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -560,
        144
      ],
      "parameters": {
        "width": 480,
        "height": 400,
        "content": "## Get Avatar description\nThis section gets the description of the Avatar"
      }
    },
    {
      "id": "846bc24f-dc21-457e-9b36-b2c2257a8600",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        400,
        -144
      ],
      "parameters": {
        "width": 1328,
        "height": 688,
        "content": "![gemini](https://upload.wikimedia.org/wikipedia/commons/thumb/8/8a/Google_Gemini_logo.svg/330px-Google_Gemini_logo.svg.png)\n\n## Generate Snippet Videos\nThis section handles the full video-generation "
      }
    },
    {
      "id": "adc37b2a-e1bf-4a1d-b222-a42bf5ed6335",
      "name": "Get Script",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        224,
        320
      ]
    },
    {
      "id": "932f174c-1c23-438c-8f2e-4a8ef95ddd1e",
      "name": "Get Avatar Description",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -224,
        320
      ]
    },
    {
      "id": "c326e6c8-4f20-425f-9ecf-27f13601474d",
      "name": "Move on to next snippet",
      "type": "n8n-nodes-base.noOp",
      "position": [
        1568,
        320
      ]
    },
    {
      "id": "6102c8c9-154d-426e-9e4e-b79bd2163043",
      "name": "Set Loop Inputs",
      "type": "n8n-nodes-base.set",
      "position": [
        672,
        240
      ]
    },
    {
      "id": "2646d8d9-75ff-4cb2-9c2d-7cfa27b2e054",
      "name": "Generate a video with Veo",
      "type": "@n8n/n8n-nodes-langchain.googleGemini",
      "position": [
        896,
        240
      ]
    },
    {
      "id": "6e17cd44-5af2-41f0-bf60-19fdea626446",
      "name": "Upload video file",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        1120,
        240
      ]
    },
    {
      "id": "0291d4df-ea11-418e-a754-8543c93838ad",
      "name": "Update row in sheet with link to video",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1344,
        240
      ]
    }
  ],
  "connections": {
    "Get Script": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [],
        [
          {
            "node": "Set Loop Inputs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Loop Inputs": {
      "main": [
        [
          {
            "node": "Generate a video with Veo",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Global Variables": {
      "main": [
        [
          {
            "node": "Get Script",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload video file": {
      "main": [
        [
          {
            "node": "Update row in sheet with link to video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Avatar Description": {
      "main": [
        [
          {
            "node": "Global Variables",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Move on to next snippet": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate a video with Veo": {
      "main": [
        [
          {
            "node": "Upload video file",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "Get Avatar Description",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update row in sheet with link to video": {
      "main": [
        [
          {
            "node": "Move on to next snippet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}