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

2,140 views · 🎬 Content Creation & Video

Description

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: image

Prompt: The girl is lying on the bed and sleeping

Result: image


Perfect for E-commerce and Social Media

This workflow is especially useful for e-commerce businesses:


How It Works


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.

🔗 Nodes Used

Google Sheets, HTTP Request, Google Drive, Schedule Trigger

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup