Skip to main content

Auto-generate virtual AI try-on images for WooCommerce with Gemini Nano Banana

Workflow preview

Workflow preview
100%
Auto-generate virtual AI try-on images for WooCommerce with Gemini Nano Banana 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 creation of AI generated virtual try on images for fashion eCommerce stores. Instead of relying on expensive and time consuming photoshoots, the system uses AI to genera...

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.stickynote, n8n-nodes-base.woocommerce, n8n-nodes-base.googlesheets, n8n-nodes-base.wait, n8n-nodes-base.if, 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
Auto-generate virtual AI try-on images for WooCommerce with Gemini Nano Banana
Workflow name
Auto-generate virtual AI try-on images for WooCommerce with Gemini Nano Banana

This workflow automates the creation of AI-generated virtual try-on images for fashion eCommerce stores. Instead of relying on expensive and time-consuming photoshoots, the system uses AI to generate realistic images of models wearing selected clothing items.

This n8n workflow automates the process of generating AI-powered virtual try-on images for a WooCommerce store. It fetches product data from a Google Sheet, uses the Fal.ai Nano Banana model to create an image of a model wearing the clothing item, and then updates both the Google Sheet and the WooCommerce product with the final generated image.


Advantages

  • Cost Reduction: Eliminates the need for professional photo shoots, saving on models, photographers, and studio expenses.
  • Time Efficiency: Automates the entire workflow—from data input to product update—minimizing manual work.
  • Scalability: Works seamlessly across large product catalogs, making it easy to update hundreds of products quickly.
  • Enhanced eCommerce Experience: Provides shoppers with realistic previews of clothing on models, boosting trust and conversion rates.
  • Marketing Flexibility: The generated images can also be repurposed for ads, social media, and promotional campaigns.
  • Centralized Management: Google Sheets acts as the control center, making it easy to manage inputs and track results.

How It Works

The workflow operates in a sequential, loop-based manner to process multiple products from a spreadsheet. Here is the logical flow:

  1. Manual Trigger & Data Fetch: The workflow starts manually (e.g., by clicking "Test workflow"). It first reads data from a specified Google Sheet, looking for rows where the "IMAGE RESULT" column is empty.

  2. Loop Processing: It loops over each row of data fetched from the sheet. Each row should contain URLs for a model image and a product image, along with a WooCommerce product ID.

  3. API Request to Generate Image: For each item in the loop, the workflow sends a POST request to the Fal.ai Nano Banana API. The request includes the two image URLs and a prompt instructing the AI to create a photo of the model wearing the submitted clothing item.

  4. Polling for Completion: The AI processing is asynchronous. The workflow enters a polling loop: it waits for 60 seconds and then checks the status of the processing request. If the status is not COMPLETED, it waits and checks again. This loop continues until the image is ready.

  5. Fetching and Storing the Result: Once the status is COMPLETED, the workflow retrieves the URL of the generated image, downloads the image file, and uploads it to a designated folder in Google Drive.

  6. Updating Systems: The workflow then performs two crucial update steps:

    • It updates the original Google Sheet row, writing the URL of the final generated image into the "IMAGE RESULT" column.
    • It updates the corresponding product in WooCommerce, adding the generated image to the product's gallery.
  7. Loop Continuation: After processing one item, the workflow loops back to process the next row in the Google Sheet until all items are complete.


** Set Up Steps**

To make this workflow functional, you need to configure three main connections:

Step 1: Prepare the Google Sheet

  • Create a Google Sheet with the following columns: IMAGE MODEL, IMAGE PRODUCT, PRODUCT ID, and IMAGE RESULT.
  • Populate the first three columns for each product. The IMAGE RESULT column must be left blank; the workflow will fill it automatically.
  • In the n8n workflow, configure the "Google Sheets" node to point to your specific Google Sheet and worksheet.

Step 2: Configure the Fal.ai API Key

  • Create an account at fal.ai and obtain your API key.
  • In the n8n workflow, locate the three "HTTP Request" nodes named "Get Url image", "Get status", and "Create Image".
  • Edit the credentials for these nodes (named "Fal.run API") and update the Value field in the Header Auth to be Key YOURAPIKEY (replacing YOURAPIKEY with your actual key).

Step 3: Set Up WooCommerce API

  • Ensure you have the API keys (Consumer Key and Consumer Secret) for your WooCommerce store's REST API.
  • In the n8n workflow, locate the "WooCommerce" node.
  • Edit its credentials and provide the required information: your store's URL and the API keys. This allows the workflow to authenticate and update your products.

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

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

Block 3 - Get Url image

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

Block 4 - Get status

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

Block 5 - Sticky Note

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

Block 6 - Sticky Note1

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

Block 7 - Sticky Note2

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

Block 8 - WooCommerce

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

Block 9 - Google Sheets

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

Block 10 - Wait 60 sec.

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

Block 11 - Sticky Note3

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

Block 12 - Sticky Note4

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

Block 13 - Completed?

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

Block 14 - Upload Image

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

Block 15 - Update result

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

Block 16 - Set data

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 17 - Create Image

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

Block 18 - Sticky Note6

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

Block 19 - Loop Over Items

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

Block 20 - Sticky Note7

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

3. Summary Table

Workflow Auto-generate virtual AI try-on images for WooCommerce with Gemini Nano Banana
Complexity advanced
Nodes 20
Categories Content Creation, Multimodal AI
Author Davide
Published 29 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/8022/8022.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 Auto-generate virtual AI try-on images for WooCommerce with Gemini Nano Banana do?

This workflow automates the creation of AI generated virtual try on images for fashion eCommerce stores. Instead of relying on expensive and time consuming photoshoots, the system uses AI to genera...

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.