{
  "name": "Generate product photos and videos from a reference image with OpenAI and RunwayML",
  "nodes": [
    {
      "id": "760770a9-620e-4aad-8c57-ce2f56b1b692",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        96,
        -160
      ]
    },
    {
      "id": "e1baf93a-d0b2-40c3-bbd3-1c1daf81bd9b",
      "name": "Chat GPT 4.1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        64,
        0
      ]
    },
    {
      "id": "f89ab437-02bf-4fe5-afaf-ce87d7aeca6d",
      "name": "Upload to Google Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        -128,
        -160
      ]
    },
    {
      "id": "525a39af-d289-42c3-9324-57b1241d32be",
      "name": "Download from Google Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        432,
        -160
      ]
    },
    {
      "id": "1bfca517-4b90-4c6c-b815-073d272ab5b9",
      "name": "Convert to File",
      "type": "n8n-nodes-base.convertToFile",
      "position": [
        816,
        -160
      ]
    },
    {
      "id": "848c2387-ca56-4978-8f75-d6acc932c935",
      "name": "Create Video",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -176,
        144
      ]
    },
    {
      "id": "c4037c1e-5422-4d34-955f-d11fd97a6729",
      "name": "HTTP Request",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        192,
        160
      ]
    },
    {
      "id": "3d768ce1-1b85-4a74-b002-6b6e12f0bc13",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        352,
        160
      ]
    },
    {
      "id": "3f16da3d-4588-45e9-984b-7d2c8868ee19",
      "name": "Wait",
      "type": "n8n-nodes-base.wait",
      "position": [
        496,
        240
      ]
    },
    {
      "id": "a4bf1eaa-3273-44b0-a5fc-ccfa51021f0a",
      "name": "Get URL",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -384,
        144
      ]
    },
    {
      "id": "8550b748-93ca-48f6-be7e-d672e125cafc",
      "name": "60 Seconds",
      "type": "n8n-nodes-base.wait",
      "position": [
        0,
        144
      ]
    },
    {
      "id": "4f38ca08-325e-4d7d-8cb0-4b41d3fc76b7",
      "name": "A.I Stunning Generator Interface",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -384,
        -160
      ]
    },
    {
      "id": "6e1af408-2ed7-4432-9835-d790f6d9afc7",
      "name": "Send a message",
      "type": "n8n-nodes-base.gmail",
      "position": [
        624,
        96
      ]
    },
    {
      "id": "c8eddd1f-8b98-4b98-85c8-16f2db8765f2",
      "name": "OpenAi Create Image",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        640,
        -160
      ]
    },
    {
      "id": "e2fabf45-4d60-4254-91fb-557cad090128",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1216,
        -416
      ],
      "parameters": {
        "width": 720,
        "height": 832,
        "content": "## What This Workflow Does\nA user submits a form with an existing product photo, a name, a vision prompt, and their email. The workflow generates a brand-new AI product image from that photo, turns it"
      }
    },
    {
      "id": "3617b9bd-4427-4211-a5a2-6cd06cb14c0b",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -432,
        -496
      ],
      "parameters": {
        "width": 592,
        "height": 240,
        "content": "## A.I Stunning Generator Interface\n\nThis form is the entry point. When submitted, it kicks off the entire workflow. It collects the product image, a name for the file, an AI vision prompt, the user's"
      }
    },
    {
      "id": "2c773838-885e-4d4d-8d6f-dd4d5ab0604a",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        272,
        -496
      ],
      "parameters": {
        "width": 688,
        "height": 320,
        "content": "## Image Generation Pipeline\n\nUpload → AI Agent → Download → OpenAI Create Image → Convert to File\n\nThese nodes take the submitted photo, use GPT-4.1 to craft a professional image prompt from the user"
      }
    },
    {
      "id": "a0da1bca-f564-4b39-a042-e29cec5640fd",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -352,
        464
      ],
      "parameters": {
        "width": 976,
        "height": 256,
        "content": "## Video Generation Pipeline\n\nGet URL → Create Video → 60s Wait → Poll Status → If Done → Send Email\nThese nodes take the AI-generated image, host it publicly via ImgBB, then submit it to RunwayML to "
      }
    }
  ],
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Send a message",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get URL": {
      "main": [
        [
          {
            "node": "Create Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Download from Google Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "60 Seconds": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Chat GPT 4.1": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Create Video": {
      "main": [
        [
          {
            "node": "60 Seconds",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Convert to File": {
      "main": [
        [
          {
            "node": "Get URL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAi Create Image": {
      "main": [
        [
          {
            "node": "Convert to File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload to Google Drive": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download from Google Drive": {
      "main": [
        [
          {
            "node": "OpenAi Create Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "A.I Stunning Generator Interface": {
      "main": [
        [
          {
            "node": "Upload to Google Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}