Generate beauty image using n8n & OPEN-AI

Step 1 (On form submission)

Add two field

  1. Product Name.
  2. Product Description
Step 2 (Edit Fields)

{
"brandName": "TECHNUXT",
"brandTone": "Luxury skincare — clean, calm, and elegant.",
"colorTheme": "Deep sea blues, emerald greens, warm golds, and beige.",
"backgroundStyle": "Soft gradients or realistic textures like water, marble, or satin.",
"lightingStyle": "Always soft, diffused lighting with a subtle spotlight effect and gentle reflections.",
"productPlacement": "The product should feel grounded, not floating — placed on surfaces like trays, marble slabs, or fabric. Props like flower petals, ribbons, or boxes can be used sparingly.",
"typographyStyle": "Use serif fonts in uppercase for titles. For secondary text, use thin script or modern sans-serif. Font color should be white, soft gold, or dark green — never harsh.",
"compositionGuidelines": "Maintain clean symmetry or elegant off-center balance. Always leave intentional space around the product. Keep supporting elements minimal and refined."
}

Step 3 (Google drive)
  1. Operation: Create
  2. Parent folder: By Id - use folder id
Step 4 (Ai Agents)

Prompt (User Message)

ProductName: {{ $('On form submission').item.json['Product Name'] }}
productDescription: {{ $('On form submission').item.json['Product Description'] }}
brandName: {{ $('Edit Fields').item.json.brandName }}
brandTone: {{ $('Edit Fields').item.json.brandTone }}
colorTheme: {{ $('Edit Fields').item.json.colorTheme }}
backgroundStyle: {{ $('Edit Fields').item.json.backgroundStyle }}
lightingStyle: {{ $('Edit Fields').item.json.lightingStyle }}
productPlacement: {{ $('Edit Fields').item.json.productPlacement }}
typographyStyle: {{ $('Edit Fields').item.json.typographyStyle }}
compositionGuidelines: {{ $('Edit Fields').item.json.compositionGuidelines }}

Require Specific Output Format:  trun on

System Message

You are a luxury product photographer and stylist.

Your task is to suggest creative visual styling elements for 1 product launch assets. The product is from a premium skincare brand with a clean, minimal, elegant tone — but it’s okay to be bold and attention-grabbing where suitable.

Each asset must:
- Feel part of the same brand campaign
- Use varied styling (not repetitive)
- Be visually differentiated based on its platform and purpose

Return a JSON object with the following structure:

For each asset, vary the:
- backgroundTone → must be visually attractive and brand-aligned
- surfaceType → creative but not distracting
- accentProp → feminine, luxurious, and elegant (avoid droplets or overused props)
- lighting → varies by mood or asset format
- cameraAngle → changes perspective and storytelling
- Overlay Text - a short yet attractive copy. (It could be a CTA, a launch offer, a normal text etc.) Avoid using the tagline. Make it sound as if it is coming from a very luxurious setting.

Use tasteful elements like marble, linen, satin, ribbon, flowers, sculptural trays, and glass — but ensure each scene feels premium and styled intentionally.

Do **not** repeat the same exact prop, background, or layout across assets.

Only respond with the structured JSON output.

-----

1. Instagram Post
- Purpose: Feed-worthy hero image for social media
- Visual Style: Polished, balanced composition. Clear product focus. Elegant props. Can be bold or eye-catching.

Step 5 (Structured Output Parser)

{
"assets": [
{
"assetType": "Instagram Post",
"backgroundTone": "soft blush gradient",
"surfaceType": "satin draped cloth",
"accentProp": "gold-trimmed ribbon",
"lighting": "warm spotlight from the side",
"cameraAngle": "45-degree angle",
"overlayText": "Glow deeper. Shine brighter."
}
]
}

Step 6 (OPENAI generate Image)

Modal: DALLE-3

Prompt

Create a square (1:1) photorealistic **Instagram Post** visual for the skincare product {{ $('On form submission').item.json['Product Name'] }} from {{ $('Edit Fields').item.json.brandName }}.
This is the **hero asset** in the product launch — it should feel bold, polished, and visually iconic. The composition must be clean, centered, and brand-first, setting the tone for the entire campaign.
The product image is provided — do not alter it. Integrate it into a stylized visual scene.

Use a {{ $json.output.assets[0].backgroundTone }} background that reflects natural elegance — this may include textures like fabric folds, water ripples, or gradient light. Place the product on a {{ $json.output.assets[0].surfaceType }} such as stone, satin, or sculpted glass.

Introduce a complementary accent prop like a {{ $json.output.assets[0].accentProp }} to enrich the visual story. Ensure props enhance, not clutter.

Apply {{ $json.output.assets[0].lighting }} to add dimension, and capture the image from a {{ $json.output.assets[0].cameraAngle }} — this may be slightly off-center, angled, or from above to create depth.

Follow the brand’s identity and styling rules:
- Tone: {{ $('Edit Fields').item.json.brandTone }}
- Color palette: {{ $('Edit Fields').item.json.colorTheme }}
- Typography style (for brand reference only): {{ $('Edit Fields').item.json.typographyStyle }}
- Product placement rules: {{ $('Edit Fields').item.json.productPlacement }}
- Composition: {{ $('Edit Fields').item.json.compositionGuidelines }}

Feel free to include overlay text - "{{ $('AI Agent').item.json.output.assets[0].overlayText }}". Ensure it is clearly legible, elegantly styled, and placed harmoniously within the composition.

This should be a clean, emotionally resonant product visual — worthy of a high-end Instagram or print campaign.

Step 7 (Google drive)

Operation: Upload

Parent folder: By ID - take from drive

Sample data

Screenshot 72 - technuxt Screenshot 73 - technuxt Screenshot 74 - technuxt Screenshot 75 - technuxt

Leave a Reply

Your email address will not be published. Required fields are marked *

Support Chat

Hello! How can I help you today?

16:49