{
  "name": "Generate and store AI images with Sora GPT, Google Drive and Sheets",
  "nodes": [
    {
      "id": "ffd9cc3e-8d6b-4b7c-a600-39f9511f4e19",
      "name": "On form submission",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        80,
        -60
      ]
    },
    {
      "id": "1b9fef9c-259e-4885-8596-c9319de01180",
      "name": "HTTP Request",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        300,
        -60
      ]
    },
    {
      "id": "1f2d4911-0151-4e7a-a3f5-f2f4ab2230ea",
      "name": "Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1740,
        -360
      ]
    },
    {
      "id": "214a0309-83a7-4d8b-99b3-5809a97533cd",
      "name": "Google Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        1340,
        -220
      ]
    },
    {
      "id": "bc885b5f-d31b-4f5e-9ada-a4a5e421eb82",
      "name": "Code",
      "type": "n8n-nodes-base.code",
      "position": [
        880,
        -60
      ]
    },
    {
      "id": "26c911dc-2f63-4d8e-b8a0-b54634d17b81",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -920,
        -540
      ],
      "parameters": {
        "width": 580,
        "height": 3080,
        "content": "# **Image to Image Using GPT Sora**\n\n## **How It Works**\n\n1. **Form Submission**:  \n   - Users submit a **prompt** and an **image URL** through the form. The prompt is the description for the image, a"
      }
    },
    {
      "id": "6513598b-6cb9-4ae9-b1c2-167fcb57c581",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -240,
        -380
      ],
      "parameters": {
        "width": 500,
        "height": 440,
        "content": "## 1. **On Form Submission**\n   - **Type**: `n8n-nodes-base.formTrigger`\n   - **Function**: \n     - This node is triggered when a user submits a form. The form collects two inputs: a **prompt** (text)"
      }
    },
    {
      "id": "29045bc9-0dcd-453e-aa3c-722e94aef44d",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        280,
        -560
      ],
      "parameters": {
        "width": 440,
        "height": 660,
        "content": "## 2. HTTP Request to Sora GPT Image API\n   - **Type**: `n8n-nodes-base.httpRequest`\n   - **Function**: \n     - This node sends the **Prompt** and **Image URL** data to the **Sora GPT Image API** to g"
      }
    },
    {
      "id": "73ecda33-8fb7-4d90-b510-b2c70914af02",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        760,
        -540
      ],
      "parameters": {
        "width": 300,
        "height": 640,
        "content": "## 3. **Code (Base64 Conversion)**\n   - **Type**: `n8n-nodes-base.code`\n   - **Function**:\n     - This node is used to process the base64-encoded image data returned from the API.\n     - It converts t"
      }
    },
    {
      "id": "4c95d81d-907d-4c15-af58-e08f919234c6",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1180,
        -660
      ],
      "parameters": {
        "width": 380,
        "height": 680,
        "content": "## 4. **Upload Image to Google Drive**\n   - **Type**: `n8n-nodes-base.googleDrive`\n   - **Function**:\n     - This node uploads the generated image (from the **Code** node) to **Google Drive**.\n     - "
      }
    },
    {
      "id": "9a8d33bc-572d-48ea-9585-20eeb24e24c4",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1600,
        -880
      ],
      "parameters": {
        "width": 420,
        "height": 720,
        "content": "## 5. **Log Details to Google Sheets**\n   - **Type**: `n8n-nodes-base.googleSheets`\n   - **Function**:\n     - This node logs the **Prompt**, **Generated Image**, and **Generation Date** into a **Googl"
      }
    }
  ],
  "connections": {
    "Code": {
      "main": [
        [
          {
            "node": "Google Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Drive": {
      "main": [
        [
          {
            "node": "Google Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request": {
      "main": [
        [
          {
            "node": "Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On form submission": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}