{
  "name": "Generate AI images from text prompts with Gemini 2.0, Google Sheets & Drive",
  "nodes": [
    {
      "id": "8f6d83d3-4eb2-4331-b1d7-54b083c91221",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -928,
        -80
      ],
      "parameters": {
        "width": 528,
        "height": 640,
        "content": "## Muhammad Farooq Iqbal - Automation Expert & n8n Creator\n\nI am a passionate automation expert and recognized n8n Creator specializing in intelligent workflow automation. With extensive experience in"
      }
    },
    {
      "id": "acd11449-a6b1-4a76-b64a-714e752a805b",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        64,
        -80
      ]
    },
    {
      "id": "10b3f2ba-2376-4634-90ba-dbc1467c824e",
      "name": "Limit",
      "type": "n8n-nodes-base.limit",
      "position": [
        304,
        -96
      ]
    },
    {
      "id": "264b14b6-1dc4-4ea1-a6e1-7e7b23c8df7b",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -304,
        96
      ]
    },
    {
      "id": "ba3e3f4a-f1c0-4ff7-8d0a-170d309b1cec",
      "name": "Code",
      "type": "n8n-nodes-base.code",
      "position": [
        32,
        96
      ]
    },
    {
      "id": "cbb6d317-fb74-4cf5-a362-5e88ab5e031e",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -176,
        272
      ]
    },
    {
      "id": "ee5c4ab4-0a9e-43e7-9e39-754b7ed63dcf",
      "name": "Google Gemini Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        -320,
        272
      ]
    },
    {
      "id": "84fa3ea0-77c4-4a50-8392-cb221d35c413",
      "name": "Generate Image with Gemini",
      "type": "@n8n/n8n-nodes-langchain.googleGemini",
      "position": [
        224,
        96
      ]
    },
    {
      "id": "619e2001-42b5-4e0c-8a07-8eec0a70525a",
      "name": "Upload file",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        0,
        336
      ]
    },
    {
      "id": "98373a36-1e6d-4945-be5a-8ccdf467a181",
      "name": "Share file",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        144,
        336
      ]
    },
    {
      "id": "8c8e6c8e-6450-41bb-8e58-1a7085ae7279",
      "name": "update imageUrl",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        288,
        336
      ]
    },
    {
      "id": "1da85416-4304-42c5-adf4-7ae2fee12516",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -336,
        -80
      ]
    },
    {
      "id": "467096a8-0e30-4502-b290-45c7bd99d22c",
      "name": "Get row(s) in sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -144,
        -80
      ]
    }
  ],
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Limit",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Code": {
      "main": [
        [
          {
            "node": "Generate Image with Gemini",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Limit": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Share file": {
      "main": [
        [
          {
            "node": "update imageUrl",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload file": {
      "main": [
        [
          {
            "node": "Share file",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Get row(s) in sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get row(s) in sheet": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "AI Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Generate Image with Gemini": {
      "main": [
        [
          {
            "node": "Upload file",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}