I’ve created a simple workflow in n8n that allows me to generate a detailed prompt from a short sentence using the OpenAI Message node. This optimized prompt is then used to generate an image via DALL·E 3, and I send the result to Slack.
Now I would like to implement a loop that allows me to generate multiple images from the same input — for example, 5 images based on a single sentence.
The idea is: I enter one sentence describing what kind of image I want, and the workflow should automatically generate 5 different images and send them to me.
What would be the best way to set this up in n8n?
Would you recommend using the Loop node, or a counter-based approach with Set and IF nodes?
I’ve spent some time working with ComfyUI and I’m currently trying to build up my knowledge of n8n. I find the loop mechanics a bit unintuitive at first, but once you understand the underlying concept, it’s actually pretty straightforward. Thanks a lot for the quick help!