{
  "name": "YouTube to telegram summary bot with Decodo & Gemini AI",
  "nodes": [
    {
      "id": "c6a91e50-fa97-4c99-b630-2ade0b370785",
      "name": "Decodo Youtube Transcript Scrapper",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1712,
        272
      ]
    },
    {
      "id": "8aae3665-3aa7-44a2-9336-40b35e34af83",
      "name": "Extract Transcript",
      "type": "n8n-nodes-base.code",
      "position": [
        1936,
        272
      ]
    },
    {
      "id": "926e6c2c-66bd-4666-b757-58232118d181",
      "name": "Decodo Youtube Metadata Scrapper",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1712,
        496
      ]
    },
    {
      "id": "0cb552e1-ff95-44b9-9cd6-b9f580c113ed",
      "name": "Parse Metadata",
      "type": "n8n-nodes-base.code",
      "position": [
        2224,
        496
      ]
    },
    {
      "id": "c6597425-57f9-4145-9850-06971302d5d6",
      "name": "Filter: YouTube URL?",
      "type": "n8n-nodes-base.if",
      "position": [
        1040,
        480
      ]
    },
    {
      "id": "d06863bd-55d9-4b5f-b019-82494d8dd625",
      "name": "Send \"Invalid URL\"",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1264,
        576
      ]
    },
    {
      "id": "2a6c36f4-b200-4de3-afad-78f2b8773743",
      "name": "Send \"Processing...\"",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1264,
        384
      ]
    },
    {
      "id": "34d42b11-c468-4f47-b5fe-6d6a9b26a74c",
      "name": "On New Message",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        816,
        480
      ]
    },
    {
      "id": "ed900824-c2ea-4e9d-989f-4b60ec63876c",
      "name": "Set: Video ID & Config",
      "type": "n8n-nodes-base.set",
      "position": [
        1488,
        384
      ]
    },
    {
      "id": "01adb94f-daae-45c2-b92a-91f0c5044bb1",
      "name": "Generate TLDR",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        2160,
        272
      ]
    },
    {
      "id": "9f6b145c-f736-4bbc-ba86-e4a97912a531",
      "name": "Merge: Data + Summary",
      "type": "n8n-nodes-base.merge",
      "position": [
        2512,
        384
      ]
    },
    {
      "id": "41ad2d7b-0401-410b-95d5-b9c2a1216a2a",
      "name": "Alert Admin",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1216,
        864
      ]
    },
    {
      "id": "4046c68d-44e1-4189-8ae9-9ffed8132381",
      "name": "Format Error Log",
      "type": "n8n-nodes-base.code",
      "position": [
        1040,
        864
      ]
    },
    {
      "id": "a43fe0fb-7a2b-45c8-9c2c-633d9af0e486",
      "name": "On Error",
      "type": "n8n-nodes-base.errorTrigger",
      "position": [
        848,
        864
      ]
    },
    {
      "id": "c0f1efbf-3152-4481-b5aa-c3921775a6f2",
      "name": "Split & Format HTML",
      "type": "n8n-nodes-base.code",
      "position": [
        2736,
        480
      ]
    },
    {
      "id": "12d5526f-2aa9-4caf-9200-9959e213d42a",
      "name": "Loop: Message Batches",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        2960,
        480
      ]
    },
    {
      "id": "8acd0552-7966-409f-b31f-2ad88e5373e7",
      "name": "Send Summary Part",
      "type": "n8n-nodes-base.telegram",
      "position": [
        3216,
        496
      ]
    },
    {
      "id": "9e7870e2-8d31-4950-8f53-1a93218350b1",
      "name": "Wait: Rate Limiter",
      "type": "n8n-nodes-base.wait",
      "position": [
        3408,
        496
      ]
    },
    {
      "id": "a61550ee-68a6-4b55-aed8-5a1c118d3922",
      "name": "Send Video Info",
      "type": "n8n-nodes-base.telegram",
      "position": [
        2736,
        288
      ]
    },
    {
      "id": "e083caee-4c26-4d3a-9a93-86cf9b35aadc",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        80,
        208
      ],
      "parameters": {
        "width": 672,
        "height": 672,
        "content": "# YouTube Summary Generator via Telegram\n\nThis workflow acts as your personal \"TL;DV\" (Too Long; Didn't View) assistant directly inside Telegram. Just drop a YouTube link to your bot, and it instantly"
      }
    },
    {
      "id": "fee6ec95-0788-434e-9a09-5027a81fcb49",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        784,
        736
      ],
      "parameters": {
        "width": 640,
        "height": 288,
        "content": "## Error Handling\n\nCatches workflow failures, formats error details, sends Telegram alerts to admin."
      }
    },
    {
      "id": "db9892f8-7324-42b6-9f36-ecf8830d262c",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1440,
        736
      ],
      "parameters": {
        "width": 528,
        "height": 288,
        "content": "## Create Decodo Credentials\nService: Decodo Maps Scrapper\nNode: HTTP Request\nURL: https://scraper-api.decodo.com/v2/scrape\nCredential Type: HTTP Header Auth\nHeader Name: Authorization\nHeader Value: B"
      }
    },
    {
      "id": "aafb217d-11f0-47ae-8db4-880bc38b870f",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1440,
        208
      ],
      "parameters": {
        "width": 1216,
        "height": 512,
        "content": "## Extract and Process Video"
      }
    },
    {
      "id": "0c438165-4d92-472c-a020-1208859ffaef",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2672,
        208
      ],
      "parameters": {
        "width": 944,
        "height": 512,
        "content": "## Send Result to Telegram"
      }
    },
    {
      "id": "b3293925-ab2a-404e-9442-e43d7b5d500e",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        784,
        320
      ],
      "parameters": {
        "width": 640,
        "height": 400,
        "content": "## Input Validation"
      }
    },
    {
      "id": "92636a99-c100-4705-a273-5c6e37c2c06a",
      "name": "Gemini 3.0",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        1968,
        496
      ]
    }
  ],
  "connections": {
    "On Error": {
      "main": [
        [
          {
            "node": "Format Error Log",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gemini 3.0": {
      "ai_languageModel": [
        [
          {
            "node": "Generate TLDR",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Generate TLDR": {
      "main": [
        [
          {
            "node": "Merge: Data + Summary",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On New Message": {
      "main": [
        [
          {
            "node": "Filter: YouTube URL?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse Metadata": {
      "main": [
        [
          {
            "node": "Merge: Data + Summary",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Format Error Log": {
      "main": [
        [
          {
            "node": "Alert Admin",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Summary Part": {
      "main": [
        [
          {
            "node": "Wait: Rate Limiter",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Transcript": {
      "main": [
        [
          {
            "node": "Generate TLDR",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait: Rate Limiter": {
      "main": [
        [
          {
            "node": "Loop: Message Batches",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split & Format HTML": {
      "main": [
        [
          {
            "node": "Loop: Message Batches",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter: YouTube URL?": {
      "main": [
        [
          {
            "node": "Send \"Processing...\"",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send \"Invalid URL\"",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send \"Processing...\"": {
      "main": [
        [
          {
            "node": "Set: Video ID & Config",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop: Message Batches": {
      "main": [
        [],
        [
          {
            "node": "Send Summary Part",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge: Data + Summary": {
      "main": [
        [
          {
            "node": "Send Video Info",
            "type": "main",
            "index": 0
          },
          {
            "node": "Split & Format HTML",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set: Video ID & Config": {
      "main": [
        [
          {
            "node": "Decodo Youtube Transcript Scrapper",
            "type": "main",
            "index": 0
          },
          {
            "node": "Decodo Youtube Metadata Scrapper",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Decodo Youtube Metadata Scrapper": {
      "main": [
        [
          {
            "node": "Parse Metadata",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Decodo Youtube Transcript Scrapper": {
      "main": [
        [
          {
            "node": "Extract Transcript",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}