{
  "name": "Digest and analyse YouTube videos with Apify and Gemini Pro",
  "nodes": [
    {
      "id": "d58b7efa-9d69-45ec-b522-0c81a6063a29",
      "name": "Setup Instructions",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1904,
        4912
      ],
      "parameters": {
        "width": 300,
        "height": 340,
        "content": "## YouTube Shorts Automation v7.0\n### @adamfreelances\n\n**APIFY YOUTUBE APPROACH**\n\nSimplified workflow:\n1. Form takes YouTube URL\n2. Apify downloads video\n3. Apify gets transcript\n4. Gemini detects me"
      }
    },
    {
      "id": "46a168f3-a4f6-4634-94df-5d3f8835ab32",
      "name": "Stage 1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2208,
        4400
      ],
      "parameters": {
        "width": 300,
        "height": 180,
        "content": "## Stage 1: YouTube URL Input\n\n**Trigger:** Form submission\n\n1. User submits YouTube URL\n2. Apify downloads video\n3. Apify extracts transcript\n4. Combine data for processing"
      }
    },
    {
      "id": "7f5458dc-6dbc-403c-9104-8c1900dd2eb5",
      "name": "Stage 2A - Transcript",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2336,
        4912
      ],
      "parameters": {
        "width": 320,
        "height": 180,
        "content": "## Stage 2A: Transcript\n\nApify YouTube Transcript:\n- Gets transcript directly from YT\n- No audio processing needed\n- Fast, reliable transcription\n\nReturns full transcript text."
      }
    },
    {
      "id": "d055a42b-24dc-4a25-8cca-1cb417d3b47f",
      "name": "YouTube URL Form",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        2000,
        4656
      ]
    },
    {
      "id": "89bb693e-17e5-44e5-ad8c-6d342db43dbb",
      "name": "Apify YouTube Downloader",
      "type": "@apify/n8n-nodes-apify.apify",
      "position": [
        2224,
        4656
      ]
    },
    {
      "id": "9e5a7510-d65a-4ae8-9dc9-cbc62dae7f49",
      "name": "Apify YouTube Transcript",
      "type": "@apify/n8n-nodes-apify.apify",
      "position": [
        2448,
        4656
      ]
    },
    {
      "id": "4503cec3-8aad-400c-9c68-8d8ffc85de16",
      "name": "Set Video Data",
      "type": "n8n-nodes-base.code",
      "position": [
        2672,
        4656
      ]
    },
    {
      "id": "b619e38f-7b4a-49c1-b61e-1b03b99def96",
      "name": "Parse Key Actions",
      "type": "n8n-nodes-base.code",
      "position": [
        3136,
        4656
      ]
    },
    {
      "id": "1c6080c7-750f-4141-a9e2-9941f96a1a2f",
      "name": "Stage 2B - Visual1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2768,
        4912
      ],
      "parameters": {
        "width": 340,
        "height": 340,
        "content": "## Stage 2B: Visual Analysis\n\n**KEY ACTION DETECTION v2**\n\nGemini watches the whole video and\nidentifies MEANINGFUL moments:\n\n- What the user accomplished\n- Time ranges (start → end)\n- Descriptive act"
      }
    },
    {
      "id": "723c1460-12da-41fc-b88e-612735eb388b",
      "name": "AI Section Analyzer1",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        3408,
        4656
      ]
    },
    {
      "id": "f90b2679-31fd-403c-adc8-59fc9c35c443",
      "name": "Call 'Shorts Creation'1",
      "type": "n8n-nodes-base.executeWorkflow",
      "position": [
        4224,
        4656
      ]
    },
    {
      "id": "743ac45d-5f3f-45a0-a3cc-f624fa4e02b8",
      "name": "Analyse Video",
      "type": "@n8n/n8n-nodes-langchain.googleGemini",
      "position": [
        2896,
        4656
      ]
    },
    {
      "id": "4aec8a26-0cbc-494b-957b-f4db32eb11f7",
      "name": "Edit Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        3760,
        4656
      ]
    },
    {
      "id": "97463a77-24b3-4f9e-9f83-2b912b105c13",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2816,
        4112
      ],
      "parameters": {
        "width": 640,
        "height": 432,
        "content": "## Watch the tutorial \n\nhttps://youtu.be/Gg_bNn-NeI8\n\n@[youtube](Gg_bNn-NeI8)"
      }
    }
  ],
  "connections": {
    "Edit Fields": {
      "main": [
        [
          {
            "node": "Call 'Shorts Creation'1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Analyse Video": {
      "main": [
        [
          {
            "node": "Parse Key Actions",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Video Data": {
      "main": [
        [
          {
            "node": "Analyse Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "YouTube URL Form": {
      "main": [
        [
          {
            "node": "Apify YouTube Downloader",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse Key Actions": {
      "main": [
        [
          {
            "node": "AI Section Analyzer1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Section Analyzer1": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Apify YouTube Downloader": {
      "main": [
        [
          {
            "node": "Apify YouTube Transcript",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Apify YouTube Transcript": {
      "main": [
        [
          {
            "node": "Set Video Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}