{
  "name": "Place products on AI generated backgrounds with Google Imagen, Ideogram & Placid",
  "nodes": [
    {
      "id": "c6b02b7e-2abe-4731-9089-c474e57eb052",
      "name": "Fetch Status",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1180,
        40
      ]
    },
    {
      "id": "f9ef7f9c-ab89-49bf-982a-a874b5cb78a5",
      "name": "Wait",
      "type": "n8n-nodes-base.wait",
      "position": [
        1560,
        220
      ]
    },
    {
      "id": "5c47297c-c9c7-403a-a5b4-271618561ccf",
      "name": "Is Ready?",
      "type": "n8n-nodes-base.if",
      "position": [
        1360,
        40
      ]
    },
    {
      "id": "001c0169-0ba2-40e8-b2e6-e733d07a07ef",
      "name": "Fetch Result",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1600,
        40
      ]
    },
    {
      "id": "2799853c-fa2d-4d03-9348-161773689a1a",
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "position": [
        -200,
        40
      ]
    },
    {
      "id": "4d7efaa4-2196-4b1d-a866-049965287b59",
      "name": "Fetch Status1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2040,
        40
      ]
    },
    {
      "id": "9625a660-7442-4b0b-aa32-c41d09eeba8c",
      "name": "Wait1",
      "type": "n8n-nodes-base.wait",
      "position": [
        2420,
        220
      ]
    },
    {
      "id": "943068a4-cec0-4727-ade8-2d5e1ecac509",
      "name": "Is Ready?1",
      "type": "n8n-nodes-base.if",
      "position": [
        2220,
        40
      ]
    },
    {
      "id": "19e7a052-7102-478f-bd64-3dbe2d83bdcc",
      "name": "Fetch Result1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2460,
        40
      ]
    },
    {
      "id": "7e8af5b2-d206-42e6-86bb-70a442e5b913",
      "name": "Download Image",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2900,
        40
      ]
    },
    {
      "id": "b4b103b0-5dc4-40bf-95df-acc88be62737",
      "name": "Background Image Prompt Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -680,
        -140
      ]
    },
    {
      "id": "8e3d42e3-7f6c-4393-a245-0fbd26baab7f",
      "name": "Copywriting Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -680,
        200
      ]
    },
    {
      "id": "296da2e4-b03e-45f4-b1a3-750a3abdb937",
      "name": "gpt-4o-mini",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -700,
        400
      ]
    },
    {
      "id": "d03e9ba0-e89b-49de-8b0c-22b484e7282c",
      "name": "gpt-4.1-mini",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -680,
        40
      ]
    },
    {
      "id": "3021e9fd-31b5-43f0-b482-82e1b1c9881f",
      "name": "BG Prompt Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -480,
        40
      ]
    },
    {
      "id": "362716f9-900f-46b6-bc4b-57697c0ed661",
      "name": "Copy Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -480,
        400
      ]
    },
    {
      "id": "43e8ebfc-e731-46e6-b615-61568bd08ed1",
      "name": "Fal.ai Replace Background",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        980,
        40
      ]
    },
    {
      "id": "32844609-a76f-4d38-8ba7-4fa35fd1ae66",
      "name": "Fal.ai Time of Day Relight",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1820,
        40
      ]
    },
    {
      "id": "c085a0f2-c521-413a-b4ad-944473e2cebb",
      "name": "Create Image via Template with Placid.app",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2680,
        40
      ]
    },
    {
      "id": "e041720f-c176-48b3-b82b-eef0c93dbefe",
      "name": "Save to Google Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        3140,
        40
      ]
    },
    {
      "id": "3a494c2a-be33-47eb-a661-4a7e1be79951",
      "name": "On form submission",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -1280,
        40
      ]
    },
    {
      "id": "104f0629-00b2-42ad-9efc-81013d1ffda5",
      "name": "Get a temporary file url for the upload",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1060,
        40
      ]
    },
    {
      "id": "36e48a80-2a2e-4f06-92c5-e7b042cc7cfe",
      "name": "Fetch Status2",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        260,
        40
      ]
    },
    {
      "id": "7c2e6496-7dee-450d-a520-d821175eb32f",
      "name": "Wait2",
      "type": "n8n-nodes-base.wait",
      "position": [
        640,
        220
      ]
    },
    {
      "id": "cf957df2-de45-404c-afbf-27951440f045",
      "name": "Is Ready?2",
      "type": "n8n-nodes-base.if",
      "position": [
        440,
        40
      ]
    },
    {
      "id": "84c0f8ba-4fb8-44e4-b6d1-c46eb13b75c0",
      "name": "Fal.ai Google Image Gen4",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        60,
        40
      ]
    },
    {
      "id": "ed6efcac-6670-406b-86a1-4728fc4df1d9",
      "name": "Fetch Style Reference Image",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        680,
        40
      ]
    },
    {
      "id": "46480feb-1305-4ebf-af5a-067b9c15e000",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        40,
        -780
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "5dc6f8ed-04ba-4736-9b16-43ca7ef07922",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        920,
        -780
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "ac1a7234-c7cc-4c12-9ee3-ac87575545a6",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1800,
        -780
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "245b0f0d-1d49-4921-b7d5-07d7edb639e9",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2660,
        -780
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "2ebd7c80-fbf9-4dd0-9a8a-b12eb3509c02",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1700,
        -780
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "0e0e8f53-23d2-4a53-b29c-b44f19d8c5cc",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1700,
        -1020
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "09c82d0e-9bc5-4642-a687-d06c510bded2",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -820,
        -500
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "607c7ad0-c448-40f4-82f0-b3948ef61722",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        40,
        -1020
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "5c2b42d2-6c91-4ce7-9a5d-f4f99fe9fdaf",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        920,
        -1020
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "140df2ce-0aa8-4e6d-8505-198d3fa3ad21",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1800,
        -1020
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "bf2140b2-ba69-4434-8818-c4a81a264ea3",
      "name": "Sticky Note10",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2660,
        -1020
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "e6ca7809-1920-4d86-9bcc-fa1d748d456f",
      "name": "Sticky Note11",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3520,
        -1020
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "5417dfd5-e06e-49d3-a830-44f98e86312c",
      "name": "Sticky Note12",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -820,
        -1020
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    }
  ],
  "connections": {
    "Wait": {
      "main": [
        [
          {
            "node": "Fetch Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge": {
      "main": [
        [
          {
            "node": "Fal.ai Google Image Gen4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait1": {
      "main": [
        [
          {
            "node": "Fetch Status1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait2": {
      "main": [
        [
          {
            "node": "Fetch Status2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Is Ready?": {
      "main": [
        [
          {
            "node": "Fetch Result",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Is Ready?1": {
      "main": [
        [
          {
            "node": "Fetch Result1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Is Ready?2": {
      "main": [
        [
          {
            "node": "Fetch Style Reference Image",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "gpt-4o-mini": {
      "ai_languageModel": [
        [
          {
            "node": "Copywriting Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Result": {
      "main": [
        [
          {
            "node": "Fal.ai Time of Day Relight",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Status": {
      "main": [
        [
          {
            "node": "Is Ready?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "gpt-4.1-mini": {
      "ai_languageModel": [
        [
          {
            "node": "Background Image Prompt Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Result1": {
      "main": [
        [
          {
            "node": "Create Image via Template with Placid.app",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Status1": {
      "main": [
        [
          {
            "node": "Is Ready?1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Status2": {
      "main": [
        [
          {
            "node": "Is Ready?2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Image": {
      "main": [
        [
          {
            "node": "Save to Google Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Copywriting Agent": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Copy Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Copywriting Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "On form submission": {
      "main": [
        [
          {
            "node": "Get a temporary file url for the upload",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Save to Google Drive": {
      "main": [
        []
      ]
    },
    "BG Prompt Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Background Image Prompt Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Fal.ai Google Image Gen4": {
      "main": [
        [
          {
            "node": "Fetch Status2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fal.ai Replace Background": {
      "main": [
        [
          {
            "node": "Fetch Status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fal.ai Time of Day Relight": {
      "main": [
        [
          {
            "node": "Fetch Status1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Style Reference Image": {
      "main": [
        [
          {
            "node": "Fal.ai Replace Background",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Background Image Prompt Agent": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get a temporary file url for the upload": {
      "main": [
        [
          {
            "node": "Background Image Prompt Agent",
            "type": "main",
            "index": 0
          },
          {
            "node": "Copywriting Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Image via Template with Placid.app": {
      "main": [
        [
          {
            "node": "Download Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}