AI Virtual TryOn Generation for E-commerce Catalog Update - n8n Workflow

Automate AI virtual try-on image generation for your WooCommerce store using this powerful n8n workflow. Integrates Google Sheets, AI APIs, and WooCommerce updates.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?

E-commerce managers and WooCommerce store owners seeking to scale product visualization.
Technical marketers looking to implement advanced AI functionalities using n8n templates.
Developers needing an example of asynchronous API polling within an n8n workflow.
Users looking to manage product inventory synchronization between Google Sheets and WooCommerce.

Overview

This sophisticated n8n workflow is designed to automate the process of enhancing e-commerce product catalogs with AI-generated virtual try-on images. It addresses the common pain point of asynchronous processing and data synchronization across multiple platforms (Google Sheets, external AI API, Google Drive, and WooCommerce). The automation begins by sourcing new product data from a Google Sheet. It then initiates an AI image generation process and manages a necessary waiting and polling mechanism until the image is ready. Finally, this powerful n8n automation ensures the image is stored and correctly mapped back to the corresponding product in your WooCommerce store. This end-to-end n8n solution is an ideal example of effective catalog enhancement.

How it Works

The n8n workflow can be initiated via a manual test or run automatically using the Schedule Trigger n8n trigger.


  1. Data Ingestion: The flow starts by using the Google Sheets n8n node to execute the 'Get new product' operation, fetching product IDs and initial image data for processing.

  2. AI Request: A Set n8n node prepares the required input data, which is then sent via the 'Create Image' HTTP Request n8n node to the external AI image generation service.

  3. Asynchronous Polling: Because AI image generation is time-consuming, the n8n workflow uses the 'Wait 60 sec.' n8n node to pause. Following the pause, the 'Get status' HTTP Request n8n node checks the job completion status.

  4. Conditional Check: The 'Completed?' IF n8n node determines if the image is ready. If not, the flow loops back to the Wait n8n node to continue polling, ensuring reliable job completion.

  5. Result Retrieval & Storage: Once complete, the 'Get Url image' and 'Get File image' HTTP Request n8n nodes download the final virtual try-on image. This image is immediately uploaded to cloud storage using the Google Drive n8n node ('Upload Image').

  6. Update Records: The Google Sheets n8n node ('Update result') logs the outcome and new image URL back to the tracking spreadsheet.

  7. E-commerce Integration: The final step uses the WooCommerce n8n node ('Update product') to seamlessly attach the newly generated AI image to the corresponding product in the online store. This complete process demonstrates the power of this comprehensive n8n workflow.

Installation Guide


  1. Import: Copy the provided n8n workflow JSON and paste it into your n8n instance using the 'New' -> 'Import from JSON' option.

  2. Credentials Setup: You must configure credentials for the following services:

Google Sheets: Required for the 'Get new product' and 'Update result' n8n node steps. Ensure the n8n node has read/write access to your designated spreadsheet.
External AI API: The HTTP Request n8n nodes ('Create Image' and 'Get status') require authentication tokens or API keys to communicate with your AI image generation service.
Google Drive: Required for the 'Upload Image' n8n node to store the generated assets.
WooCommerce: Required for the 'Update product' n8n node to connect and modify product data in your store.

  1. Configuration: Update the sheet name, column references, and the specific URLs/endpoints within the HTTP Request n8n node settings to match your AI service documentation. Ensure the WooCommerce n8n node is configured with the correct Product ID mapping.

Node Details

Schedule Trigger / Manual Trigger n8n trigger: Initiates the n8n workflow, allowing it to run on a schedule or immediately for testing purposes.
Google Sheets n8n node ('Get new product'): The primary source of product data. It reads rows from a configured spreadsheet to identify items needing virtual try-on images.
HTTP Request n8n node ('Create Image'): This critical n8n node sends the initial request to the external AI service, providing the input image and parameters needed for generation.
Wait n8n node ('Wait 60 sec.'): Pauses the execution of the n8n workflow for a defined period, essential for handling asynchronous API processing times.
IF n8n node ('Completed?'): Manages the polling logic. It checks the response from 'Get status' to see if the AI job is finished, looping back to the 'Wait' step if generation is still in progress.
HTTP Request n8n node ('Get File image'): Downloads the actual binary file data of the newly created virtual try-on image.
Google Drive n8n node ('Upload Image'): Handles the persistent storage of the generated image assets.
WooCommerce n8n node ('Update product'): The final destination n8n node, responsible for updating the selected product by attaching the new AI-generated image to the catalog entry.

Related n8n Workflows

Paid

Nodes: 10 Nodes
Updated: December 26 2025
View all
Created by

Full-stack Web Developer based in Italy specialising in Marketing & AI-powered automations. For business enquiries, send me an email at [email protected] or add me on Linkedin.com/in/davideboizza

Featured*