{
  "name": "Generate ad image variations using GPT-4, Dumpling AI & Google Drive",
  "nodes": [
    {
      "id": "849a3377-d9bb-42d4-b602-61ca789bfb1f",
      "name": "Submit Brand Info + Image",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        240,
        55
      ]
    },
    {
      "id": "25dc9e03-7c7e-44eb-897c-bd8956e554d7",
      "name": " Upload Ad Image to Google Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        460,
        55
      ]
    },
    {
      "id": "feb9a701-63d5-4c68-b4d2-56693dfd667a",
      "name": "Download Ad Image for Analysis",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        680,
        55
      ]
    },
    {
      "id": "c6000bdb-ce69-4302-b27e-aab73d128337",
      "name": "Describe Visual Style of Image",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        900,
        55
      ]
    },
    {
      "id": "110842b9-d0d0-4c46-bc2d-94851bd6aa30",
      "name": "Analyze Brand Website Style",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        1120,
        55
      ]
    },
    {
      "id": "41a97d61-1d3a-4ec3-9b76-c5fe4fb2b312",
      "name": "LangChain Agent: Generate Variation Prompts",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1496,
        55
      ]
    },
    {
      "id": "549abb3a-c944-47ce-a5eb-a5e35e8b7934",
      "name": "Parse Prompts into JSON Array",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        1720,
        260
      ]
    },
    {
      "id": "833fd095-e1ea-4b70-989f-542b415f4294",
      "name": "Split: One Prompt per Item",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        1872,
        55
      ]
    },
    {
      "id": "89875b01-68e0-4aec-a688-9965a8ca4a3d",
      "name": "Download Base Image for Each Variation",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        2092,
        55
      ]
    },
    {
      "id": "6c0131d3-46c3-47af-b8d4-d293f5378760",
      "name": "Loop: Process Image Variations",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        2312,
        55
      ]
    },
    {
      "id": "046f2619-c1a3-4674-9ae6-33221bb6f095",
      "name": "Dumpling AI: Generate Image Variation",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2532,
        -20
      ]
    },
    {
      "id": "815e004d-f1ed-485f-be24-c4bf565a61f1",
      "name": " Log Image Variation URLs to Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2752,
        55
      ]
    },
    {
      "id": "165b9120-6c0b-446e-afd6-c4f233d167df",
      "name": "GPT-4o (Connected to LangChain Agent)",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1524,
        275
      ]
    },
    {
      "id": "b52a1b6b-d5c5-43ad-a2c4-b318aa715f7d",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        300,
        -480
      ],
      "parameters": {
        "width": 780,
        "height": 740,
        "content": "### 🖼️ Ad Image Variation Generator (Using GPT-4 + Dumpling AI)\n\nThis workflow creates 10 subtle creative variations of a reference ad image  \nto test performance across visual styles, lighting, backg"
      }
    }
  ],
  "connections": {
    "Submit Brand Info + Image": {
      "main": [
        [
          {
            "node": " Upload Ad Image to Google Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split: One Prompt per Item": {
      "main": [
        [
          {
            "node": "Download Base Image for Each Variation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Analyze Brand Website Style": {
      "main": [
        [
          {
            "node": "LangChain Agent: Generate Variation Prompts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse Prompts into JSON Array": {
      "ai_outputParser": [
        [
          {
            "node": "LangChain Agent: Generate Variation Prompts",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Describe Visual Style of Image": {
      "main": [
        [
          {
            "node": "Analyze Brand Website Style",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Ad Image for Analysis": {
      "main": [
        [
          {
            "node": "Describe Visual Style of Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop: Process Image Variations": {
      "main": [
        [],
        [
          {
            "node": "Dumpling AI: Generate Image Variation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    " Upload Ad Image to Google Drive": {
      "main": [
        [
          {
            "node": "Download Ad Image for Analysis",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Dumpling AI: Generate Image Variation": {
      "main": [
        [
          {
            "node": " Log Image Variation URLs to Google Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "GPT-4o (Connected to LangChain Agent)": {
      "ai_languageModel": [
        [
          {
            "node": "LangChain Agent: Generate Variation Prompts",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Download Base Image for Each Variation": {
      "main": [
        [
          {
            "node": "Loop: Process Image Variations",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    " Log Image Variation URLs to Google Sheets": {
      "main": [
        [
          {
            "node": "Loop: Process Image Variations",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "LangChain Agent: Generate Variation Prompts": {
      "main": [
        [
          {
            "node": "Split: One Prompt per Item",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}