{
  "name": "Transform images with AI prompts using FLUX Kontext, Google Sheets and Drive",
  "nodes": [
    {
      "id": "b0f612bd-9665-4607-81fd-5b6fbd9cb562",
      "name": "When clicking ‘Test workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -140,
        660
      ]
    },
    {
      "id": "8f02f950-7ea3-4dfe-be9e-989f675080e0",
      "name": "Get status",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        800,
        660
      ]
    },
    {
      "id": "ec42f3a9-f489-4dcd-b606-e5dee097eea9",
      "name": "Wait 60 sec.",
      "type": "n8n-nodes-base.wait",
      "position": [
        580,
        660
      ]
    },
    {
      "id": "8c927df4-9f70-4e91-940c-9c3a08394a8b",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -140,
        520
      ]
    },
    {
      "id": "19b6b133-842d-49e6-9fe4-3acb2afeac78",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -220,
        -500
      ],
      "parameters": {
        "width": 740,
        "height": 320,
        "content": "# Generate AI Contextualize Images with FLUX Kontext\n\n## Generate AI Contextualize Images in a scenario with FLUX Kontext and Save to Google Drive\n\nThis workflow automates the generation of **AI-enhan"
      }
    },
    {
      "id": "de86c0a1-ad6f-4037-83a1-099b52b8ed8b",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -220,
        -140
      ],
      "parameters": {
        "width": 740,
        "height": 220,
        "content": "## STEP 1 - GOOGLE SHEET\nCreate a [Google Sheet like this](https://docs.google.com/spreadsheets/d/1N1Yg7FA4tQ8mDll5HLKqwPBuHj31AGDKwzAOg8mLQKs/edit?usp=sharing).\n\nPlease insert:\n- in the \"PROMPT\" colu"
      }
    },
    {
      "id": "74a1a103-a662-4b03-97e6-1d557731c43e",
      "name": "Completed?",
      "type": "n8n-nodes-base.if",
      "position": [
        1020,
        660
      ]
    },
    {
      "id": "8410d765-7507-4b14-b64c-429cb962db0a",
      "name": "Update result",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        820,
        1000
      ]
    },
    {
      "id": "b3087b1a-f9c9-4674-a894-0290768b0c9b",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -220,
        300
      ],
      "parameters": {
        "width": 740,
        "height": 100,
        "content": "## STEP 4 - MAIN FLOW\nStart the workflow manually or periodically by hooking the \"Schedule Trigger\" node. It is recommended to set it at 5 minute intervals."
      }
    },
    {
      "id": "9b149100-99eb-4b6a-9335-ee4888a97c25",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -220,
        120
      ],
      "parameters": {
        "width": 740,
        "height": 140,
        "content": "## STEP 2 - GET API KEY (YOURAPIKEY)\nCreate an account [here](https://fal.ai/) and obtain API KEY.\nIn the node \"Create Image\" set \"Header Auth\" and set:\n- Name: \"Authorization\"\n- Value: \"Key YOURAPIKE"
      }
    },
    {
      "id": "8a34a1a2-3f39-4cc5-9739-0cad1d811f10",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        280,
        600
      ],
      "parameters": {
        "width": 180,
        "height": 200,
        "content": "Set API Key created in Step 2"
      }
    },
    {
      "id": "d8240bd8-f127-40a7-aa3a-29211befe2e3",
      "name": "Get Image Url",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        100,
        1000
      ]
    },
    {
      "id": "987ce6a8-13ac-4516-9a3a-a71fa8b513b1",
      "name": "Upload Image",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        580,
        1000
      ]
    },
    {
      "id": "1d6b21c5-429e-4095-b74d-fd12ca62afca",
      "name": "Create Image",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        320,
        660
      ]
    },
    {
      "id": "c350e744-bf61-4837-bc97-8b35ff1c6755",
      "name": "Get new image",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        80,
        660
      ]
    },
    {
      "id": "6f5181b9-300f-4214-a19b-f0f717c9db29",
      "name": "Get Image File",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        320,
        1000
      ]
    },
    {
      "id": "539eb1dc-e439-42ad-b313-943d1dbc1937",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        560,
        -500
      ],
      "parameters": {
        "width": 360,
        "height": 900,
        "content": "## Example\n\n**Image**:\n![image](https://n3wstorage.b-cdn.net/n3witalia/model.jpg)\n\n**Prompt**:\nThe girl is lying on the bed and sleeping\n\n**Result**:\n![image](https://n3wstorage.b-cdn.net/n3witalia/fl"
      }
    }
  ],
  "connections": {
    "Completed?": {
      "main": [
        [
          {
            "node": "Get Image Url",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Wait 60 sec.",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get status": {
      "main": [
        [
          {
            "node": "Completed?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Image": {
      "main": [
        [
          {
            "node": "Wait 60 sec.",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload Image": {
      "main": [
        [
          {
            "node": "Update result",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait 60 sec.": {
      "main": [
        [
          {
            "node": "Get status",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Image Url": {
      "main": [
        [
          {
            "node": "Get Image File",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get new image": {
      "main": [
        [
          {
            "node": "Create Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update result": {
      "main": [
        []
      ]
    },
    "Get Image File": {
      "main": [
        [
          {
            "node": "Upload Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Test workflow’": {
      "main": [
        [
          {
            "node": "Get new image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}