Building a Print-on-Demand Pipeline with n8n
An n8n print-on-demand pipeline is built around an HTTP Request node. It sends your PSD template's UUIDs and each new design's URL to SudoMock's render API and gets the mockup's image URL back in under a second. A Google Drive Trigger starts each run, and later nodes save the mockup and create a draft Etsy or Shopify listing.
Published 2 min readBeck

Build a fully automated Print-on-Demand pipeline using n8n and SudoMock. From design upload to published listing - without touching a single mockup manually.
0
Manual steps
Fully automated
400+
Apps supported
n8n integrations
Free
n8n tier
Self-hosted option
What We're Building
This pipeline automatically generates product mockups whenever you upload a new design. Here's the flow:
- Trigger: New file uploaded to Google Drive/Dropbox
- Generate: SudoMock creates mockups for all product types
- Organize: Save mockups to your storage with proper naming
- Publish: Create draft listings on Etsy/Shopify (optional)
Prerequisites
Step-by-Step Setup
1 Create the Trigger
In n8n, create a new workflow and add a Google Drive Trigger node (or your preferred storage). Configure it to watch your designs folder, and share that folder as Anyone with the link: Step 2 hands SudoMock each file's Drive download link, and a private file's link answers with a Google sign-in page instead of the image.
{"resource": "file","event": "fileCreated","watchFolder": "POD Designs","fileTypes": ["image/png", "image/jpeg"]}
2 Add HTTP Request Node
Add an HTTP Request node to call SudoMock's render API. This generates your mockups.
{"method": "POST","url": "https://api.sudomock.com/api/v1/renders","headers": {"X-API-KEY": "{{ $credentials.sudomockApiKey }}","Content-Type": "application/json"},"body": {"mockup_uuid": "your-tshirt-template-uuid","smart_objects": [{"uuid": "your-smart-object-uuid","asset": {"url": "{{ $json.webContentLink }}"}}],"export_options": {"image_format": "jpg","image_size": 1024,"quality": 95}}}
3 Save Results
Add an HTTP Request node that downloads the rendered mockup: method GET, the URL set to the data.print_files[0].export_path of the render response, and Response Format set to File under Options, with the output field named data. Then add a Google Drive node with the Upload operation and Input Data Field Name set to data, so the upload reads the downloaded file. Use expressions to create organized folder structures.
{"operation": "upload","folder": "Mockups/{{ $json.design_name }}","fileName": "{{ $json.product_type }}_{{ $json.design_name }}.jpg","inputDataFieldName": "data"}
4 Optional: Create Listings
Connect to Etsy or Shopify APIs to automatically create draft listings with your new mockups.
Complete Workflow JSON
Import this workflow directly into n8n to get started quickly:
{"name": "POD Mockup Pipeline","nodes": [{"name": "Google Drive Trigger","type": "n8n-nodes-base.googleDriveTrigger","position": [250, 300],"parameters": {"event": "fileCreated","folderId": "your-folder-id"}},{"name": "Generate T-Shirt Mockup","type": "n8n-nodes-base.httpRequest","typeVersion": 4.2,"position": [450, 300],"parameters": {"method": "POST","url": "https://api.sudomock.com/api/v1/renders","authentication": "genericCredentialType","genericAuthType": "httpHeaderAuth","sendBody": true,"specifyBody": "json","jsonBody": "={{ JSON.stringify({ mockup_uuid: 'your-tshirt-template-uuid', smart_objects: [{ uuid: 'your-smart-object-uuid', asset: { url: $json.webContentLink } }], export_options: { image_format: 'jpg', image_size: 1024, quality: 95 } }) }}"}},{"name": "Download Mockup","type": "n8n-nodes-base.httpRequest","typeVersion": 4.2,"position": [650, 300],"parameters": {"url": "={{ $json.data.print_files[0].export_path }}","options": {"response": {"response": {"responseFormat": "file","outputPropertyName": "data"}}}}},{"name": "Save to Drive","type": "n8n-nodes-base.googleDrive","typeVersion": 3,"position": [850, 300],"parameters": {"operation": "upload","inputDataFieldName": "data"}}],"connections": {"Google Drive Trigger": {"main": [[{"node": "Generate T-Shirt Mockup", "type": "main", "index": 0}]]},"Generate T-Shirt Mockup": {"main": [[{"node": "Download Mockup", "type": "main", "index": 0}]]},"Download Mockup": {"main": [[{"node": "Save to Drive", "type": "main", "index": 0}]]}}}
Advanced Tips
- Error handling: Add Error Trigger nodes to catch API failures and send alerts
- Rate limiting: Use Wait nodes between API calls if hitting rate limits
- Parallel processing: Split batches for faster processing of multiple designs
- Logging: Add Airtable or Google Sheets nodes to track processed designs
Plans start at $25/month. Subscriptions from $0.002 per render.
Related Resources
Detailed API setup guide
More POD automation tips
Etsy-specific workflow guide
Official n8n docs
Frequently asked questions
How do I set up a POD automation pipeline with n8n?
Create an n8n workflow that triggers on new orders or design uploads, calls the mockup API to generate product images, and uploads results to your POD platform. Use HTTP Request nodes for API calls and platform-specific nodes for integrations.
Can n8n connect to print-on-demand platforms?
Yes, n8n supports connections to major POD platforms through HTTP Request nodes or dedicated integrations. Printful, Printify, Gooten, and others can be connected via their APIs to automate the entire fulfillment workflow.
What triggers should I use for mockup automation in n8n?
Common triggers for mockup automation in n8n are a webhook from your storefront for each new order and a scheduled check for new designs in cloud storage. Form submissions cover custom orders, and a manual trigger handles batch processing of existing products.
How do I handle errors in my n8n mockup pipeline?
Use n8n's error handling nodes to catch API failures. Set up retry logic for temporary errors, send notifications for persistent failures, and log errors for debugging. Always validate inputs before making API calls.
Can I preview mockups before sending to production in n8n?
Yes, add a human-in-the-loop step using n8n's Wait node combined with an approval webhook. Send preview images to Slack or email, wait for approval, then continue the workflow to upload approved mockups.
Beck
CTO
Related articles

How to Automate Etsy Product Mockups in 2026
Step-by-step guide to automating your Etsy listing mockups with SudoMock API. Save hours of manual work.
2 min read

Shopify Product Images at Scale: API Approach
Automate Shopify product image generation with mockup APIs. Bulk create variants for your entire catalog.
2 min read

Make.com Mockup Scenario: Render Each New Google Sheets Row on Your Own PSD or Product Photo
Three Make modules turn each new sheet row into a finished mockup on your own template, with real renders of a tee, a mug, a framed print and a tote.
9 min read
Explore by use case
See SudoMock in action for your specific product category
Your own PSD, rendered via API
Render your own PSD through the API. Start with 500 one-time credits, no card.