{
  "name": "YouTube report generator",
  "nodes": [
    {
      "id": "60e90a8d-d97a-4e9b-91f4-cc24af3bf22d",
      "name": "Trigger Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -280,
        0
      ]
    },
    {
      "id": "8c51d64f-e380-4bee-9ce6-d0417a833167",
      "name": "Extract Subtitles URLs",
      "type": "n8n-nodes-base.code",
      "position": [
        320,
        0
      ]
    },
    {
      "id": "87193be8-889e-464c-b4b6-08486b5f187c",
      "name": "Fetch Video HTML",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -20,
        0
      ]
    },
    {
      "id": "73db26d3-7934-4dfe-af79-4827c64a9872",
      "name": "Fetch Subtitles Content",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        660,
        0
      ]
    },
    {
      "id": "fb7aa63c-9664-4311-ba29-8e46eb3b02e2",
      "name": "Generate Analytical Report",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        900,
        0
      ]
    },
    {
      "id": "64604d71-c0ef-465d-a2f2-9dabd8456a89",
      "name": "AI Model Configuration",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        980,
        200
      ]
    },
    {
      "id": "fabb904d-b27d-4202-9b2d-8b1d76c6a597",
      "name": "Return Analytical Report",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        1260,
        0
      ]
    },
    {
      "id": "c7345678-9abc-4ef0-8bdf-1234567890ab",
      "name": "Workflow Overview",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -500,
        0
      ],
      "parameters": {
        "width": null,
        "height": 200,
        "content": "This workflow processes YouTube video subtitles to generate a thematic analytical report.\n\nSteps:\n1. Trigger the workflow using the Webhook node with a YouTube video ID.\n2. Fetch HTML content and extr"
      }
    }
  ],
  "connections": {
    "Trigger Webhook": {
      "main": [
        [
          {
            "node": "Fetch Video HTML",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Video HTML": {
      "main": [
        [
          {
            "node": "Extract Subtitles URLs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Model Configuration": {
      "ai_languageModel": [
        [
          {
            "node": "Generate Analytical Report",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Extract Subtitles URLs": {
      "main": [
        [
          {
            "node": "Fetch Subtitles Content",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Subtitles Content": {
      "main": [
        [
          {
            "node": "Generate Analytical Report",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Analytical Report": {
      "main": [
        [
          {
            "node": "Return Analytical Report",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}