{
  "name": "Generate multiple AI images with DALL·E 2 and upload to Google Drive",
  "nodes": [
    {
      "id": "8ddca1c1-52d0-45cb-907c-370ebeb83d51",
      "name": "Generate an image",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        580,
        1160
      ]
    },
    {
      "id": "ac845ad4-c1ff-4453-8f10-db73ada7cdb4",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        140,
        1040
      ]
    },
    {
      "id": "bf507544-ab85-4085-ac56-d045300416be",
      "name": "Start Workflow",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -720,
        1200
      ]
    },
    {
      "id": "0fef42ed-00c4-4423-b47d-d4c07fba67c4",
      "name": "Set Image Prompt",
      "type": "n8n-nodes-base.set",
      "position": [
        -540,
        1180
      ]
    },
    {
      "id": "ec758170-36d8-44c8-b811-92ba4e79e03f",
      "name": "Upload to Google Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        520,
        920
      ]
    },
    {
      "id": "59bc4b98-3b8c-46fb-8d19-b374031b0753",
      "name": "Duplicate Rows",
      "type": "n8n-nodes-base.code",
      "position": [
        -300,
        1180
      ]
    },
    {
      "id": "d527b2bd-4e45-4c57-83d2-20906e8d331d",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -800,
        -80
      ],
      "parameters": {
        "width": 800,
        "height": 1480,
        "content": "\n## Step-by-Step Setup Instructions\n\n### 1. Prepare Your API Keys\n- **OpenAI API Key**  \n  1. Sign up or log in at https://platform.openai.com/  \n  2. Go to **API Keys** and create a new one.  \n  3. C"
      }
    },
    {
      "id": "20820668-9612-47e2-9bda-0928f2391ea0",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        20,
        -80
      ],
      "parameters": {
        "width": 800,
        "height": 1480,
        "content": "#### Step 4 — Loop Over Items\nInsert a **Split in Batches** node and set the batch size to `1`. This ensures each prompt variation runs through the image generation process individually. Connect this "
      }
    },
    {
      "id": "56f4ecd2-8c37-4744-b7bb-c5d1cd51c37a",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -800,
        -220
      ],
      "parameters": {
        "width": 1600,
        "height": 100,
        "content": "**Need more help?**  \nWebsite: https://ynteractive.com  \nEmail: robert@ynteractive.com"
      }
    }
  ],
  "connections": {
    "Duplicate Rows": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Start Workflow": {
      "main": [
        [
          {
            "node": "Set Image Prompt",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [
          {
            "node": "Upload to Google Drive",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Generate an image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Image Prompt": {
      "main": [
        [
          {
            "node": "Duplicate Rows",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate an image": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}