Generate multiple T-shirt design prompts from images with GPT-4o
Needs changesNeeds changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.
What this workflow does
This AI workflow has 8 nodes and runs on Local File events. Along the way it connects OpenAI Chat Model and OpenAI.
How it runs
Trigger: On Local File events.
- Converter (Code): runs custom JavaScript code
- Get Image From File (Read/Write Files from Disk): reads a file from disk
- Analyze Image (OpenAI): uses OpenAI
- Prompt/Text Generator (AI Agent): runs an AI agent, with model: OpenAI Chat Model
- Convert To Text (Convert to File): converts data to a file
- Save To File (Read/Write Files from Disk): reads a file from disk
Services it uses
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 Prompt/Text Generator (v1.7): 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) Prompt/Text Generator (v1.7) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (7)
- Local File Trigger
n8n-nodes-base.localFileTrigger - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Code
n8n-nodes-base.code - Read/Write Files from Disk
n8n-nodes-base.readWriteFile - OpenAI
@n8n/n8n-nodes-langchain.openAi - AI Agent
@n8n/n8n-nodes-langchain.agent - Convert to File
n8n-nodes-base.convertToFile
From the author
Quick overview This powerful workflow eliminates hours of trial and error when trying to craft the perfect prompt for AI-generated images. How it works 1. Once you find an image or design that perfectly matches the style you’re aiming for, the rest of the…