workflows.fit
Back to n8n workflows
n8n templateFreeBy Thong

Redesign t-shirt mockups to print-ready files with GPT-4 vision & Imagen 4

🧠 What This Workflow Does This n8n workflow allows you to upload a T-shirt mockup design (even if it's rough or outdated), and automatically turns it into a refined, print-ready artwork using the power of AI. It star...

DevelopmentCore NodesAILangchainAgentLm Chat Open AiChat TriggerIf
Loading interactive preview...

Template notes

🧠 What This Workflow Does

This n8n workflow allows you to upload a T-shirt mockup design (even if it's rough or outdated), and automatically turns it into a refined, print-ready artwork using the power of AI.

It starts with an image of a T-shirt design, analyzes it using OpenAI's vision model, and then generates a cleaner, upgraded prompt to be used with OpenAI’s image generation API (gpt-image-1). The final output is a new T-shirt graphic optimized for printing on solid black background, with no visible shirt or mockup framing.

āš™ļø How It Works

1. User Sends a T-shirt Mockup Image Link The workflow begins when the user drops an image link (T-shirt mockup) into a chat interface or input trigger.

2. AI Analyzes the Image (OpenAI Vision) Using OpenAI’s GPT-4 vision capabilities, the workflow extracts the key design elements from the image:

- Characters, text, layout - Graphic style, composition - Visual tone and focus - AI Agent Creates a Refined Prompt - The extracted details are passed to an AI agent that: - Preserves the original layout and message - - Enhances the visual composition and typography - Removes mockup elements like shirt collar, sleeves, shadows. - Locks the artwork on a pure black background only - Outputs a clean, artistic, JSON-safe one-line prompt for generation

3. Text Escaping for API Compatibility A JavaScript function node escapes the prompt (quotes, slashes, line breaks) to make it safe for use in downstream JSON requests.