Quick overview
This workflow collects a product image and scene brief via an n8n form, uses OpenAI to analyze the image and generate three “Quiet Luxury” lifestyle variations with GPT Image, and uploads both the original and generated images to Google Drive.
How it works
- Receives an n8n form submission containing a product image, a scene brief, and a preferred model gender.
- Uploads the submitted product image to Google Drive, then downloads it again to continue processing from a stored file.
- Converts the downloaded image to base64 and uses OpenAI (GPT-4o) to analyze the image so the prompts keep the original brand vibe.
- Uses OpenAI to turn the user’s scene brief into three structured scene ideas and to refine each idea into a strict “Quiet Luxury” prompt.
- Downloads the product image from Google Drive for each scene and sends it to the OpenAI Images Edits endpoint (gpt-image-2) to generate three zoomed-out lifestyle images without changing the product.
- Converts each generated image response to a file and uploads the three outputs to Google Drive in the configured target folders.
Setup
- Add an OpenAI API credential with access to GPT-4o, GPT-4.1, and the Images Edits endpoint (gpt-image-2).
- Add a Google Drive OAuth2 credential.
- In each Google Drive upload step, select the destination folders (the template placeholders like “Select your Google Drive folder here” must be replaced).
- Publish the n8n form and use it to submit a product image plus a scene brief (written to produce three scenes) and a value for the gender field.