{
  "name": "Create AI viral videos using NanoBanana 2 PRO & VEO3.1 and publish via Blotato",
  "nodes": [
    {
      "id": "7c727b4c-0395-4262-85f9-b00fa9d5aa9e",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        928,
        832
      ]
    },
    {
      "id": "913750ef-1d67-4a69-ab6d-8219b44a54ec",
      "name": "Think",
      "type": "@n8n/n8n-nodes-langchain.toolThink",
      "position": [
        1072,
        832
      ]
    },
    {
      "id": "0f440371-db4d-4847-a104-5bd02f5ec495",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1200,
        832
      ]
    },
    {
      "id": "b5174475-5425-49de-97fa-381e573f260f",
      "name": "Telegram Trigger: Receive Video Idea",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        784,
        192
      ]
    },
    {
      "id": "c52b61fe-df02-4c7f-9b1d-c8763d081c0f",
      "name": "Set Master Prompt",
      "type": "n8n-nodes-base.set",
      "position": [
        800,
        640
      ]
    },
    {
      "id": "8d368aed-2dd7-47c2-90e8-bd9d8163ab4a",
      "name": "AI Agent: Generate Video Script",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1008,
        640
      ]
    },
    {
      "id": "508e2f17-37eb-455d-b69a-19e773705e75",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        720,
        544
      ],
      "parameters": {
        "width": 1852,
        "height": 428,
        "content": "# 📑 STEP 2 — Generate Video with VEO3.1"
      }
    },
    {
      "id": "3d5fe2a9-6fee-4f29-a7b0-ff1628d1d96a",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        720,
        96
      ],
      "parameters": {
        "width": 1856,
        "height": 432,
        "content": "# 📑 STEP 1 — Create Image with NanoBanana 2 PRO\n"
      }
    },
    {
      "id": "3028553a-e742-49fd-b68c-6f5a9c6e0f9e",
      "name": "Set: Bot Token (Placeholder)",
      "type": "n8n-nodes-base.set",
      "position": [
        992,
        192
      ]
    },
    {
      "id": "ac849dab-7a31-4eed-82c6-210f312c53d0",
      "name": "Telegram API: Get File URL",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1216,
        192
      ]
    },
    {
      "id": "0fb7dee2-9d26-4488-b123-a68d374da7e2",
      "name": "OpenAI Vision: Analyze Reference Image",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        1424,
        192
      ]
    },
    {
      "id": "b197982b-4a3d-4a9a-9a04-06ad04f8ef9b",
      "name": "LLM: Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1824,
        384
      ]
    },
    {
      "id": "03caf7c5-c03e-4ef7-b104-e7e5a23d0e02",
      "name": "LLM: OpenAI Chat",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1600,
        384
      ]
    },
    {
      "id": "eaa418ce-bbcd-42d0-ac2a-f7dcda99fdb1",
      "name": "Generate Image Prompt",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1648,
        192
      ]
    },
    {
      "id": "04938906-9aa0-49cb-8073-52030f2c7f91",
      "name": "NanoBanana: Create Image",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1984,
        192
      ]
    },
    {
      "id": "526eedfe-fbbd-4aff-bba1-9fbb990a74e4",
      "name": "Wait for Image Edit",
      "type": "n8n-nodes-base.wait",
      "position": [
        2192,
        192
      ]
    },
    {
      "id": "51985580-f325-49d3-bfff-83b0de4db6ca",
      "name": "Download Edited Image",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2400,
        192
      ]
    },
    {
      "id": "4534025f-dd17-4225-aaa6-b0343dca4864",
      "name": "Parse GPT Response",
      "type": "n8n-nodes-base.code",
      "position": [
        1360,
        640
      ]
    },
    {
      "id": "1a6f333e-8aa0-4285-bdfb-64b7ca0b6267",
      "name": "Optimize Prompt for Veo",
      "type": "n8n-nodes-base.set",
      "position": [
        1568,
        640
      ]
    },
    {
      "id": "cfc41241-f73d-4bfc-aa3a-e7d65281bf82",
      "name": "Download Video",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2400,
        640
      ]
    },
    {
      "id": "ae4420cd-7088-45a8-942d-c7b96455e685",
      "name": "Prepare Veo Request Body",
      "type": "n8n-nodes-base.code",
      "position": [
        1776,
        640
      ]
    },
    {
      "id": "50dedf01-6b48-464b-ab9f-3608e499f3cc",
      "name": "Veo Generation",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1984,
        640
      ]
    },
    {
      "id": "c135569a-c630-4b25-8f6e-2f42b00fb58e",
      "name": "Wait",
      "type": "n8n-nodes-base.wait",
      "position": [
        2192,
        640
      ]
    },
    {
      "id": "2a1bc1b1-57d6-483c-a51c-a97675d463c8",
      "name": "Send Video to Telegram",
      "type": "n8n-nodes-base.telegram",
      "position": [
        800,
        1152
      ]
    },
    {
      "id": "6dd2b073-71c5-4d5b-82b2-0383a7e680b7",
      "name": "Step 5 - Publishing",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        720,
        992
      ],
      "parameters": {
        "width": 1852,
        "height": 404,
        "content": "# 📑 STEP 3  —  Publish with Blotato"
      }
    },
    {
      "id": "a984be16-6697-4cfc-bb1c-a8f7463be5a1",
      "name": "Upload Video to BLOTATO",
      "type": "@blotato/n8n-nodes-blotato.blotato",
      "position": [
        1136,
        1152
      ]
    },
    {
      "id": "c3b8258b-5ee7-47fa-9d7e-4e3c59928f9e",
      "name": "Youtube",
      "type": "@blotato/n8n-nodes-blotato.blotato",
      "position": [
        1872,
        1216
      ]
    },
    {
      "id": "981fa66f-f01c-418e-8b02-24865cfb341f",
      "name": "Tiktok",
      "type": "@blotato/n8n-nodes-blotato.blotato",
      "position": [
        1552,
        1056
      ]
    },
    {
      "id": "fa93e28f-6e93-479f-95f3-8d949090fc1c",
      "name": "Linkedin",
      "type": "@blotato/n8n-nodes-blotato.blotato",
      "position": [
        1712,
        1056
      ]
    },
    {
      "id": "77026e85-e28f-44ff-9ad1-2191565bd8a4",
      "name": "Facebook",
      "type": "@blotato/n8n-nodes-blotato.blotato",
      "position": [
        1872,
        1056
      ]
    },
    {
      "id": "87ce0af6-a9e9-47e2-a958-824cb8c52f07",
      "name": "Instagram",
      "type": "@blotato/n8n-nodes-blotato.blotato",
      "position": [
        1552,
        1216
      ]
    },
    {
      "id": "2f7980a6-5d3f-4d2b-a565-4c840529d8c1",
      "name": "Twitter (X)",
      "type": "@blotato/n8n-nodes-blotato.blotato",
      "position": [
        1712,
        1216
      ]
    },
    {
      "id": "eaa3e024-0eef-4a71-ae0b-25fe1cc27a1c",
      "name": "Merge1",
      "type": "n8n-nodes-base.merge",
      "position": [
        2144,
        1072
      ]
    },
    {
      "id": "4889de2f-81e3-49e2-a921-739aec5be20e",
      "name": "Send a text message",
      "type": "n8n-nodes-base.telegram",
      "position": [
        2368,
        1136
      ]
    },
    {
      "id": "3e6b4da3-2e64-49f4-8e76-97753b87b81b",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        48,
        96
      ],
      "parameters": {
        "width": 652,
        "height": 1300,
        "content": "# 🚀 AI Viral Video Workflow — NanoBanana 2 PRO × VEO3.1 × Blotato (By Dr. Firas)\n\n[![AI Voice Agent Preview](https://www.dr-firas.com/nanobanana2.png)](https://youtu.be/nlwpbXQqNQ4)\n\n##  📘 Documentati"
      }
    }
  ],
  "connections": {
    "Wait": {
      "main": [
        [
          {
            "node": "Download Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Think": {
      "ai_tool": [
        [
          {
            "node": "AI Agent: Generate Video Script",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Merge1": {
      "main": [
        [
          {
            "node": "Send a text message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Tiktok": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Youtube": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 5
          }
        ]
      ]
    },
    "Facebook": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "Linkedin": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Instagram": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 3
          }
        ]
      ]
    },
    "Twitter (X)": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 4
          }
        ]
      ]
    },
    "Download Video": {
      "main": [
        [
          {
            "node": "Send Video to Telegram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Veo Generation": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "LLM: OpenAI Chat": {
      "ai_languageModel": [
        [
          {
            "node": "Generate Image Prompt",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent: Generate Video Script",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Set Master Prompt": {
      "main": [
        [
          {
            "node": "AI Agent: Generate Video Script",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse GPT Response": {
      "main": [
        [
          {
            "node": "Optimize Prompt for Veo",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait for Image Edit": {
      "main": [
        [
          {
            "node": "Download Edited Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Edited Image": {
      "main": [
        [
          {
            "node": "Set Master Prompt",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Image Prompt": {
      "main": [
        [
          {
            "node": "NanoBanana: Create Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Video to Telegram": {
      "main": [
        [
          {
            "node": "Upload Video to BLOTATO",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Optimize Prompt for Veo": {
      "main": [
        [
          {
            "node": "Prepare Veo Request Body",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload Video to BLOTATO": {
      "main": [
        [
          {
            "node": "Tiktok",
            "type": "main",
            "index": 0
          },
          {
            "node": "Linkedin",
            "type": "main",
            "index": 0
          },
          {
            "node": "Facebook",
            "type": "main",
            "index": 0
          },
          {
            "node": "Instagram",
            "type": "main",
            "index": 0
          },
          {
            "node": "Twitter (X)",
            "type": "main",
            "index": 0
          },
          {
            "node": "Youtube",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "NanoBanana: Create Image": {
      "main": [
        [
          {
            "node": "Wait for Image Edit",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Veo Request Body": {
      "main": [
        [
          {
            "node": "Veo Generation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "AI Agent: Generate Video Script",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Telegram API: Get File URL": {
      "main": [
        [
          {
            "node": "OpenAI Vision: Analyze Reference Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set: Bot Token (Placeholder)": {
      "main": [
        [
          {
            "node": "Telegram API: Get File URL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "LLM: Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Generate Image Prompt",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent: Generate Video Script": {
      "main": [
        [
          {
            "node": "Parse GPT Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Trigger: Receive Video Idea": {
      "main": [
        [
          {
            "node": "Set: Bot Token (Placeholder)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Vision: Analyze Reference Image": {
      "main": [
        [
          {
            "node": "Generate Image Prompt",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}