Automated YouTube Channel

    Shared 1/3/2026

    29 views

    Visual Workflow

    JSON Code

    {
      "meta": {
        "instanceId": "daa0b7901d4a776472219a94690785ce9aff3147577100d343e77ae9851d1539",
        "templateCredsSetupCompleted": true
      },
      "nodes": [
        {
          "id": "2b07c9b7-954a-440b-9777-b02071bcd255",
          "name": "MCP Client",
          "type": "@n8n/n8n-nodes-langchain.mcpClientTool",
          "position": [
            1152,
            1264
          ],
          "parameters": {
            "include": "selected",
            "options": {},
            "sseEndpoint": "http://i0cokkososss04k4owss000w.62.84.188.136.sslip.io/mcp/sse",
            "includeTools": [
              "create-short-video"
            ]
          },
          "typeVersion": 1
        },
        {
          "id": "2828ee78-218a-460f-9d82-1ee227502310",
          "name": "Aggregate",
          "type": "n8n-nodes-base.aggregate",
          "position": [
            704,
            880
          ],
          "parameters": {
            "options": {},
            "aggregate": "aggregateAllItemData"
          },
          "typeVersion": 1
        },
        {
          "id": "371ad287-c979-4a93-98ac-b0086baec92c",
          "name": "Wait",
          "type": "n8n-nodes-base.wait",
          "position": [
            1632,
            864
          ],
          "webhookId": "fe4501f9-3334-4fc8-b3dd-83ea0ebb14a2",
          "parameters": {
            "amount": 100
          },
          "typeVersion": 1.1
        },
        {
          "id": "5b7af775-47be-4ad9-aac6-6586fdb99ccb",
          "name": "If",
          "type": "n8n-nodes-base.if",
          "position": [
            2064,
            864
          ],
          "parameters": {
            "options": {},
            "conditions": {
              "options": {
                "version": 2,
                "leftValue": "",
                "caseSensitive": true,
                "typeValidation": "strict"
              },
              "combinator": "and",
              "conditions": [
                {
                  "id": "6cc1bd80-2bb7-47b6-950e-be3d6a36a965",
                  "operator": {
                    "name": "filter.operator.equals",
                    "type": "string",
                    "operation": "equals"
                  },
                  "leftValue": "={{ $json.status }}",
                  "rightValue": "ready"
                }
              ]
            }
          },
          "typeVersion": 2.2
        },
        {
          "id": "5581f16c-c992-4423-b56a-39511257627c",
          "name": "Structured Output Parser",
          "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
          "position": [
            1280,
            1088
          ],
          "parameters": {
            "schemaType": "manual",
            "inputSchema": "{\n    \"type\": \"object\",\n    \"properties\": {\n        \"videoId\": {\n            \"type\": \"string\",\n            \"description\": \"the id of the video\"\n        },\n        \"videoTitle\": {\n            \"type\": \"string\",\n            \"description\": \"the title of the video on Youtube\"\n        }\n    },\n    \"required\": [\n        \"videoId\",\n        \"videoTitle\"\n    ]\n}"
          },
          "typeVersion": 1.2
        },
        {
          "id": "3530d273-d845-4fce-8250-85bdfa865f8b",
          "name": "Download the video",
          "type": "n8n-nodes-base.httpRequest",
          "position": [
            2432,
            768
          ],
          "parameters": {
            "url": "=http://i0cokkososss04k4owss000w.62.84.188.136.sslip.io/api/short-video/{{ $('Generate video').item.json.output.videoId }}",
            "options": {}
          },
          "retryOnFail": false,
          "typeVersion": 4.2,
          "alwaysOutputData": false
        },
        {
          "id": "11f2331a-368e-4ca2-9c45-0ee75f853999",
          "name": "Share on YouTube",
          "type": "n8n-nodes-base.youTube",
          "position": [
            2672,
            768
          ],
          "parameters": {
            "title": "={{ $('Generate video').item.json.output.videoTitle }}",
            "options": {},
            "resource": "video",
            "operation": "upload",
            "categoryId": "24",
            "regionCode": "LU"
          },
          "credentials": {
            "youTubeOAuth2Api": {
              "id": "qjC5NpVQUroRAVOM",
              "name": "YouTube account"
            }
          },
          "typeVersion": 1
        },
        {
          "id": "179724df-4883-47f0-8c2b-8ee7f222feb4",
          "name": "Generate video",
          "type": "@n8n/n8n-nodes-langchain.agent",
          "position": [
            1072,
            864
          ],
          "parameters": {
            "text": "=<Instruction>\nTurn the following selfimprovement advice into a video. Keep everything, but make slight tweaks so it's easy to understand it in a text-to-speech video format with subtitles.\n\nReturn the video ID and the title of the video for the Youtube upload.\n</Instruction>\n\n<selfimprovement>\n{{ $json.data[8].title }}\n{{ $json.data[8].contentSnippet }}\n</selfimprovement>",
            "options": {},
            "promptType": "define",
            "hasOutputParser": true
          },
          "typeVersion": 1.8
        },
        {
          "id": "854b4137-7512-43bd-ad16-c4357434e04e",
          "name": "Check video status",
          "type": "n8n-nodes-base.httpRequest",
          "position": [
            1840,
            864
          ],
          "parameters": {
            "url": "=http://i0cokkososss04k4owss000w.62.84.188.136.sslip.io/api/short-video/{{ $('Generate video').item.json.output.videoId }}/status",
            "options": {}
          },
          "retryOnFail": false,
          "typeVersion": 4.2,
          "alwaysOutputData": false
        },
        {
          "id": "f30bcb1d-6041-4242-9da3-2fbc4f765482",
          "name": "Map fields",
          "type": "n8n-nodes-base.set",
          "position": [
            512,
            880
          ],
          "parameters": {
            "options": {},
            "assignments": {
              "assignments": [
                {
                  "id": "220a5d64-eea7-47fb-9557-682ed4ac2670",
                  "name": "title",
                  "type": "string",
                  "value": "={{ $json.title }}"
                },
                {
                  "id": "667fc922-3cb8-41cf-b86e-e635cf75bdc2",
                  "name": "contentSnippet",
                  "type": "string",
                  "value": "={{ $json.contentSnippet.split('submitted')[0].trim() }}"
                }
              ]
            }
          },
          "typeVersion": 3.4
        },
        {
          "id": "135e2a6b-0cd5-4907-be4d-1f0f6a9f04c8",
          "name": "Get top weekly posts",
          "type": "n8n-nodes-base.rssFeedRead",
          "position": [
            288,
            880
          ],
          "parameters": {
            "url": "=https://www.reddit.com/r/selfimprovement/top/.rss?t=day",
            "options": {}
          },
          "typeVersion": 1.1
        },
        {
          "id": "72c3ec3a-cca6-46c1-855c-8feeeefd485a",
          "name": "OpenAI Chat Model",
          "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
          "position": [
            928,
            1072
          ],
          "parameters": {
            "model": {
              "__rl": true,
              "mode": "list",
              "value": "gpt-4.1-mini"
            },
            "options": {},
            "builtInTools": {}
          },
          "credentials": {
            "openAiApi": {
              "id": "cZLd5KlDH9N2NpYD",
              "name": "OpenAi account"
            }
          },
          "typeVersion": 1.3
        },
        {
          "id": "86ccdb19-043e-4cf9-9259-1c4c58fede39",
          "name": "Schedule Trigger",
          "type": "n8n-nodes-base.scheduleTrigger",
          "position": [
            -208,
            832
          ],
          "parameters": {
            "rule": {
              "interval": [
                {
                  "triggerAtHour": 1,
                  "triggerAtMinute": 1
                }
              ]
            }
          },
          "typeVersion": 1.3
        },
        {
          "id": "6122917e-e59c-400b-ac84-4ce139c32348",
          "name": "HTTP Request",
          "type": "n8n-nodes-base.httpRequest",
          "position": [
            2880,
            768
          ],
          "parameters": {
            "url": "https://hook.eu1.make.com/ie5nkdnkp0efdm6fdhan3jeexcjmqe0n",
            "method": "POST",
            "options": {},
            "sendBody": true,
            "contentType": "form-urlencoded",
            "bodyParameters": {
              "parameters": [
                {
                  "name": "=title",
                  "value": "={{ $('Generate video').item.json.output.videoTitle }}"
                },
                {
                  "name": "binary",
                  "value": "={{ $('Download the video').item.json.status }}"
                }
              ]
            }
          },
          "typeVersion": 4.3
        }
      ],
      "pinData": {},
      "connections": {
        "If": {
          "main": [
            [
              {
                "node": "Download the video",
                "type": "main",
                "index": 0
              }
            ],
            [
              {
                "node": "Wait",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Wait": {
          "main": [
            [
              {
                "node": "Check video status",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Aggregate": {
          "main": [
            [
              {
                "node": "Generate video",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "MCP Client": {
          "ai_tool": [
            [
              {
                "node": "Generate video",
                "type": "ai_tool",
                "index": 0
              }
            ]
          ]
        },
        "Map fields": {
          "main": [
            [
              {
                "node": "Aggregate",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Generate video": {
          "main": [
            [
              {
                "node": "Wait",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Schedule Trigger": {
          "main": [
            [
              {
                "node": "Get top weekly posts",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Share on YouTube": {
          "main": [
            [
              {
                "node": "HTTP Request",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "OpenAI Chat Model": {
          "ai_languageModel": [
            [
              {
                "node": "Generate video",
                "type": "ai_languageModel",
                "index": 0
              }
            ]
          ]
        },
        "Check video status": {
          "main": [
            [
              {
                "node": "If",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Download the video": {
          "main": [
            [
              {
                "node": "Share on YouTube",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Get top weekly posts": {
          "main": [
            [
              {
                "node": "Map fields",
                "type": "main",
                "index": 0
              }
            ]
          ]
        },
        "Structured Output Parser": {
          "ai_outputParser": [
            [
              {
                "node": "Generate video",
                "type": "ai_outputParser",
                "index": 0
              }
            ]
          ]
        }
      }
    }