{
  "name": "Generate trend-based marketing videos with Seedance AI, Perplexity, and GPT",
  "nodes": [
    {
      "id": "9873c5a6-bc25-4ef6-b91a-46acf340e358",
      "name": "Telegram Trigger",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        -220,
        -20
      ]
    },
    {
      "id": "bd737817-cf23-4ccd-bcf5-73dbf422bc6b",
      "name": "Trend Research Agent",
      "type": "n8n-nodes-base.perplexity",
      "position": [
        40,
        -20
      ]
    },
    {
      "id": "a5b7bb3f-6f98-4e69-8c78-7b79d7f70e90",
      "name": "Video Prompt Engineer",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        260,
        -20
      ]
    },
    {
      "id": "d49f8691-ffdf-4c84-94fd-cdd693dbfb63",
      "name": "Post Request - Wavespeed",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        660,
        -20
      ]
    },
    {
      "id": "d20ba170-503e-428e-ac65-ce5c1db14e2f",
      "name": "Send a text message",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1580,
        0
      ]
    },
    {
      "id": "6f2b44a3-46aa-45d7-b406-c73947590e85",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        1300,
        -20
      ]
    },
    {
      "id": "d7bef3fb-4ba4-4e4d-bb3d-176ddb58b388",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -300,
        -200
      ],
      "parameters": {
        "width": 260,
        "height": 700,
        "content": "Telegram Trigger"
      }
    },
    {
      "id": "c35ab443-c196-4ee0-a099-ef7ee643b3ec",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -20,
        -200
      ],
      "parameters": {
        "width": null,
        "height": 700,
        "content": "Perplexity Research Agent"
      }
    },
    {
      "id": "795c7d84-ea3e-48fb-aaa5-3d451c4e3fbc",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        240,
        -200
      ],
      "parameters": {
        "width": 300,
        "height": 700,
        "content": "Video Prompt Agent"
      }
    },
    {
      "id": "fbba76df-bb6c-4919-a9f9-7436c50cf4aa",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        560,
        -200
      ],
      "parameters": {
        "width": 300,
        "height": 700,
        "content": "POST Request to Wavespeed"
      }
    },
    {
      "id": "a7cc248b-41e1-46a9-bfff-c7344c00db32",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        880,
        -200
      ],
      "parameters": {
        "width": 640,
        "height": 700,
        "content": "GET Request Loop"
      }
    },
    {
      "id": "30be802e-dc8b-4aa7-8b23-df35d79045cc",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1540,
        -200
      ],
      "parameters": {
        "width": 280,
        "height": 700,
        "content": "Telegram Output"
      }
    },
    {
      "id": "46f3ed38-da33-432a-b0bc-eb43bada238e",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1000,
        -200
      ],
      "parameters": {
        "width": 680,
        "height": 1080,
        "content": "🎬 Seedance Video Marketing AI Agent\nDescription:\nThis AI-powered marketing automation workflow takes a user prompt, researches trending topics, generates a compelling short-form video prompt, and send"
      }
    },
    {
      "id": "f44abb18-7587-49e4-bd09-318f1b7c2fb6",
      "name": "Wait 30 sec",
      "type": "n8n-nodes-base.wait",
      "position": [
        1340,
        260
      ]
    },
    {
      "id": "ff8a3b0d-d16b-4e58-9b97-8918f15c9459",
      "name": "Wait 30 Sec",
      "type": "n8n-nodes-base.wait",
      "position": [
        920,
        -20
      ]
    },
    {
      "id": "fa5c0002-ec3b-4a09-90b8-3347c31d8a2d",
      "name": "GET Request Wavespeed",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1100,
        -20
      ]
    }
  ],
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Wait 30 sec",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send a text message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait 30 Sec": {
      "main": [
        [
          {
            "node": "GET Request Wavespeed",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait 30 sec": {
      "main": [
        [
          {
            "node": "GET Request Wavespeed",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "Trend Research Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Trend Research Agent": {
      "main": [
        [
          {
            "node": "Video Prompt Engineer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "GET Request Wavespeed": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Video Prompt Engineer": {
      "main": [
        [
          {
            "node": "Post Request - Wavespeed",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Post Request - Wavespeed": {
      "main": [
        [
          {
            "node": "Wait 30 Sec",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}