{
  "name": "Create AI shorts with HeyGen, Creatomate, Replicate, Gemini and OpenAI",
  "nodes": [
    {
      "id": "25d380bf-7e85-4b68-b5a1-ed31013a02af",
      "name": "Stage 3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        5888,
        1696
      ],
      "parameters": {
        "width": 320,
        "height": 200,
        "content": "## Stage 3: AI Analysis\n\nGPT-4o:\n1. Analyzes transcript\n2. Identifies best moments\n3. Generates 3 concepts\n4. Creates full avatar scripts\n\nEach concept uses different\nsource material."
      }
    },
    {
      "id": "03bd4748-2e0f-49be-8061-49491f0249d2",
      "name": "Stage 4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        6784,
        1696
      ],
      "parameters": {
        "width": 320,
        "height": 200,
        "content": "## Stage 4: HeyGen Avatar\n\n**Single API Call**\n\nGenerates ONE video with:\n- Hook (5-8 sec)\n- Body narration (25-40 sec)\n- CTA (3-5 sec)\n\nDimensions: 1080x1920 (vertical)"
      }
    },
    {
      "id": "8639a448-1fb7-4223-8559-9dcfff630a48",
      "name": "Stage 5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        8672,
        1696
      ],
      "parameters": {
        "width": 340,
        "height": 220,
        "content": "## Stage 5: AI Video Director\n\n**Dynamic Layouts**\n\nAI generates RenderScript with:\n- avatar_full (hook/cta)\n- split_screen (demo)\n- pip_overlay (focus)\n\nTransitions every 4-8 seconds!\n\nNo template re"
      }
    },
    {
      "id": "cd82f2ca-ef7e-4216-9d3d-ead1076e97c2",
      "name": "Loop Through Concepts",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        2592,
        1920
      ]
    },
    {
      "id": "11a9919e-ab3a-42e6-9fc4-dd44c73b721f",
      "name": "HeyGen - Generate Full Avatar",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3936,
        1744
      ]
    },
    {
      "id": "dbb8ab81-5f14-498d-b182-8e498e0e7e2e",
      "name": "Set Avatar Video ID",
      "type": "n8n-nodes-base.set",
      "position": [
        4160,
        1744
      ]
    },
    {
      "id": "aa91af19-85a7-44b0-912e-334e4ef5b0bb",
      "name": "Poll Avatar Status",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        4608,
        1664
      ]
    },
    {
      "id": "4f91bcc2-54a1-4f20-a92c-ea460f596d4d",
      "name": "Avatar Done?",
      "type": "n8n-nodes-base.if",
      "position": [
        4832,
        1744
      ]
    },
    {
      "id": "4c36afcc-eeba-4dd1-b312-5b2dd8c35c19",
      "name": "Set Avatar URL",
      "type": "n8n-nodes-base.set",
      "position": [
        5056,
        1744
      ]
    },
    {
      "id": "6f445fdb-84d9-418c-b082-4bcf702cef22",
      "name": "Creatomate - Render",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        6000,
        1744
      ]
    },
    {
      "id": "43290299-e7b3-472d-afdf-d281eab6bcae",
      "name": "Set Render ID",
      "type": "n8n-nodes-base.set",
      "position": [
        6224,
        1744
      ]
    },
    {
      "id": "9410f289-7181-4c5a-8194-e67fa6d94675",
      "name": "Wait for Render",
      "type": "n8n-nodes-base.wait",
      "position": [
        6448,
        1744
      ]
    },
    {
      "id": "15b534ae-3780-4ddc-a957-7e5b2f35b113",
      "name": "Poll Render Status",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        6672,
        1664
      ]
    },
    {
      "id": "cfdd0819-a613-487a-ae58-47f6be30d7d1",
      "name": "Render Done?",
      "type": "n8n-nodes-base.if",
      "position": [
        6896,
        1744
      ]
    },
    {
      "id": "9360db52-8aad-49f0-9bdd-ed4ea1f6e9e9",
      "name": "Download Rendered Video",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        7120,
        1744
      ]
    },
    {
      "id": "e0c53c3c-fdb2-42e0-8d9e-2f97e639d1e3",
      "name": "Upload to Google Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        7344,
        1744
      ]
    },
    {
      "id": "c569730f-a65d-4d44-9ebf-36e9a0662fdf",
      "name": "Creatomate Template Builder Code1",
      "type": "n8n-nodes-base.code",
      "position": [
        5776,
        1744
      ]
    },
    {
      "id": "0c129bf6-6116-4c4f-b692-6c3091a6512a",
      "name": "Wait for Avatar",
      "type": "n8n-nodes-base.wait",
      "position": [
        4384,
        1744
      ]
    },
    {
      "id": "9085960a-9cac-4432-a200-76e915320c5e",
      "name": "Shorts Trigger",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "position": [
        1072,
        1664
      ]
    },
    {
      "id": "345e3552-e9c6-4cdf-a8df-a23f865898bd",
      "name": "Extract Snippets",
      "type": "n8n-nodes-base.code",
      "position": [
        1296,
        1664
      ]
    },
    {
      "id": "dddc1e5b-4bfa-476a-a8de-4d565c6727a4",
      "name": "Creatomate Effects Library",
      "type": "n8n-nodes-base.code",
      "position": [
        3488,
        1648
      ]
    },
    {
      "id": "ffeefe34-afb7-4f15-a3da-eae61bc17191",
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "position": [
        3712,
        1744
      ]
    },
    {
      "id": "7e25fb9d-c7af-4382-a28d-7892d8f6bf8a",
      "name": "Edit Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        1520,
        1664
      ]
    },
    {
      "id": "ff5b9bd7-cc1c-4660-8762-06b37ca91f8d",
      "name": "Append row in sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        7920,
        2000
      ]
    },
    {
      "id": "596018d2-af78-42eb-aec8-e08fb235d9fa",
      "name": "Google Gemini Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        1744,
        1888
      ]
    },
    {
      "id": "d34d81ca-9886-4d8f-aa88-49f94a461203",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1872,
        1888
      ]
    },
    {
      "id": "881a6241-6f70-48de-b515-43f3550f2858",
      "name": "Poll Short Form Concept Ideator",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1776,
        1664
      ]
    },
    {
      "id": "c871c9cc-44a9-4354-a693-7d7607f57d44",
      "name": "Google Gemini Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        1952,
        2096
      ]
    },
    {
      "id": "837abd05-c038-413e-a455-5f621fd57e30",
      "name": "Split Out",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        2304,
        1920
      ]
    },
    {
      "id": "b5bebe6d-916a-4d08-b1a5-d2702a5876f9",
      "name": "Append row in sheet1",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        3264,
        1504
      ]
    },
    {
      "id": "81a61018-3222-4518-b8de-3d1c1fc29e3b",
      "name": "Document Generator",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2240,
        1504
      ]
    },
    {
      "id": "b00df41f-e990-497d-8611-0c7a06a1e6bd",
      "name": "Google Gemini Chat Model2",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        2320,
        1728
      ]
    },
    {
      "id": "4f8e55ab-5bea-48c6-b92d-6702dd214380",
      "name": "Convert Document to HTML",
      "type": "n8n-nodes-base.code",
      "position": [
        2592,
        1504
      ]
    },
    {
      "id": "e3fca234-7066-4fd2-a5ac-502a25dfa41a",
      "name": "Create Google Doc",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2816,
        1504
      ]
    },
    {
      "id": "77fa8962-0ba3-4bf1-8916-a6cc243ab42f",
      "name": "Split Out1",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        2816,
        1840
      ]
    },
    {
      "id": "8c992920-5bbc-439d-8d8b-2a164a364c38",
      "name": "Aggregate Flash B-Roll",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        3488,
        1840
      ]
    },
    {
      "id": "3add70c3-d3ff-4938-9c85-b94a9d37805c",
      "name": "Google Gemini Chat Model3",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        5280,
        1968
      ]
    },
    {
      "id": "35228b26-530c-4263-9984-41cbe4fa2e75",
      "name": "Structured Output Parser1",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        5408,
        1968
      ]
    },
    {
      "id": "7a8abe64-ac62-4011-ad85-3b4141975983",
      "name": "Google Gemini Chat Model4",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        5488,
        2176
      ]
    },
    {
      "id": "508291e8-c591-4516-8334-27a92db9fefe",
      "name": "AI Video Director",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        5312,
        1744
      ]
    },
    {
      "id": "866fb44d-6a24-4fff-bc68-014db33724ac",
      "name": "Get AI B-Roll",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3040,
        1840
      ]
    },
    {
      "id": "35751aee-e0e5-4402-a9e0-c6ed95e7bea6",
      "name": "Extract Flash B-Roll Result1",
      "type": "n8n-nodes-base.set",
      "position": [
        3264,
        1840
      ]
    },
    {
      "id": "cfdec554-192b-4322-ba6d-b43d8dd5d135",
      "name": "Share file",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        3040,
        1504
      ]
    },
    {
      "id": "44718c2d-7a9d-49b0-9598-895d3fda6490",
      "name": "Social Media Copyrighter",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        7568,
        1744
      ]
    },
    {
      "id": "d3e178a4-a005-4b50-b669-5a67e761be34",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1056,
        1408
      ],
      "parameters": {
        "width": 272,
        "height": 224,
        "content": "🟢 Stage 1: Trigger & Extract\nPosition near: Shorts Trigger → Extract Snippets → Edit Fields\n\nWorkflow Trigger\nReceives input from parent workflow. Extracts video snippets and prepares fields for AI pr"
      }
    },
    {
      "id": "8a8c8c40-27fe-44e8-b8df-414718dce80d",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1744,
        1408
      ],
      "parameters": {
        "width": 272,
        "height": 224,
        "content": "🟢 Stage 2: AI Concept Ideation\nPosition near: Poll Short Form Concept Ideator → Split Out → Loop Through Concepts\n\nAI Concept Generation\nGemini analyzes transcript and generates short-form content con"
      }
    },
    {
      "id": "b3d9f056-4132-4dfe-ab0b-56a6453e4db8",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3008,
        2032
      ],
      "parameters": {
        "width": 272,
        "height": 224,
        "content": "🟢 Stage 2b: Documentation & B-Roll\nPosition near: Document Generator → Convert Document to HTML → Create Google Doc → Get AI B-Roll\n\nDoc Generation & B-Roll\nGenerates a Google Doc script for each conc"
      }
    },
    {
      "id": "4e22f15d-3e84-4bbd-8ec1-5f2c2f3eb66d",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3856,
        1936
      ],
      "parameters": {
        "width": 272,
        "height": 224,
        "content": "🟢 Stage 3: HeyGen Avatar Generation\nPosition near: HeyGen - Generate Full Avatar → Poll Avatar Status → Avatar Done?\n\nAvatar Video Generation\nSends script to HeyGen API. Polls for completion, then ext"
      }
    },
    {
      "id": "ce656c09-4976-4019-931b-e74b545f17d6",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        5280,
        1440
      ],
      "parameters": {
        "width": 272,
        "height": 272,
        "content": "🟢 Stage 4: AI Video Director & Creatomate Render\nPosition near: AI Video Director → Creatomate Template Builder → Creatomate - Render\n\nAI-Directed Video Composition\nGemini acts as a video director — g"
      }
    },
    {
      "id": "b8e93887-7bb9-4812-a305-eaba41bb64ab",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        6592,
        1424
      ],
      "parameters": {
        "width": 272,
        "height": 208,
        "content": "🟢 Stage 5: Render Polling & Export\nPosition near: Poll Render Status → Render Done? → Download Rendered Video → Upload to Google Drive\n\nRender & Delivery\nPolls Creatomate render status. Once complete,"
      }
    }
  ],
  "connections": {
    "Merge": {
      "main": [
        [
          {
            "node": "HeyGen - Generate Full Avatar",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out": {
      "main": [
        [
          {
            "node": "Loop Through Concepts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Share file": {
      "main": [
        [
          {
            "node": "Append row in sheet1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out1": {
      "main": [
        [
          {
            "node": "Get AI B-Roll",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields": {
      "main": [
        [
          {
            "node": "Poll Short Form Concept Ideator",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Avatar Done?": {
      "main": [
        [
          {
            "node": "Set Avatar URL",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait for Avatar",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Render Done?": {
      "main": [
        [
          {
            "node": "Download Rendered Video",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait for Render",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get AI B-Roll": {
      "main": [
        [
          {
            "node": "Extract Flash B-Roll Result1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Render ID": {
      "main": [
        [
          {
            "node": "Wait for Render",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Avatar URL": {
      "main": [
        [
          {
            "node": "AI Video Director",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Shorts Trigger": {
      "main": [
        [
          {
            "node": "Extract Snippets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait for Avatar": {
      "main": [
        [
          {
            "node": "Poll Avatar Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait for Render": {
      "main": [
        [
          {
            "node": "Poll Render Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Snippets": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Video Director": {
      "main": [
        [
          {
            "node": "Creatomate Template Builder Code1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Google Doc": {
      "main": [
        [
          {
            "node": "Share file",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Document Generator": {
      "main": [
        [
          {
            "node": "Convert Document to HTML",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Poll Avatar Status": {
      "main": [
        [
          {
            "node": "Avatar Done?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Poll Render Status": {
      "main": [
        [
          {
            "node": "Render Done?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Append row in sheet": {
      "main": [
        [
          {
            "node": "Loop Through Concepts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Creatomate - Render": {
      "main": [
        [
          {
            "node": "Set Render ID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Avatar Video ID": {
      "main": [
        [
          {
            "node": "Wait for Avatar",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Through Concepts": {
      "main": [
        [],
        [
          {
            "node": "Split Out1",
            "type": "main",
            "index": 0
          },
          {
            "node": "Creatomate Effects Library",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate Flash B-Roll": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload to Google Drive": {
      "main": [
        [
          {
            "node": "Social Media Copyrighter",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Rendered Video": {
      "main": [
        [
          {
            "node": "Upload to Google Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert Document to HTML": {
      "main": [
        [
          {
            "node": "Create Google Doc",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Poll Short Form Concept Ideator",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Social Media Copyrighter": {
      "main": [
        [
          {
            "node": "Append row in sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Poll Short Form Concept Ideator",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "Structured Output Parser",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model2": {
      "ai_languageModel": [
        [
          {
            "node": "Document Generator",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model3": {
      "ai_languageModel": [
        [
          {
            "node": "AI Video Director",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model4": {
      "ai_languageModel": [
        [
          {
            "node": "Structured Output Parser1",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser1": {
      "ai_outputParser": [
        [
          {
            "node": "AI Video Director",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Creatomate Effects Library": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Extract Flash B-Roll Result1": {
      "main": [
        [
          {
            "node": "Aggregate Flash B-Roll",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HeyGen - Generate Full Avatar": {
      "main": [
        [
          {
            "node": "Set Avatar Video ID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Poll Short Form Concept Ideator": {
      "main": [
        [
          {
            "node": "Split Out",
            "type": "main",
            "index": 0
          },
          {
            "node": "Document Generator",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Creatomate Template Builder Code1": {
      "main": [
        [
          {
            "node": "Creatomate - Render",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}