{
  "name": "Create viral ads with AI: NanoBanana & publish on socials via upload-post",
  "nodes": [
    {
      "id": "3b6bcff1-cc32-4e4e-aa79-f7e06b2bdf15",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        528,
        -32
      ],
      "parameters": {
        "width": 1020,
        "height": 288,
        "content": "# 🟢 Step 1 — Input"
      }
    },
    {
      "id": "b39b95c5-468e-434c-a455-8f91f7795d41",
      "name": "Telegram: Get Image File",
      "type": "n8n-nodes-base.telegram",
      "position": [
        816,
        64
      ]
    },
    {
      "id": "8f91f9aa-e882-493d-a5a6-8ca4d57f4154",
      "name": "Trigger: Receive Idea via Telegram",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        592,
        64
      ]
    },
    {
      "id": "81a38bbf-47b7-45fa-8113-26ab9b7abc0f",
      "name": "Google Drive: Upload Image",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        1040,
        64
      ]
    },
    {
      "id": "fa33c037-fc4e-49d2-ba4e-70ced6457085",
      "name": "Parse Idea Into Prompts",
      "type": "n8n-nodes-base.code",
      "position": [
        1312,
        64
      ]
    },
    {
      "id": "82460b49-c263-48b9-b63b-5e0acba1543f",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1584,
        -32
      ],
      "parameters": {
        "width": 908,
        "height": 576,
        "content": "# 🟢 Step 2 — Generate Product Image"
      }
    },
    {
      "id": "d3e988f1-df01-4c16-a77b-bd21ddee732e",
      "name": "Generate Image Prompt",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1664,
        64
      ]
    },
    {
      "id": "20f5e316-f06e-4634-96c5-554c81533bcb",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1936,
        384
      ]
    },
    {
      "id": "c30cbe40-9aad-4963-9196-d6c976251045",
      "name": "Think",
      "type": "@n8n/n8n-nodes-langchain.toolThink",
      "position": [
        1776,
        400
      ]
    },
    {
      "id": "abab5953-ed16-4d8b-aeb5-ab95c5ed99b7",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1632,
        384
      ]
    },
    {
      "id": "8b232102-7143-4846-b4ec-4588db2f0e41",
      "name": "NanoBanana: Create Image",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2048,
        64
      ]
    },
    {
      "id": "4e10ac9b-8757-486f-97ff-f26af4d1b14a",
      "name": "Wait for Image Edit",
      "type": "n8n-nodes-base.wait",
      "position": [
        2256,
        64
      ]
    },
    {
      "id": "24d0d943-787f-4c09-9bf5-424b9d1970e0",
      "name": "Download Edited Image",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2240,
        352
      ]
    },
    {
      "id": "03c16d70-e7e8-43b8-b566-3f620bd80b1a",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        528,
        272
      ],
      "parameters": {
        "width": 1020,
        "height": 272,
        "content": "# 🟢 Step 3 — Publish Product Image on Instagram & X"
      }
    },
    {
      "id": "e2797a73-d47a-41c5-85f1-c7ccf9e6e95c",
      "name": "Rewrite Caption (TikTok/Instagram)",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        608,
        352
      ]
    },
    {
      "id": "a449912b-62e5-4490-977d-3acc9db5061b",
      "name": "Upload Post",
      "type": "n8n-nodes-upload-post.uploadPost",
      "position": [
        960,
        352
      ]
    },
    {
      "id": "89830f94-4f14-42df-bdf3-ef71fafc40dc",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        528,
        576
      ],
      "parameters": {
        "width": 1020,
        "height": 320,
        "content": "# 🟢 Step 4 — Generate Product Video with Seedance"
      }
    },
    {
      "id": "869bd5f2-d3b5-4a23-a500-a9b7826d3b04",
      "name": "Seedance: Generate Video from Image",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        608,
        688
      ]
    },
    {
      "id": "e53c94dc-bb5d-4f9b-8e55-6f0fa175a17d",
      "name": "Wait for Rendering",
      "type": "n8n-nodes-base.wait",
      "position": [
        816,
        688
      ]
    },
    {
      "id": "3937315a-f9ad-4e57-afcc-ca5c1160c889",
      "name": "Download Video from Seedance",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1024,
        688
      ]
    },
    {
      "id": "9496534d-cba2-4234-87ea-1d7170aab7c8",
      "name": "Set: Video URL",
      "type": "n8n-nodes-base.set",
      "position": [
        1232,
        688
      ]
    },
    {
      "id": "3a9ca65f-49f2-48d0-b8ef-bf7b36e905cb",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1584,
        576
      ],
      "parameters": {
        "width": 908,
        "height": 320,
        "content": "# 🟢 Step 5 — Generate Background Music with Suno"
      }
    },
    {
      "id": "1d2fb2ea-f440-4f41-b7c2-7924fa3f3dfc",
      "name": "Wait: Music Rendering",
      "type": "n8n-nodes-base.wait",
      "position": [
        1904,
        688
      ]
    },
    {
      "id": "fe8b83b0-97ad-45c9-ae03-b4daf82c7cd4",
      "name": "Wait: Music Rendering1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1696,
        688
      ]
    },
    {
      "id": "157cfa1c-83df-4f95-a31e-9496d15e907b",
      "name": "Download Music File",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2112,
        688
      ]
    },
    {
      "id": "72fa36a0-763a-49d8-994e-ed4762592e10",
      "name": "Set: Audio URL",
      "type": "n8n-nodes-base.set",
      "position": [
        2320,
        688
      ]
    },
    {
      "id": "56ea4e57-cfd8-4337-8420-e31cc4bd8034",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        528,
        928
      ],
      "parameters": {
        "width": 1964,
        "height": 320,
        "content": "# 🟢 Step 6 — Merge Video & Audio into Final Ad"
      }
    },
    {
      "id": "0999b21b-bc41-4f28-b95e-d2052bb48083",
      "name": "Merge Audio + Video",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        624,
        1008
      ]
    },
    {
      "id": "f7ffe60d-091d-452b-8312-26c98d80bf52",
      "name": "Check Merge Status",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1040,
        1008
      ]
    },
    {
      "id": "bbd106c8-5d79-47ea-9045-ff35a15d1a80",
      "name": "Wait: Merge Process",
      "type": "n8n-nodes-base.wait",
      "position": [
        832,
        1008
      ]
    },
    {
      "id": "68c18d21-8fb0-4d30-b7eb-04d845ab1be6",
      "name": "Download Final Video",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1248,
        1008
      ]
    },
    {
      "id": "01c91813-1cfd-4a60-b1d9-1ff8ddaf5244",
      "name": "Upload Final Video to Google Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        2304,
        1008
      ]
    },
    {
      "id": "0c913343-2b2a-4993-b952-ae8c888c8142",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        528,
        1296
      ],
      "parameters": {
        "width": 1964,
        "height": 336,
        "content": "# 🟢 Step 7 — Publish Final Ad on Social Media"
      }
    },
    {
      "id": "022f6ad9-a306-4c6a-8298-9bc5f52f175b",
      "name": "Read Brand Settings",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        608,
        1424
      ]
    },
    {
      "id": "e2dd6fbe-88e6-4c7a-bec4-ddce0383d079",
      "name": "Extract Brand Info",
      "type": "n8n-nodes-base.code",
      "position": [
        816,
        1424
      ]
    },
    {
      "id": "1419bc84-1312-40c2-8b5d-7d2acece24fb",
      "name": "Message a model",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        1024,
        1424
      ]
    },
    {
      "id": "5a1d9765-d8d3-4822-b780-beeac3b452a7",
      "name": "Save Ad Data to Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1344,
        1424
      ]
    },
    {
      "id": "80b86bac-c4e5-4c20-b3e0-09961765eeb5",
      "name": "Send Video URL via Telegram",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1552,
        1424
      ]
    },
    {
      "id": "9e80d517-debe-490e-a1c3-dbe30718c271",
      "name": "Send a video",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1760,
        1424
      ]
    },
    {
      "id": "bb608bb8-f8d3-453e-a6f6-23c939e1e209",
      "name": "Post Video on Social Media (FB, TikTok, YT)",
      "type": "n8n-nodes-upload-post.uploadPost",
      "position": [
        1968,
        1424
      ]
    },
    {
      "id": "eb3e9be3-44fe-4406-9fce-a842e5a9a522",
      "name": "Save Publishing Status to Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2176,
        1424
      ]
    },
    {
      "id": "5bbe1942-c31d-40be-8f6d-8efa896aa078",
      "name": "Telegram: Send notification",
      "type": "n8n-nodes-base.telegram",
      "position": [
        2352,
        1424
      ]
    },
    {
      "id": "a469e2cf-7431-4445-848d-84c9784a5405",
      "name": "Sticky Note10",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -192,
        -32
      ],
      "parameters": {
        "width": 700,
        "height": 1652,
        "content": "# 💥 Create Viral Ads with NanoBanana & Seedance — Publish on Socials via Upload-Post (By Dr. Firas)\n\n---\n\n## 🎥 Full Tutorial  \n\n## [Video Tutorial](https://youtu.be/4ec9WDCz9CY)  \n@[youtube](4ec9WDCz9"
      }
    }
  ],
  "connections": {
    "Think": {
      "ai_tool": [
        [
          {
            "node": "Generate Image Prompt",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Send a video": {
      "main": [
        [
          {
            "node": "Post Video on Social Media (FB, TikTok, YT)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set: Audio URL": {
      "main": [
        [
          {
            "node": "Merge Audio + Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set: Video URL": {
      "main": [
        [
          {
            "node": "Wait: Music Rendering1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Message a model": {
      "main": [
        [
          {
            "node": "Save Ad Data to Google Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Generate Image Prompt",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Check Merge Status": {
      "main": [
        [
          {
            "node": "Download Final Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Brand Info": {
      "main": [
        [
          {
            "node": "Message a model",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait for Rendering": {
      "main": [
        [
          {
            "node": "Download Video from Seedance",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Music File": {
      "main": [
        [
          {
            "node": "Set: Audio URL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge Audio + Video": {
      "main": [
        [
          {
            "node": "Wait: Merge Process",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Read Brand Settings": {
      "main": [
        [
          {
            "node": "Extract Brand Info",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait for Image Edit": {
      "main": [
        [
          {
            "node": "Download Edited Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait: Merge Process": {
      "main": [
        [
          {
            "node": "Check Merge Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Final Video": {
      "main": [
        [
          {
            "node": "Upload Final Video to Google Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Edited Image": {
      "main": [
        [
          {
            "node": "Rewrite Caption (TikTok/Instagram)",
            "type": "main",
            "index": 0
          },
          {
            "node": "Seedance: Generate Video from Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Image Prompt": {
      "main": [
        [
          {
            "node": "NanoBanana: Create Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait: Music Rendering": {
      "main": [
        [
          {
            "node": "Download Music File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait: Music Rendering1": {
      "main": [
        [
          {
            "node": "Wait: Music Rendering",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse Idea Into Prompts": {
      "main": [
        [
          {
            "node": "Generate Image Prompt",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "NanoBanana: Create Image": {
      "main": [
        [
          {
            "node": "Wait for Image Edit",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Generate Image Prompt",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Telegram: Get Image File": {
      "main": [
        [
          {
            "node": "Google Drive: Upload Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Drive: Upload Image": {
      "main": [
        [
          {
            "node": "Parse Idea Into Prompts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Video URL via Telegram": {
      "main": [
        [
          {
            "node": "Send a video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Video from Seedance": {
      "main": [
        [
          {
            "node": "Set: Video URL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Save Ad Data to Google Sheets": {
      "main": [
        [
          {
            "node": "Send Video URL via Telegram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Rewrite Caption (TikTok/Instagram)": {
      "main": [
        [
          {
            "node": "Upload Post",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Trigger: Receive Idea via Telegram": {
      "main": [
        [
          {
            "node": "Telegram: Get Image File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload Final Video to Google Drive": {
      "main": [
        [
          {
            "node": "Read Brand Settings",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Seedance: Generate Video from Image": {
      "main": [
        [
          {
            "node": "Wait for Rendering",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Save Publishing Status to Google Sheets": {
      "main": [
        [
          {
            "node": "Telegram: Send notification",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Post Video on Social Media (FB, TikTok, YT)": {
      "main": [
        [
          {
            "node": "Save Publishing Status to Google Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}