{
  "name": "AI Virtual Try-On Image, Video Generation for Telegram, Discord & YouTube",
  "nodes": [
    {
      "id": "f8d54cf6-54f6-411b-b07b-b39b445c8e67",
      "name": "Upload Image",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        256,
        -112
      ]
    },
    {
      "id": "f28d0e67-44d7-4dad-a32a-c5059a067590",
      "name": "Send Image",
      "type": "n8n-nodes-base.telegram",
      "position": [
        2352,
        112
      ]
    },
    {
      "id": "97ec2fa8-f338-433e-8e67-522b26a7a5d6",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        192,
        -432
      ],
      "parameters": {
        "width": 608,
        "height": 176,
        "content": "# 📌 Virtual Try-On – Intro Use Case\n\nAllow users to visualize how a dress looks on a person.\nUpload model & dress images, generate a realistic try-on\nimage and fashion video using VLM Run with secure "
      }
    },
    {
      "id": "7437ca14-22ea-4ec3-9384-c98d8635794e",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        672,
        -256
      ],
      "parameters": {
        "width": 480,
        "height": 800,
        "content": "# 🟪 Merge & Aggregate\n\n- Merge model + dress image metadata\n- Aggregate items into a single payload\n- Wait node ensures async safety\n\n"
      }
    },
    {
      "id": "7565d99e-eb1a-4dc7-8f35-34be210a53bf",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1664,
        -256
      ],
      "parameters": {
        "width": 544,
        "height": 800,
        "content": "# 🟪 Artifact Handling\n\n- Extract generated image/video IDs from VLM Run response.\n- Use regex to capture both formats:\n  - Plain: img_182573\n  - With tags: <img_ref>img_c7ae8c</img_ref>\n- Fetch artifa"
      }
    },
    {
      "id": "d103d147-aa05-4fdc-b2a5-c5d10b023dd1",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2592,
        -64
      ],
      "parameters": {
        "width": 432,
        "height": 416,
        "content": "\n\n\n\n\n# 🟩 Upload to Discord, YouTube & Send via Telegram\n\n- Send generated image/video via **Telegram**\n- Post image preview to **Discord** using embed URL\n- Upload generated fashion video to **YouTube"
      }
    },
    {
      "id": "d9daceeb-8204-42f6-8110-64397de578d5",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2208,
        -256
      ],
      "parameters": {
        "width": 384,
        "height": 800,
        "content": ""
      }
    },
    {
      "id": "6ea54c11-23a3-4443-80bd-1480763392a2",
      "name": "Give Prompt",
      "type": "n8n-nodes-base.set",
      "position": [
        512,
        304
      ]
    },
    {
      "id": "81496341-0b36-4ef6-a2ec-7d8389a6e8f7",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        192,
        224
      ],
      "parameters": {
        "width": 480,
        "height": 320,
        "content": "# 🟦 Prompt \n#    Preparation\n\n- Construct the \n  final user prompt\n- Map:\n  - Model \n  image URL\n  - Dress \n  image URL\n"
      }
    },
    {
      "id": "e3f50410-3c91-4b21-a80e-f002f24ff591",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        192,
        -256
      ],
      "parameters": {
        "width": 480,
        "height": 480,
        "content": "# 🟨 Input & Image Upload\n\n- User uploads a dress image via **Form Trigger**.\n- Model image is downloaded from predefined URL.\n"
      }
    },
    {
      "id": "5a68afe6-e161-477b-b201-987d868fe9f1",
      "name": "Send to Discord",
      "type": "n8n-nodes-base.discord",
      "position": [
        2352,
        -80
      ]
    },
    {
      "id": "56f3f475-9a3d-4246-883b-43b699c5ddd1",
      "name": "Wait",
      "type": "n8n-nodes-base.wait",
      "position": [
        992,
        160
      ]
    },
    {
      "id": "ded00073-3e23-46b0-a92d-9b4253d1712d",
      "name": "Set Mapping",
      "type": "n8n-nodes-base.set",
      "position": [
        976,
        336
      ]
    },
    {
      "id": "087f9a55-caa3-402c-8f4e-3b947e55ef84",
      "name": "Upload Model Image",
      "type": "@vlm-run/n8n-nodes-vlmrun.vlmRun",
      "position": [
        512,
        80
      ]
    },
    {
      "id": "2b53638e-fc2a-4703-a0de-074a9c7245ef",
      "name": "Download Model Image",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        512,
        -112
      ]
    },
    {
      "id": "ae470e4f-351a-4d23-8157-6a04ad0fa9e5",
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "position": [
        784,
        -48
      ]
    },
    {
      "id": "86c298cb-931d-49fb-9328-e6e738d47b89",
      "name": "Aggregate",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        960,
        -48
      ]
    },
    {
      "id": "8e049de4-ec4e-4ea0-83b1-026bb1a31874",
      "name": "Upload Dress Image",
      "type": "@vlm-run/n8n-nodes-vlmrun.vlmRun",
      "position": [
        272,
        80
      ]
    },
    {
      "id": "80a14d4a-0f29-435e-84e7-2f5398251c12",
      "name": "Generate Image",
      "type": "@vlm-run/n8n-nodes-vlmrun.vlmRun",
      "position": [
        1360,
        352
      ]
    },
    {
      "id": "53cf2915-46d5-495c-a0d2-8cccfb5072fc",
      "name": "Generate Video",
      "type": "@vlm-run/n8n-nodes-vlmrun.vlmRun",
      "position": [
        1360,
        128
      ]
    },
    {
      "id": "9d0b29fd-fe1e-49ac-900a-2b439daeaac9",
      "name": "Upload a video",
      "type": "n8n-nodes-base.youTube",
      "position": [
        2352,
        304
      ]
    },
    {
      "id": "b2748653-5f5b-4fbe-8908-7e9997964d24",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1152,
        -256
      ],
      "parameters": {
        "width": 512,
        "height": 800,
        "content": "# 🟥 VLM Run – Image & Video Generation\n\n- Uses **VLM Run Chat Completion**\n- Input type: `image`\n- Generates:\n  • Virtual Try-On Image (model wearing dress)\n  • Fashion Video (person walking with the "
      }
    },
    {
      "id": "94d0dc03-a86b-4929-ac02-dbc500409b72",
      "name": "Get Image Artifact",
      "type": "@vlm-run/n8n-nodes-vlmrun.vlmRun",
      "position": [
        1872,
        144
      ]
    },
    {
      "id": "3c6378e6-6712-4df8-b1d8-9743b1073f74",
      "name": "Get Video Artifact",
      "type": "@vlm-run/n8n-nodes-vlmrun.vlmRun",
      "position": [
        1872,
        352
      ]
    }
  ],
  "connections": {
    "Wait": {
      "main": [
        [
          {
            "node": "Generate Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge": {
      "main": [
        [
          {
            "node": "Aggregate",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate": {
      "main": [
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Give Prompt": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Set Mapping": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload Image": {
      "main": [
        [
          {
            "node": "Upload Dress Image",
            "type": "main",
            "index": 0
          },
          {
            "node": "Download Model Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Image": {
      "main": [
        [
          {
            "node": "Get Image Artifact",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Aggregate",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Video": {
      "main": [
        [
          {
            "node": "Get Video Artifact",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Aggregate",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send to Discord": {
      "main": [
        []
      ]
    },
    "Get Image Artifact": {
      "main": [
        [
          {
            "node": "Send to Discord",
            "type": "main",
            "index": 0
          },
          {
            "node": "Generate Video",
            "type": "main",
            "index": 0
          },
          {
            "node": "Send Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Video Artifact": {
      "main": [
        [
          {
            "node": "Upload a video",
            "type": "main",
            "index": 0
          },
          {
            "node": "Send Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload Dress Image": {
      "main": [
        [
          {
            "node": "Give Prompt",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload Model Image": {
      "main": [
        [
          {
            "node": "Set Mapping",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Model Image": {
      "main": [
        [
          {
            "node": "Upload Model Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}