SudoMock
Mockups
DocsPricing
Request a demo
Get Started

Start rendering mockups in minutes

From PSD to product mockup in one API call.

Get Free API Key→Browse Templates
  • System status (opens in new tab)
  • Published pricing
  • Published OpenAPI
  • MCP server
  • 500 one-time API credits
👋We're hiring

Site Navigation

SudoMock

Turn reusable PSD templates, artwork, and editable text into production-ready product images through REST API, no-code workflows, native storefront apps, or AI.

SudoMock is a registered DBA
1209 Mountain Rd Pl NE, Ste N
Albuquerque, NM 87110, USA

Product

  • Pricing
  • Dashboard
  • PSD Mockups
  • Changelog
  • Roadmap
  • Start Free

Developers

  • API Overview
  • Quick Start
  • Authentication
  • Render API
  • Upload PSD
  • MCP Server
  • Integrations

Library

  • All Mockups
  • Apparel Mockups
  • Drinkware Mockups
  • Wall Art Mockups
  • Search Mockups
  • Background Remover
  • Seamless Patterns
  • Free Tools

Resources

  • All Use Cases
  • T-Shirt Mockups
  • Tote Bag Mockups
  • Mug Mockups
  • Blog
  • All Alternatives

Company

  • About
  • Facts
  • Careers
  • Contact
  • Trust Center
  • Brand Assets
  • System Status (opens in new tab)
  • Feature Requests (opens in new tab)

© 2026 SudoMock. All rights reserved.

PrivacyTermsRefundsCookies[email protected]
  • Visa
  • Mastercard
  • American Express
  • Apple Pay
  • Google Pay
  1. Blog
  2. /
  3. Tutorial

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 Nov 28, 2025·2 min read·Beck

n8n workflow where a new design file triggers POST /api/v1/renders and returns t-shirt, mug and framed poster mockups

On this page

  • What We're Building
  • Prerequisites
  • Step-by-Step Setup
  • Complete Workflow JSON
  • Advanced Tips
  • Related Resources
  • Frequently asked questions

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

  • n8n account (cloud or self-hosted)
  • SudoMock API key (get free credits)
  • Cloud storage account (Google Drive, Dropbox, or S3)
  • PSD templates uploaded to SudoMock

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.

JSONTrigger Configuration
{
"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.

JSONSudoMock API Call
{
"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
}
}
}

Multiple Products

Use a Split In Batches node to generate mockups for multiple product types (t-shirt, hoodie, mug) in parallel. Each product type gets its own HTTP Request node.

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.

JSONSave Configuration
{
"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:

JSONn8n Workflow Export
{
"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

Result

Once set up, every design you drop into your folder automatically becomes a complete set of product mockups - ready for your store. No manual work required.

Plans start at $25/month. Subscriptions from $0.002 per render.

Related Resources

n8n Integration Docs

Detailed API setup guide

POD Use Case

More POD automation tips

Etsy Automation

Etsy-specific workflow guide

n8n Documentation

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.

B

Beck

CTO

View all posts

On this page

  • What We're Building
  • Prerequisites
  • Step-by-Step Setup
  • Complete Workflow JSON
  • Advanced Tips
  • Related Resources
  • Frequently asked questions

Related articles

One mushroom design run through the TEMPLATES loop into four renders: black tee, white tee, 11oz mug and 24x36 framed poster
Tutorial

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.

Dec 3, 2025 · 2 min read

Shopify webhook triggers POST /api/v1/renders; one design on a poster, T-shirt and mug, attached to the Shopify product
Tutorial

Shopify Product Images at Scale: API Approach

Automate Shopify product image generation with mockup APIs. Bulk create variants for your entire catalog.

Nov 10, 2025 · 2 min read

Make scenario of Watch New Rows, Render a mockup and Update a Row beside a sheet whose rows 2 to 5 got mockup links, and four SudoMock renders: a tee and a mug with a sunset badge, a framed botanical print, and a canvas tote with a mushroom badge rendered with Render a photo mockup
Tutorial

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.

Oct 31, 2026 · 9 min read

Explore by use case

See SudoMock in action for your specific product category

Print on Demand Mockup Automation for POD SellersT-Shirt Mockup Generator API for Print on DemandEtsy Mockup Generator API for Handmade Marketplace SellersBulk Mockup Generation API for Enterprise ScaleAutomate Shopify Product Mockups at ScaleHoodie Mockup Generator API

Your own PSD, rendered via API

Render your own PSD through the API. Start with 500 one-time credits, no card.

Start Free View Docs

Render your own PSD via API with 500 one-time credits.

Start Free · 500 credits, no card