Remove WooCommerce product image backgrounds with LassoCut
UnknownWhat this workflow does
This workflow has 14 nodes and runs on a schedule (every hour) (plus 1 other trigger). Along the way it connects WooCommerce and Lassocut (community).
How it runs
Trigger: On a schedule (every hour) (plus 1 other trigger).
- Settings (Edit Fields (Set)): sets 7 fields: storeUrl, backgroundColor, size…
- Get all products (WooCommerce): get many (product)
- Keep products to process (Filter): keeps only the items that match a condition
- Cap products per run (Limit): keeps the first few items
- Loop over products (Loop Over Items (Split in Batches)): loops over the items in batches
- Build run summary (Code): runs custom JavaScript code
- Download main image (HTTP Request): calls an HTTP API
- Remove background with LassoCut (Lassocut): uses Lassocut
- Record failure (Edit Fields (Set)): sets 6 fields: product_id, product, status…
- Upload to media library (HTTP Request): calls an HTTP API (POST)
…plus 2 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
We can't fully verify this one: it relies on 1 community package, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).
- Check that n8n-nodes-lassocut is verified or supports 3.0 (used in Remove background with LassoCut).
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (10)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Manual Trigger
n8n-nodes-base.manualTrigger - Edit Fields (Set)
n8n-nodes-base.set - WooCommerce
n8n-nodes-base.wooCommerce - Filter
n8n-nodes-base.filter - Limit
n8n-nodes-base.limit - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - HTTP Request
n8n-nodes-base.httpRequest - Lassocut
n8n-nodes-lassocut.lassocut - Code
n8n-nodes-base.code
From the author
Quick Overview This workflow collects a photo upload via an n8n form and uses LassoCut to remove the background based on the selected color and output size, returning a downloadable PNG cut-out to the browser or showing an error message if processing fails.…