n8n Flow
Brand Image Generation
Generates brand-aligned images with a human gate: it assembles the prompt, waits for approval, then generates, compresses, stores, and records the image.
A work in progress
We've published these resources in the hope they're useful — you're welcome to copy or use anything you find on this site. We're still working through each record to optimise it for completeness and accuracy, so some entries are fuller than others for now.
The full workflow as it runs in n8n. Drag to pan, zoom with the controls, and hover any step for what it does.
Drag to pan · zoom with the controls · hover a step for detail.
- Webhook (trigger): An agent requests an image. → Validate Webhook Input.
- When Executed by Another Workflow (trigger): Or another workflow calls it. → Assemble Prompt from Components.
- On form submission (trigger): Or a person requests one via a form. → Edit Fields.
- Validate Webhook Input (action): Checks the request is well-formed. → Assemble Prompt from Components.
- Assemble Prompt from Components (action): Builds the final prompt from the brand components. → Edit Fields.
- Edit Fields (action): Normalises the request fields. → Build HITL Payload.
- Build HITL Payload (action): Prepares the approval request. → HITL Gate.
- HITL Gate (action): Sends it to the human-in-the-loop gate. → Check Decision.
- Check Decision (logic): Proceeds only if approved. → If. → Request Rejected.
- Request Rejected (action): Stops here if rejected.
- If (logic): Branches on whether a reference image was supplied. → Get Reference Image from Supabase. → Nano Banana 2 Image Generation1.
- Get Reference Image from Supabase (action): Fetches the reference image. → Convert Reference Image to Base64.
- Convert Reference Image to Base64 (action): Prepares the reference for the model. → Nano Banana 2 Image Generation.
- Nano Banana 2 Image Generation (action): Generates the image, guided by the reference. → Converts Base64 Output to Binary.
- Nano Banana 2 Image Generation1 (action): Generates the image from the prompt alone. → Converts Base64 Output to Binary.
- Converts Base64 Output to Binary (action): Turns the result into an image file. → Compress to webp and rename.
- Compress to webp and rename (action): Compresses to a web-friendly WebP. → Upload to Supabase Bucket.
- Upload to Supabase Bucket (action): Stores the image. → Store Metadata in Supabase.
- Store Metadata in Supabase (action): Records the image details. → Structure Output.
- Structure Output (action): Returns the finished image reference.
Ready to build technology that works for your mission?
Tell us where your organisation is and what's slowing your team down. We respond personally.