Redesign t-shirt mockups to print-ready files with GPT-4 vision & Imagen 4
Needs changesWhat this workflow does
This AI workflow has 9 nodes and runs when a chat message arrives. Along the way it connects OpenAI Chat Model and OpenAI. It also calls generativelanguage.googleapis.com over HTTP.
How it runs
Trigger: When a chat message arrives.
- If: checks a condition and branches into true / false
- Analyze image (OpenAI): analyze (image)
- AI Agent: runs an AI agent, with model: OpenAI Chat Model
- Code: runs custom JavaScript code
- Gemini Generate Image (HTTP Request): calls generativelanguage.googleapis.com (POST)
- Convert to File: converts data to a file (to binary)
- OpenAI: work with image
Services it uses
HTTP calls to: generativelanguage.googleapis.com
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in AI Agent (v1.9): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) AI Agent (v1.9) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (8)
- AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Chat Trigger
@n8n/n8n-nodes-langchain.chatTrigger - If
n8n-nodes-base.if - Code
n8n-nodes-base.code - OpenAI
@n8n/n8n-nodes-langchain.openAi - Convert to File
n8n-nodes-base.convertToFile - HTTP Request
n8n-nodes-base.httpRequest
From the author
🧠 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,…