AI E-Commerce Case Study: Optimizing Digital Product Systems with Automation
Discover how I leveraged Generative AI and automation workflows (ComfyUI, n8n, Make) to build a scalable digital products business on Etsy from scratch.
Case Study: Optimizing E-Commerce with AI & Automation
This case study demonstrates how I leveraged Generative AI and Automation Workflows to build and operate a Digital Products shop on Etsy from the ground up. The goal was not just to create products but to establish a fully automated "content factory" that optimizes costs and scales massive volumes efficiently.
Author: Truong Nguyen Anh Khoa
Domain: AI Automation / Digital Product Strategy
Project: NatureNurseryPrints (Etsy Shop)
1. Project Overview
"How can we build a sustainable passive income stream that operates even while we sleep?" — This was the driving question behind this journey.
- Platform: Etsy (Specializing in handmade and digital products).
- Niche: Children's Bedroom Wall Art (Nursery Wall Art).
2. Core Concept & Differentiation (The USP)
The Nursery Wall Art market is highly competitive and often saturated. To succeed, I needed a powerful USP (Unique Selling Point) that went beyond standard animal illustrations.
The "Lifecycle" Concept
Instead of selling static images, I designed art sets where characters grow alongside the child through different stages.
- Stages: Newborn → Infant → Toddler → Kid.
- Visual Storytelling: An elephant just born, then taking its first steps, then playing joyfully...
- Business Value: This creates an emotional bond with parents, encouraging brand loyalty and driving repeat purchases (Retention) as their children grow.
3. The Tech Stack
The project is built on a hybrid of Local AI (to optimize cost and privacy) and Cloud Automation:
- Generative AI: ComfyUI (Flux2 9B model), Nano Banana.
- Prompt Engineering: Antigravity (Batch prompt optimization).
- Automation: n8n, Make.com.
- Logic & Management: Python Script, Google Sheets.
- Hardware: Dedicated local server for 24/7 image rendering.
4. The Automated Workflow
The process is designed as a closed-loop pipeline from ideation to marketing:
Step 1: Prompt Engineering & Raw Materials
Using Antigravity to generate optimized batch prompts. These prompts ensure consistency in style, lighting, and color across 128 variations of 32 different animals.
Step 2: AI Generation (ComfyUI Pipeline)
I deployed the Flux2 9B model on the ComfyUI platform.
- Technique: Integration of Custom Loras for precise artistic style enforcement.
- Output: 128 high-quality original images with absolute consistency.


Step 3: Post-Processing & Standard Ratios
Using image processing nodes in ComfyUI to automatically refit from the original ratio (2x3) to international standards (3x4, 4x5, ISO, 11x14). Next, images pass through a Model-based Upscale (VAE) node to achieve ultra-high resolution ready for large-format printing.
Step 4: Automated Mockup Generation
This is the most complex phase. I built a workflow to automatically composite art into mockups using Masking & Image Composition techniques in ComfyUI.
- Results: Automatically generated 1,152 mockup images (9 angles per product), perfectly aligned to the frame.


Step 5: Data Log & System Orchestration (The Brain)
The entire system is orchestrated by n8n. This is the central "brain" connecting ComfyUI with Google Sheets and the storage system.
- Features: Automatically detects rendered files, updates progress in the database (Sheets), and organizes assets into target folders.

Step 6: Marketing Automation (Make.com)
Set up workflows on Make.com to automatically upload listing images to Pinterest and Instagram, driving external traffic to the Etsy store.
5. Challenges & Optimization
During implementation, I faced several constraints and developed suitable workarounds:
- Hardware Optimization: Local rendering takes 10-12 minutes per product. I optimized Denoise and Step parameters to balance quality and speed.
- API Constraints: Since Etsy limits API access for small sellers, I focused on automating the "Assets Preparation" phase, making manual uploads extremely fast.
- Cost Management: Using Local models instead of Cloud (Midjourney/DALL-E) saved hundreds of dollars in monthly resource costs.
6. Results & Key Takeaways
Key Results
- Successfully built an Asset Production system generating 1,152 automated mockups.
- Mastered advanced Stable Diffusion/Flux deployment on ComfyUI.
- Established an automated multi-channel marketing system with Make.com.
Lessons Learned
- Systems Thinking: Any scalability issue can be solved by Automation if the logic is properly decomposed.
- The Trade-off: Choosing Local execution takes more time but provides deeper knowledge of Model architecture and token savings.
- Persistence with Vision: From a small "time-slice" idea, AI transformed it into a massive digital asset library that would be impossible for an individual to create manually in the same timeframe.
Conclusion
This case study proves that an individual can operate a complex business model by combining Unique Marketing Insight with the Power of AI Automation.
"Just do it. If you fail, fix it. If you don't know, research it — don't let the idea die."
