Skip to main content

Automate WooCommerce image product background removal using API and Google Sheet

Workflow preview

Workflow preview
100%
Automate WooCommerce image product background removal using API and Google Sheet 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 process of removing backgrounds from WooCommerce product images using the BackgroundCut API, and then updates the product images in both WooCommerce and a Google Sheet ....

Best for

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

Tools used

n8n-nodes-base.manualtrigger, n8n-nodes-base.httprequest, n8n-nodes-base.stickynote, n8n-nodes-base.ftp, n8n-nodes-base.splitinbatches, n8n-nodes-base.code, n8n-nodes-base.set, n8n-nodes-base.woocommerce

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
Automate WooCommerce image product background removal using API and Google Sheet
Workflow name
Automate WooCommerce image product background removal using API and Google Sheet

This workflow automates the process of removing backgrounds from WooCommerce product images using the BackgroundCut API, and then updates the product images in both WooCommerce and a Google Sheet.

Once set up, the workflow processes product images in bulk, removing backgrounds and updating WooCommerce seamlessly.

This workflow is perfect for online stores that sell:

  • Clothing and fashion items
  • Jewelry and accessories
  • General consumer products

Any product that benefits from clean, background-free images for a professional storefront presentation will see improved visual appeal and potentially higher conversions.


Benefits

  • ⏱ Time-saving: Automates what would otherwise be a manual and repetitive task of editing images and updating product listings.
  • 🔄 Fully Integrated: Connects Google Sheets, BackgroundCut API, FTP server, and WooCommerce in a seamless loop.
  • 📦 Scalable: Supports batch processing, making it suitable for stores with hundreds of products.
  • 📁 Organized Tracking: Updates the Google Sheet with the new image and a “DONE” flag for easy monitoring.
  • 🔧 Customizable: You can change the image processing API, storage server, or eCommerce platform if needed.

How It Works

  1. Data Retrieval:

    • The workflow starts by fetching product data (ID and IMAGE URL) from a Google Sheets document.
    • Only rows without a "DONE" marker are processed to avoid duplicates.
  2. Background Removal:

    • Each product image URL is sent to the BackgroundCut API, which removes the background and returns the edited image.
  3. File Handling:

    • The processed image is uploaded to an FTP server with the original filename preserved.
    • A new URL for the edited image is generated and assigned to the product.
  4. WooCommerce Update:

    • The product in WooCommerce is updated with the new image URL.
  5. Sheet Update:

    • The Google Sheet is marked as "DONE" for the processed row, and the new image URL is recorded.
  6. Batch Processing:

    • The workflow loops through all rows in the sheet until all products are processed.

Set Up Steps

  1. Prepare the Google Sheet:

    • Clone the provided Google Sheet template.
    • Fill in the ID (product ID) and IMAGE (original image URL) columns.
  2. API & Credentials Setup:

    • Get an API key from BackgroundCut.co.
    • Configure the HTTP Request node ("Remove from Image URL") with:
      • Header Auth: Authorization = API_KEY.
    • Set up WooCommerce API credentials in the "Update product" node.
  3. FTP Configuration:

    • Replace YOUR_FTP_URL in the "New Image Url" node with your FTP/CDN base URL.
    • Ensure FTP credentials are correctly set in the FTP node.
  4. Execution:

    • Run the workflow manually via "When clicking ‘Execute workflow’".
    • The process automatically handles background removal, file upload, and WooCommerce updates.

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 ‘Execute workflow’

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

Block 2 - Remove from Image URL

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

Block 3 - Sticky Note2

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

Block 4 - FTP

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

Block 5 - Loop Over Items

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

Block 6 - Get Filename

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 7 - New Image Url

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

Block 8 - Update product

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

Block 9 - Set Product Fields

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

Block 10 - Ger Products

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

Block 11 - Update Sheet

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

Block 12 - Sticky Note7

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

3. Summary Table

Workflow Automate WooCommerce image product background removal using API and Google Sheet
Complexity intermediate
Nodes 12
Categories Content Creation, Multimodal AI
Author Davide
Published 29 May 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/4488/4488.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 Automate WooCommerce image product background removal using API and Google Sheet do?

This workflow automates the process of removing backgrounds from WooCommerce product images using the BackgroundCut API, and then updates the product images in both WooCommerce and a Google Sheet ....

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.