{
  "name": "Create & publish inspirational videos with FFmpeg, Google Drive & YouTube",
  "nodes": [
    {
      "id": "99424370-8026-4421-926d-2516dc3424cc",
      "name": "Start AutoClip Workflow",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -3504,
        -400
      ]
    },
    {
      "id": "977915b0-1bd8-4911-867d-dbbe476e1bfc",
      "name": "Retrieve Video Background Data",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -3056,
        -304
      ]
    },
    {
      "id": "6e829428-6764-4709-a6da-e61a5d95f682",
      "name": "Retrieve Quote Data",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -3280,
        -496
      ]
    },
    {
      "id": "69a9b7ec-3bf6-4a90-838f-455a1a99e1bb",
      "name": "List Video Background Files",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        -3280,
        -304
      ]
    },
    {
      "id": "8e83e2f0-423f-45e1-94b0-f19df2fa8273",
      "name": "Configure Music Background Folder ID",
      "type": "n8n-nodes-base.set",
      "position": [
        -3280,
        -112
      ]
    },
    {
      "id": "f37e5c2d-9541-40de-a784-8d8d6dbd9ff6",
      "name": "List Music Background Files",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        -3056,
        -112
      ]
    },
    {
      "id": "526fca9a-542a-474c-a58d-f0fae76e2379",
      "name": "Retrieve Music Background Data",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -2832,
        -112
      ]
    },
    {
      "id": "ff32745d-7634-4270-a1aa-cae37b568319",
      "name": "Merge File Selection Data",
      "type": "n8n-nodes-base.merge",
      "position": [
        -2608,
        -224
      ]
    },
    {
      "id": "1b28b193-209d-4da6-bf5c-4e7f6c69f52b",
      "name": "Select Random Video, Music & Quote",
      "type": "n8n-nodes-base.code",
      "position": [
        -2384,
        -208
      ]
    },
    {
      "id": "f06f2662-7129-48a9-a8a2-33d857b9a530",
      "name": "Read output file",
      "type": "n8n-nodes-base.readWriteFile",
      "position": [
        -144,
        -112
      ]
    },
    {
      "id": "11869d5e-b138-4172-b73c-4bbd33fec1aa",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        -1264,
        -112
      ]
    },
    {
      "id": "6ece1826-dad3-43db-aa65-cde9335bb42a",
      "name": "download video",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1040,
        -112
      ]
    },
    {
      "id": "582d0f6d-458b-478f-ab1a-57140090bd93",
      "name": "check status",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1936,
        -208
      ]
    },
    {
      "id": "aeb36200-52dd-4124-8601-92fe4e2215a5",
      "name": "upload and gen video",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -2160,
        -208
      ]
    },
    {
      "id": "55018969-b982-4e1c-af76-c15184c56400",
      "name": "Wait",
      "type": "n8n-nodes-base.wait",
      "position": [
        -1488,
        -112
      ]
    },
    {
      "id": "49640fca-e9eb-4714-89b6-dc09386ec211",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -3504,
        48
      ]
    },
    {
      "id": "f77661e7-6453-4901-acad-7f568cb5c101",
      "name": "If1",
      "type": "n8n-nodes-base.if",
      "position": [
        -1712,
        -272
      ]
    },
    {
      "id": "4445fb04-bb16-403b-ab62-001c30f5a357",
      "name": "Upload Video to Instagram",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        576,
        -48
      ]
    },
    {
      "id": "42bc7fff-35a0-4a18-883c-51cb8a69a78c",
      "name": "Update Instagram status",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        800,
        -48
      ]
    },
    {
      "id": "226422fc-2d6e-4142-94be-71a9495324d5",
      "name": "Upload Video to X",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        576,
        144
      ]
    },
    {
      "id": "91802f4b-064e-4879-aae4-42a34ae3b36c",
      "name": "Update X status",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        800,
        144
      ]
    },
    {
      "id": "3d8234c5-1188-4703-90db-8362658847db",
      "name": "Send a text message",
      "type": "n8n-nodes-base.telegram",
      "position": [
        -1488,
        -368
      ]
    },
    {
      "id": "05707eab-576e-47c1-912d-38abe32d1c1d",
      "name": "Save Final Video",
      "type": "n8n-nodes-base.readWriteFile",
      "position": [
        -816,
        -112
      ]
    },
    {
      "id": "179d8a84-d32e-44fc-87d1-664c5fde94e3",
      "name": "Update FB status",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        800,
        384
      ]
    },
    {
      "id": "bb5a7833-f2c3-400f-8d24-4153523ba301",
      "name": "Download File from Google Drive",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -592,
        -112
      ]
    },
    {
      "id": "719c22ec-2e58-45bd-9b43-f34ae3f30a4d",
      "name": "Extract Filename Without Extension",
      "type": "n8n-nodes-base.set",
      "position": [
        -368,
        -112
      ]
    },
    {
      "id": "d7640481-1bf8-470f-8057-971161c15c5c",
      "name": "Update Instagram status2",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1040,
        -48
      ]
    },
    {
      "id": "2fa6577f-6c34-4013-99b2-629196d8e0f8",
      "name": "Upload file",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        64,
        -112
      ]
    },
    {
      "id": "0dae7c5a-24b6-4295-9159-5235d54706c2",
      "name": "Upload Video to FB",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        560,
        384
      ]
    },
    {
      "id": "2977ca14-4319-4a1a-94cf-be4ee7201467",
      "name": "Overview",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -4096,
        -480
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "b275570a-3bc4-48a5-8a1e-1a1b1732453c",
      "name": "Content Loading – Group",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -3344,
        -592
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "629d18b0-fdb5-4533-98dc-be852fd51f40",
      "name": "Random Selection – Group",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2672,
        -400
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "54734726-a4d9-4b25-b83e-c829c810a349",
      "name": "Merge Process – Group",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2416,
        -400
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "4e21b9d1-8f09-4fc3-a9f2-4d8ca828c896",
      "name": "Upload & Publish – Group",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2208,
        -416
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "76dfc4cd-cd98-49b6-87d5-c84c566d15ff",
      "name": "Tracking Updates – Group",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1984,
        -416
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "ec6d817f-1961-411a-83af-7c775c24529a",
      "name": "Upload & Publish – Group1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        512,
        -544
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "56085a3d-1871-4872-b70c-a1fcccc73b3f",
      "name": "Download file",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        256,
        -112
      ]
    },
    {
      "id": "a5614c29-6ca4-4968-9ffe-a7705888b64d",
      "name": "Send a text message2",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1264,
        -48
      ]
    },
    {
      "id": "b0045e1a-bd65-44da-8991-a09b9e48259f",
      "name": "Upload Video to FB1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        560,
        -208
      ]
    },
    {
      "id": "4f1e538e-7995-44a8-ac78-eee3d48425ae",
      "name": "Upload to YouTube1",
      "type": "n8n-nodes-base.youTube",
      "position": [
        544,
        -416
      ]
    },
    {
      "id": "25215839-d2fb-4859-b94f-7b34e06e6075",
      "name": "Move to playlist1",
      "type": "n8n-nodes-base.youTube",
      "position": [
        768,
        -416
      ]
    },
    {
      "id": "21096195-d9c3-4cef-9ec1-33d7cb5b9ddc",
      "name": "Tracking Updates – Group1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1056,
        -400
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    }
  ],
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "download video",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "check status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If1": {
      "main": [
        [
          {
            "node": "Send a text message",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload file": {
      "main": [
        [
          {
            "node": "Download file",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "check status": {
      "main": [
        [
          {
            "node": "If1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download file": {
      "main": [
        [
          {
            "node": "Upload to YouTube1",
            "type": "main",
            "index": 0
          },
          {
            "node": "Upload Video to FB1",
            "type": "main",
            "index": 0
          },
          {
            "node": "Upload Video to Instagram",
            "type": "main",
            "index": 0
          },
          {
            "node": "Upload Video to X",
            "type": "main",
            "index": 0
          },
          {
            "node": "Upload Video to FB",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "download video": {
      "main": [
        [
          {
            "node": "Save Final Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Read output file": {
      "main": [
        [
          {
            "node": "Upload file",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Save Final Video": {
      "main": [
        [
          {
            "node": "Download File from Google Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Configure Music Background Folder ID",
            "type": "main",
            "index": 0
          },
          {
            "node": "List Video Background Files",
            "type": "main",
            "index": 0
          },
          {
            "node": "Retrieve Quote Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Move to playlist1": {
      "main": [
        [
          {
            "node": "Update Instagram status2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload Video to X": {
      "main": [
        [
          {
            "node": "Update X status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload Video to FB": {
      "main": [
        [
          {
            "node": "Update FB status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload to YouTube1": {
      "main": [
        [
          {
            "node": "Move to playlist1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Retrieve Quote Data": {
      "main": [
        [
          {
            "node": "Merge File Selection Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload Video to FB1": {
      "main": [
        []
      ]
    },
    "upload and gen video": {
      "main": [
        [
          {
            "node": "check status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Start AutoClip Workflow": {
      "main": [
        [
          {
            "node": "Retrieve Quote Data",
            "type": "main",
            "index": 0
          },
          {
            "node": "List Video Background Files",
            "type": "main",
            "index": 0
          },
          {
            "node": "Configure Music Background Folder ID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update Instagram status2": {
      "main": [
        [
          {
            "node": "Send a text message2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge File Selection Data": {
      "main": [
        [
          {
            "node": "Select Random Video, Music & Quote",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload Video to Instagram": {
      "main": [
        [
          {
            "node": "Update Instagram status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "List Music Background Files": {
      "main": [
        [
          {
            "node": "Retrieve Music Background Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "List Video Background Files": {
      "main": [
        [
          {
            "node": "Retrieve Video Background Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Retrieve Music Background Data": {
      "main": [
        [
          {
            "node": "Merge File Selection Data",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "Retrieve Video Background Data": {
      "main": [
        [
          {
            "node": "Merge File Selection Data",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Download File from Google Drive": {
      "main": [
        [
          {
            "node": "Extract Filename Without Extension",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Filename Without Extension": {
      "main": [
        [
          {
            "node": "Read output file",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Select Random Video, Music & Quote": {
      "main": [
        [
          {
            "node": "upload and gen video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Configure Music Background Folder ID": {
      "main": [
        [
          {
            "node": "List Music Background Files",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}