Skip to main content

Transform images with AI prompts using FLUX Kontext, Google Sheets and Drive

Workflow preview

Workflow preview
100%
Transform images with AI prompts using FLUX Kontext, Google Sheets and Drive preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

This workflow automates the generation of AI enhanced, contextualized images using FLUX Kontext , based on prompts stored in a Google Sheet. The generated images are then saved to Google Drive , an...

Best for

  • Content Creation automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.manualtrigger, n8n-nodes-base.httprequest, n8n-nodes-base.wait, n8n-nodes-base.scheduletrigger, n8n-nodes-base.stickynote, n8n-nodes-base.if, n8n-nodes-base.googlesheets, n8n-nodes-base.googledrive

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Davide.

Original n8n.io source

1.1 Workflow description

Title
Transform images with AI prompts using FLUX Kontext, Google Sheets and Drive
Workflow name
Transform images with AI prompts using FLUX Kontext, Google Sheets and Drive

This workflow automates the generation of AI-enhanced, contextualized images using FLUX Kontext, based on prompts stored in a Google Sheet. The generated images are then saved to Google Drive, and their URLs are written back to the spreadsheet for easy access.


Example

Image:

Prompt: The girl is lying on the bed and sleeping

Result:


Perfect for E-commerce and Social Media

This workflow is especially useful for e-commerce businesses:

  • Generate product images with dynamic backgrounds based on the use-case or season.
  • Create contextual marketing visuals for ads, newsletters, or product pages.
  • Scale visual content creation without the need for manual design work.

How It Works

  • Trigger: The workflow can be started manually (via "Test workflow") or scheduled at regular intervals (e.g., every 5 minutes) using the "Schedule Trigger" node.
  • Data Fetch: The "Get new image" node retrieves a row from a Google Sheet where the "RESULT" column is empty. It extracts the prompt, image URL, output format, and aspect ratio for processing.
  • Image Generation: The "Create Image" node sends a request to the FLUX Kontext API (fal.run) with the provided parameters to generate a new AI-contextualized image.
  • Status Check: The workflow waits 60 seconds ("Wait 60 sec." node) before checking the status of the image generation request via the "Get status" node. If the status is "COMPLETED," it proceeds; otherwise, it loops back to wait.
  • Result Handling: Once completed, the "Get Image Url" node fetches the generated image URL, which is then downloaded ("Get Image File"), uploaded to Google Drive ("Upload Image"), and the Google Sheet is updated with the result ("Update result").

Set Up Steps

To configure this workflow, follow these steps:

  1. Google Sheet Setup:

    • Create a Google Sheet with columns for PROMPT, IMAGE URL, ASPECT RATIO, OUTPUT FORMAT, and RESULT (leave this empty).
    • Link the sheet in the "Get new image" and "Update result" nodes.
  2. API Key Configuration:

    • Sign up at fal.ai to obtain an API key.
    • In the "Create Image" node, set the Header Auth with:
      • Name: Authorization
      • Value: Key YOURAPIKEY
  3. Google Drive Setup:

    • Specify the target folder ID in the "Upload Image" node where generated images will be saved.
  4. Schedule Trigger (Optional):

    • Adjust the "Schedule Trigger" node to run the workflow at desired intervals (e.g., every 5 minutes).
  5. Test Execution:

    • Run the workflow manually via the "Test workflow" node to verify all steps function correctly.

Once configured, the workflow will automatically process pending prompts, generate images, and update the Google Sheet with results.


Need help customizing?

Contact me for consulting and support or add me on Linkedin.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - When clicking ‘Test workflow’

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 2 - Get status

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 3 - Wait 60 sec.

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 4 - Schedule Trigger

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 5 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Completed?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 8 - Update result

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

Block 9 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 10 - Sticky Note6

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Sticky Note7

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Get Image Url

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 13 - Upload Image

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 14 - Create Image

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 15 - Get new image

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

Block 16 - Get Image File

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 17 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Transform images with AI prompts using FLUX Kontext, Google Sheets and Drive
Complexity advanced
Nodes 17
Categories Content Creation, Multimodal AI
Author Davide
Published 13 Jun 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/4916/4916.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Transform images with AI prompts using FLUX Kontext, Google Sheets and Drive do?

This workflow automates the generation of AI enhanced, contextualized images using FLUX Kontext , based on prompts stored in a Google Sheet. The generated images are then saved to Google Drive , an...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Content Creation, Multimodal AI use case.