{
  "name": "Create AI-generated UGC marketing videos with Telegram & GPT-4",
  "nodes": [
    {
      "id": "f48f7438-f561-49f3-ade1-44e769706855",
      "name": "Think",
      "type": "@n8n/n8n-nodes-langchain.toolThink",
      "position": [
        1232,
        576
      ]
    },
    {
      "id": "633003f0-e2e7-472c-9549-a46d0ada036a",
      "name": "GPT",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1296,
        784
      ]
    },
    {
      "id": "7928664f-5e94-4164-8b54-2d0698489945",
      "name": "Split Out",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        2992,
        352
      ]
    },
    {
      "id": "0ded1cfa-30eb-4cf9-962d-5bc7c2035fd0",
      "name": "Create Video",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3216,
        352
      ]
    },
    {
      "id": "cf83c039-1751-4802-b159-7b4ef2287743",
      "name": "Get Video",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3664,
        272
      ]
    },
    {
      "id": "a5ebf270-9997-4162-a5e0-3a1ac2d7885c",
      "name": "Wait 2",
      "type": "n8n-nodes-base.wait",
      "position": [
        3440,
        352
      ]
    },
    {
      "id": "e607e16c-7aff-4d00-a78f-0ccaee6e3a97",
      "name": "Wait 3",
      "type": "n8n-nodes-base.wait",
      "position": [
        1952,
        352
      ]
    },
    {
      "id": "caca1b91-7ba1-404f-a153-0a77990704ae",
      "name": "If ",
      "type": "n8n-nodes-base.if",
      "position": [
        2400,
        352
      ]
    },
    {
      "id": "82395aeb-208d-4215-b701-587b59ce5478",
      "name": "Aggregate",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        4112,
        352
      ]
    },
    {
      "id": "71e34e22-4b47-4bc7-bd13-01fc831b1da9",
      "name": "Wait",
      "type": "n8n-nodes-base.wait",
      "position": [
        4560,
        352
      ]
    },
    {
      "id": "d92a69ed-65d5-47bd-80ae-fa529611ea78",
      "name": "Send Video",
      "type": "n8n-nodes-base.telegram",
      "position": [
        5232,
        352
      ]
    },
    {
      "id": "bdcb7562-d617-4f9e-bdfe-a1706b0dc8b3",
      "name": "Telegram Trigger",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        32,
        352
      ]
    },
    {
      "id": "d237cff2-1c2a-4836-bfe7-732e578db06f",
      "name": "Bot ID",
      "type": "n8n-nodes-base.set",
      "position": [
        256,
        352
      ]
    },
    {
      "id": "5e45e0ce-9acf-4b03-9cac-e5c55d289a71",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        48,
        80
      ],
      "parameters": {
        "width": 624,
        "height": 224,
        "content": "# INPUT: \n## Any photo with your request"
      }
    },
    {
      "id": "bfa85be8-9d4c-49d4-865f-e4f8bab18472",
      "name": "Get Img Path",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        480,
        352
      ]
    },
    {
      "id": "46f4410a-62cc-462c-b569-c4748eef16a3",
      "name": "Describe Img",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        704,
        352
      ]
    },
    {
      "id": "8ce3ce73-c452-417f-ad17-b8dc0fa8d6e6",
      "name": "In Progress",
      "type": "n8n-nodes-base.telegram",
      "position": [
        928,
        352
      ]
    },
    {
      "id": "78f4f628-0722-4c79-bfc4-32ddf3e2f048",
      "name": "Structured Output 1",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        2624,
        576
      ]
    },
    {
      "id": "2ae2a812-a737-4b30-a448-847995d2c36b",
      "name": "Structured Output 2",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1360,
        576
      ]
    },
    {
      "id": "2735e38b-b9c4-49a4-8010-d8a2257d6884",
      "name": "Create Image",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1728,
        352
      ]
    },
    {
      "id": "32923ec5-b3e7-4c28-bff0-ef2c066f9657",
      "name": "Get Image",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2176,
        272
      ]
    },
    {
      "id": "5912b514-3b30-480d-9706-afd06801f7e4",
      "name": "Combine Clips",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        4336,
        352
      ]
    },
    {
      "id": "282efead-92d4-44d6-9028-2acf37b57dcc",
      "name": "Get Final Video",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        4784,
        272
      ]
    },
    {
      "id": "4d9f38ca-630d-45de-b61a-45d4672de8ec",
      "name": "If 2",
      "type": "n8n-nodes-base.if",
      "position": [
        5008,
        352
      ]
    },
    {
      "id": "00dbbd5f-ae54-4ca7-8bc9-ba1f5a2cea64",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        32,
        -160
      ],
      "parameters": {
        "width": 2000,
        "height": 192,
        "content": "# Infinite UGC creator - any length, any character\n\n"
      }
    },
    {
      "id": "1190a42e-e367-448e-b855-fd2a317e196d",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -272,
        224
      ],
      "parameters": {
        "width": null,
        "height": 672,
        "content": "The prompt to use for better creations, you can extend to as many scenes as you want\n\nScene 1 (0–6 sec):\n\"Show a young, elegant woman in a modern, softly lit luxurious room holding 9PM Elixir perfume."
      }
    },
    {
      "id": "a7a17413-8740-46a8-ae18-9e0eb1ce9c20",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        256,
        592
      ],
      "parameters": {
        "width": 688,
        "height": 1328,
        "content": "📌 How to Set Up the AI UGC Video Automation System\nThis system uses Telegram + N8N (no-code automation) + AI models to generate user-generated content (UGC) videos automatically.\n\n🔹 Overview\nInput: Se"
      }
    },
    {
      "id": "cd1398af-c0eb-4c6f-88f3-0316070cba59",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        3888,
        352
      ]
    },
    {
      "id": "365d8f24-b615-4a71-aaef-227e3318b3de",
      "name": "UGC  Video AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2624,
        352
      ]
    },
    {
      "id": "72878131-40ae-4d5b-982e-7688339d1df3",
      "name": "UGC Image AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1152,
        352
      ]
    }
  ],
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Aggregate",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait 2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "GPT": {
      "ai_languageModel": [
        [
          {
            "node": "UGC  Video AI Agent",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "UGC Image AI Agent",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Structured Output 1",
            "type": "ai_languageModel",
            "index": 0
          },
          {
            "node": "Structured Output 2",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "If ": {
      "main": [
        [
          {
            "node": "UGC  Video AI Agent",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait 3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If 2": {
      "main": [
        [
          {
            "node": "Send Video",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait": {
      "main": [
        [
          {
            "node": "Get Final Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Think": {
      "ai_tool": [
        [
          {
            "node": "UGC  Video AI Agent",
            "type": "ai_tool",
            "index": 0
          },
          {
            "node": "UGC Image AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Bot ID": {
      "main": [
        [
          {
            "node": "Get Img Path",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait 2": {
      "main": [
        [
          {
            "node": "Get Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait 3": {
      "main": [
        [
          {
            "node": "Get Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate": {
      "main": [
        [
          {
            "node": "Combine Clips",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Image": {
      "main": [
        [
          {
            "node": "If ",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Video": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out": {
      "main": [
        [
          {
            "node": "Create Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "In Progress": {
      "main": [
        [
          {
            "node": "UGC Image AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Image": {
      "main": [
        [
          {
            "node": "Wait 3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Video": {
      "main": [
        [
          {
            "node": "Wait 2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Describe Img": {
      "main": [
        [
          {
            "node": "In Progress",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Img Path": {
      "main": [
        [
          {
            "node": "Describe Img",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Combine Clips": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Final Video": {
      "main": [
        [
          {
            "node": "If 2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Telegram Trigger": {
      "main": [
        [
          {
            "node": "Bot ID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "UGC Image AI Agent": {
      "main": [
        [
          {
            "node": "Create Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output 1": {
      "ai_outputParser": [
        [
          {
            "node": "UGC  Video AI Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output 2": {
      "ai_outputParser": [
        [
          {
            "node": "UGC Image AI Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "UGC  Video AI Agent": {
      "main": [
        [
          {
            "node": "Split Out",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}