Skip to main content
Community template Uses AIContent CreationMultimodal AI

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

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…

Template by Davide Boizza · Original listing (opens in a new tab)

Starts on
App event
Nodes
13 nodes
Level
Intermediate
Setup
About 24 min

Workflow preview

How this workflow runs

  1. 1

    When clicking ‘Test workflow’

    Starts the workflow manually when you click 'Execute workflow' — used for testing and manual runs.

  2. 2

    Google Sheets

    Reads from or writes rows to a Google Sheets spreadsheet.

  3. 3

    Loop Over Items

    Loops over items in batches, processing each one in turn (used for iteration).

  4. 4

    Set data

    Sets or transforms workflow data — prepares, renames, or injects fields before the next step.

  5. 5

    Create Image

    Makes an external API call (HTTP request) to send or retrieve data from a third-party service.

  6. 6

    Wait 60 sec.

    Pauses the workflow for a set time or until a condition is met (used for polling / async jobs).

  7. 7

    Get status

    Makes an external API call (HTTP request) to send or retrieve data from a third-party service.

  8. 8

    Completed?

    Branches the workflow based on a true/false condition.

  9. 9

    Get Url image

    Makes an external API call (HTTP request) to send or retrieve data from a third-party service.

  10. 10

    Get File image

    Makes an external API call (HTTP request) to send or retrieve data from a third-party service.

Creator's notes and setup

Written by Davide Boizza for the original listing.

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.

n8n nodes used (9 types)

What every node does (13)
  • When clicking ‘Test workflow’ (Manual Trigger)Starts the workflow manually when you click 'Execute workflow' — used for testing and manual runs.
  • Get File image (HTTP Request)Makes an external API call (HTTP request) to send or retrieve data from a third-party service.
  • Get Url image (HTTP Request)Makes an external API call (HTTP request) to send or retrieve data from a third-party service.
  • Get status (HTTP Request)Makes an external API call (HTTP request) to send or retrieve data from a third-party service.
  • WooCommerce (Woo Commerce)Handles the Woo Commerce step in this workflow.
  • Google Sheets (Google Sheets)Reads from or writes rows to a Google Sheets spreadsheet.
  • Wait 60 sec. (Wait)Pauses the workflow for a set time or until a condition is met (used for polling / async jobs).
  • Completed? (If)Branches the workflow based on a true/false condition.
  • Upload Image (Google Drive)Uploads, downloads, or manages files in Google Drive.
  • Update result (Google Sheets)Reads from or writes rows to a Google Sheets spreadsheet.
  • Set data (Set)Sets or transforms workflow data — prepares, renames, or injects fields before the next step.
  • Create Image (HTTP Request)Makes an external API call (HTTP request) to send or retrieve data from a third-party service.
  • Loop Over Items (Split In Batches)Loops over items in batches, processing each one in turn (used for iteration).

FAQ

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

How do I import the "Auto-generate virtual AI try-on images for WooCommerce with Gemini Nano Banana" workflow into n8n?

Copy the workflow JSON from this page, open the n8n editor, click on an empty canvas and paste with Ctrl+V (Cmd+V on macOS). You can also download the .json file and choose Import from File in the workflow menu. Save the workflow, then attach credentials before activating it.

Which nodes and credentials does "Auto-generate virtual AI try-on images for WooCommerce with Gemini Nano Banana" use?

It uses Google Sheets, HTTP Request, If, Set, Split In Batches and Google Drive, plus 3 more. Any node that connects to an external service needs your own credential — open each node after import and select or create one. Trigger, logic and transformation nodes usually need no credentials.

Can it run on n8n Cloud and on self-hosted n8n?

The workflow format is the same on both. If a node appears as unknown or outdated after import, update n8n to a recent version or, on self-hosted instances, install the required community node package. Features such as $env access are available on self-hosted instances only.

How can I customise "Auto-generate virtual AI try-on images for WooCommerce with Gemini Nano Banana"?

Start by changing the trigger (schedule, webhook or app event) and the destination nodes to match your stack — it is listed under Content Creation, Multimodal AI. Edit prompts, field mappings and filters in the relevant nodes, use expressions like {{ $json.field }} to map data, and test with a manual execution before activating.

n8n is a trademark of n8n GmbH. AltFTool is not affiliated with, endorsed by or sponsored by n8n. Community templates are credited to their creators and link to the original listing; AltFTool originals are written and tested by the AltFTool team.

About this page

Free n8n workflow templates to copy and import

The AltFTool n8n library collects free n8n workflow templates for AI agents, Gmail, Google Sheets, Telegram and other apps. Each workflow page shows a preview, the list of nodes and the credentials it needs, and lets you copy or download the JSON to import into your own n8n.

Search the templates by app or task, or browse them by category and by node. The Workflow Inspector checks any workflow JSON for triggers, credentials and hardcoded keys before you share it, and the expressions cheat sheet gives copy-paste n8n expression examples. AltFTool is not affiliated with n8n.

People also search for

  • n8n workflow templates
  • n8n templates
  • n8n automation examples
  • n8n json workflows
  • n8n nodes
  • free n8n workflow templates
  • n8n ai agent template
  • n8n expressions cheat sheet