{
  "name": "Summarize YouTube videos and generate thumbnails using AI Agent and deAPI",
  "nodes": [
    {
      "id": "47f3c8bd-0b9d-4777-a4c9-caa8f10d032f",
      "name": "Sticky Note - Overview",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -240,
        16
      ],
      "parameters": {
        "width": 668,
        "height": 780,
        "content": "## Try It Out!\n### Automatically summarize any YouTube video and generate a custom thumbnail using AI.\n\nThis workflow transcribes a YouTube video, uses AI to create a summary and an optimized thumbnai"
      }
    },
    {
      "id": "705bc41b-6bd7-44bc-9380-6ed9c3aa6134",
      "name": "Sticky Note - Trigger",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        464,
        16
      ],
      "parameters": {
        "width": null,
        "height": 412,
        "content": "## 1. Manual Trigger\nClick **Test workflow** to start.\n\nYou can swap this for a **Form Trigger** to let users submit YouTube URLs through a web form."
      }
    },
    {
      "id": "08c7ea13-2df5-4212-a0a1-c198b1ce3a61",
      "name": "Sticky Note - Set URL",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        800,
        16
      ],
      "parameters": {
        "width": 260,
        "height": 412,
        "content": "## 2. Set YouTube URL\nReplace the placeholder URL with any YouTube video link.\n\nSupported platforms:\n- YouTube\n- Twitch VODs\n- X (Twitter)\n- Kick"
      }
    },
    {
      "id": "3a031393-6cd8-49fa-8cd8-e2b7a32d8cee",
      "name": "Sticky Note - Transcribe",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1152,
        16
      ],
      "parameters": {
        "width": 260,
        "height": 412,
        "content": "## 3. Transcribe Video\n[deAPI Documentation](https://docs.deapi.ai)\n\nUses **Whisper Large V3** to transcribe the video with timestamps.\n\nThe transcript is passed to the AI Agent for summarization."
      }
    },
    {
      "id": "c5527e3f-8b45-4a75-823f-ad305c716407",
      "name": "Sticky Note - AI Agent",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1504,
        16
      ],
      "parameters": {
        "width": 464,
        "height": 652,
        "content": "## 4. AI-Powered Summary & Prompt\n[Read more about AI Agents](https://docs.n8n.io/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.agent)\n\nThe AI Agent analyzes the transcript and:\n- "
      }
    },
    {
      "id": "5d737fa3-559d-43f7-a0e3-ea3d34cb9261",
      "name": "Sticky Note - Generate",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2064,
        16
      ],
      "parameters": {
        "width": 284,
        "height": 428,
        "content": "## 5. Generate Thumbnail\n[deAPI Documentation](https://docs.deapi.ai)\n\nGenerates a **1280x720** landscape image — the standard YouTube thumbnail size.\n\nUses the AI-boosted prompt for best results."
      }
    },
    {
      "id": "95ed146a-5a15-48b3-928b-746f431f0462",
      "name": "Sticky Note - Upload",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2464,
        0
      ],
      "parameters": {
        "width": 328,
        "height": 444,
        "content": "## 6. Upload to Google Drive\n[Read more about Google Drive node](https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.googledrive)\n\nUploads the generated thumbnail image to your Google Dr"
      }
    },
    {
      "id": "f32cfb1d-28c0-4911-a01e-26ebeb16af99",
      "name": "When clicking 'Execute workflow'",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        528,
        272
      ]
    },
    {
      "id": "1a839833-bd9d-4e53-a9d6-545f153b3935",
      "name": "Set YouTube URL",
      "type": "n8n-nodes-base.set",
      "position": [
        880,
        272
      ]
    },
    {
      "id": "afa6e183-b8a9-44c4-9ad7-90ad54f6bf45",
      "name": "deAPI Transcribe Video",
      "type": "n8n-nodes-deapi.deapi",
      "position": [
        1232,
        272
      ]
    },
    {
      "id": "36c624a4-312e-4973-9ff0-530ad7dfc307",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1616,
        272
      ]
    },
    {
      "id": "357781f0-4a39-4932-962f-93d0fa15a8fb",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1856,
        512
      ]
    },
    {
      "id": "3fc567fa-ab28-489a-a4ca-e390759e4cde",
      "name": "Image prompt booster in deAPI",
      "type": "n8n-nodes-deapi.deapiTool",
      "position": [
        1696,
        512
      ]
    },
    {
      "id": "f3c5e8f3-1909-465c-9dfc-0bad07336cca",
      "name": "Anthropic Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatAnthropic",
      "position": [
        1536,
        512
      ]
    },
    {
      "id": "063d6884-8832-44c5-9ddd-ee1262a5353e",
      "name": "deAPI Generate Thumbnail",
      "type": "n8n-nodes-deapi.deapi",
      "position": [
        2160,
        272
      ]
    },
    {
      "id": "6e7fda92-867f-4a21-a33a-b40aaa6aee42",
      "name": "Google Drive Upload",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        2576,
        272
      ]
    }
  ],
  "connections": {
    "AI Agent": {
      "main": [
        [
          {
            "node": "deAPI Generate Thumbnail",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set YouTube URL": {
      "main": [
        [
          {
            "node": "deAPI Transcribe Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Anthropic Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "deAPI Transcribe Video": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "AI Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "deAPI Generate Thumbnail": {
      "main": [
        [
          {
            "node": "Google Drive Upload",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Image prompt booster in deAPI": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "When clicking 'Execute workflow'": {
      "main": [
        [
          {
            "node": "Set YouTube URL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}