{
  "name": "Create YouTube SEO metadata and thumbnails from Google Drive videos with Gemini, LemonFox and upload-post",
  "nodes": [
    {
      "id": "a0f7596f-7d8e-4e7f-b297-de004d6c2d57",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        8592,
        3472
      ],
      "parameters": {
        "width": 480,
        "height": 896,
        "content": "## Automated YouTube SEO, Thumbnail Generation & Video Upload via AI, Google Drive & LemonFox\n\n### How it works\n\n1. A Google Drive trigger initiates the workflow upon new file detection. 2. The system"
      }
    },
    {
      "id": "985fed9a-d459-48a6-9c37-6f0107e2f510",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        9152,
        3472
      ],
      "parameters": {
        "width": 640,
        "height": 288,
        "content": "## Trigger and access setup\n\nHandles initial file trigger and provides temporary access."
      }
    },
    {
      "id": "52171ddf-9e0b-4d23-84c1-94db359d4992",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        9840,
        3456
      ],
      "parameters": {
        "width": 416,
        "height": 304,
        "content": "## Transcribe and clean SRT\n\nTranscribes the video file and cleans the output."
      }
    },
    {
      "id": "7e70a54d-4a6e-4a6f-97fc-633807b7595d",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        10288,
        3472
      ],
      "parameters": {
        "width": 784,
        "height": 272,
        "content": "## Manage processed file content\n\nSaves text and retrieves file for processing."
      }
    },
    {
      "id": "dffcd2f2-acf1-4561-814a-eb434c71b9b8",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        11088,
        3472
      ],
      "parameters": {
        "width": 608,
        "height": 480,
        "content": "## Process with AI agent\n\nUses AI to analyze content and generate imagery."
      }
    },
    {
      "id": "45890858-3248-4257-b4ee-a255dcd715b0",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        11728,
        3456
      ],
      "parameters": {
        "width": 400,
        "height": 304,
        "content": "## Upload and finalize results\n\nUploads the final media and cleans up resources."
      }
    },
    {
      "id": "c9a133b1-66e0-4d20-81d8-cd2102b3fac1",
      "name": "Post Audio to Lemonfox",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        9888,
        3584
      ]
    },
    {
      "id": "c44c6d1f-23b3-43bd-b9e1-1d71696807fa",
      "name": "When File Added in Drive",
      "type": "n8n-nodes-base.googleDriveTrigger",
      "position": [
        9200,
        3600
      ]
    },
    {
      "id": "93c0db85-02ae-478d-8705-f2a0f56d310c",
      "name": "Grant Temp File Access",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        9648,
        3584
      ]
    },
    {
      "id": "de9483e2-a087-49f4-8691-0d8ea6eb7b78",
      "name": "If Video Mime Type",
      "type": "n8n-nodes-base.if",
      "position": [
        9424,
        3600
      ]
    },
    {
      "id": "94de4f1b-1d36-43d8-872d-a6aa6b54f4bb",
      "name": "Content Analysis Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        11200,
        3584
      ]
    },
    {
      "id": "fb304320-25b0-4f74-af42-0aa446604a27",
      "name": "Search Drive Files",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        10560,
        3584
      ]
    },
    {
      "id": "8a389f9e-6f18-451d-9237-961b4185f48e",
      "name": "Fetch File Details",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        10752,
        3584
      ]
    },
    {
      "id": "a1579be9-335e-44ac-bb77-e1d51949d65e",
      "name": "Extract Content from File",
      "type": "n8n-nodes-base.extractFromFile",
      "position": [
        10928,
        3584
      ]
    },
    {
      "id": "a06998d5-1eb0-45bf-a2ff-0f23a2a30e9b",
      "name": "Create Text File in Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        10336,
        3584
      ]
    },
    {
      "id": "5e410c04-6bd0-4d7a-b06a-9e13491e2241",
      "name": "Clean SRT Content",
      "type": "n8n-nodes-base.code",
      "position": [
        10112,
        3584
      ]
    },
    {
      "id": "7b25cb82-2de0-499f-a3ce-3ef9b9a41671",
      "name": "Gemini Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        11136,
        3808
      ]
    },
    {
      "id": "643b4eac-94b6-4326-970c-1e34d7351f42",
      "name": "Parse Structured Output",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        11392,
        3808
      ]
    },
    {
      "id": "fd9e4fe0-818a-4e08-96d9-35227012bf2d",
      "name": "Gemini Analysis Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        11328,
        4016
      ]
    },
    {
      "id": "6eb6c4c1-79e2-486e-ab3d-b0ef8e48f3e2",
      "name": "Generate Thumbnail Image",
      "type": "@n8n/n8n-nodes-langchain.googleGemini",
      "position": [
        11552,
        3584
      ]
    },
    {
      "id": "8635863c-3c8e-44b8-bc4d-964aa07d11d5",
      "name": "Upload to YouTube API",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        11776,
        3584
      ]
    },
    {
      "id": "01f4377d-4921-4764-9b9a-af9d88e5b2c4",
      "name": "Delete Original File permissions in Drive",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        11984,
        3584
      ]
    }
  ],
  "connections": {
    "Clean SRT Content": {
      "main": [
        [
          {
            "node": "Create Text File in Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Content Analysis Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Fetch File Details": {
      "main": [
        [
          {
            "node": "Extract Content from File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If Video Mime Type": {
      "main": [
        [
          {
            "node": "Grant Temp File Access",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Search Drive Files": {
      "main": [
        [
          {
            "node": "Fetch File Details",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gemini Analysis Model": {
      "ai_languageModel": [
        [
          {
            "node": "Parse Structured Output",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Upload to YouTube API": {
      "main": [
        [
          {
            "node": "Delete Original File permissions in Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Content Analysis Agent": {
      "main": [
        [
          {
            "node": "Generate Thumbnail Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Grant Temp File Access": {
      "main": [
        [
          {
            "node": "Post Audio to Lemonfox",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Post Audio to Lemonfox": {
      "main": [
        [
          {
            "node": "Clean SRT Content",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse Structured Output": {
      "ai_outputParser": [
        [
          {
            "node": "Content Analysis Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Generate Thumbnail Image": {
      "main": [
        [
          {
            "node": "Upload to YouTube API",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When File Added in Drive": {
      "main": [
        [
          {
            "node": "If Video Mime Type",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Text File in Drive": {
      "main": [
        [
          {
            "node": "Search Drive Files",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Content from File": {
      "main": [
        [
          {
            "node": "Content Analysis Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}