Skip to main content

Generate custom cake images with OpenAI GPT & Replicate Flux Schnell

Workflow preview

Workflow preview
100%
Generate custom cake images with OpenAI GPT & Replicate Flux Schnell preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Who’s it for This template is designed for bakeries, event planners, and e commerce platforms that want to automatically generate custom cake designs . It’s also ideal for marketers or digital crea...

Best for

  • Content Creation automation workflows
  • Multimodal AI automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

@n8n/n8n-nodes-langchain.lmchatopenai, n8n-nodes-base.httprequest, @n8n/n8n-nodes-langchain.agent, n8n-nodes-base.webhook, n8n-nodes-base.respondtowebhook, n8n-nodes-base.stickynote

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Nabin Bhandari.

Original n8n.io source

1.1 Workflow description

Title
Generate custom cake images with OpenAI GPT & Replicate Flux Schnell
Workflow name
Generate custom cake images with OpenAI GPT & Replicate Flux Schnell

Who’s it for

This template is designed for bakeries, event planners, and e-commerce platforms that want to automatically generate custom cake designs. It’s also ideal for marketers or digital creators who need personalized celebratory visuals for social media or email campaigns.

How it works

This workflow converts simple user input (e.g., “Sarah’s Birthday”) into a creative cake design:

  1. Webhook: Captures user input from the Bolt frontend form.
  2. OpenAI GPT: Generates a detailed and creative cake design prompt.
  3. Replicate Flux Schnell: Produces a unique cake image using the AI-generated prompt.
  4. HTTP Response: Sends the final cake image back to the frontend.

How to set up

  1. Import this template into n8n.
  2. Add your OpenAI API Key under n8n Credentials for the OpenAI Chat Model node.
  3. Add your Replicate API Token as an HTTP Header Auth credential (do not hardcode it).
  4. Update the Webhook node URL in the Bolt frontend form to send a POST request to n8n.
  5. (Optional) Customize the OpenAI prompt in the Prompt Generator node to adjust cake style, colors, or decorations.

Requirements

  • n8n account (cloud or self-hosted).
  • OpenAI API Key for prompt generation.
  • Replicate API Token for AI image generation.
  • A Bolt frontend or any form that can call the webhook endpoint.

How to customize the workflow

  • Replace "cake" with any product type (e.g., mugs, greeting cards, or T-shirts).
  • Add a database node (Google Sheets or Supabase) to log user requests and images.
  • Implement input moderation by adding an OpenAI moderation node before the prompt generation. Frontend

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 2 - Generate Image

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 3 - Prompt Generator

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2.1

Block 4 - User Sends Request

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2

Block 5 - Download Image

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 6 - Respond to Requests

Type / Role
n8n-nodes-base.respondToWebhook - respondToWebhook
Config choices
Version 1.4

Block 7 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 9 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 10 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Generate custom cake images with OpenAI GPT & Replicate Flux Schnell
Complexity intermediate
Nodes 11
Categories Content Creation, Multimodal AI
Author Nabin Bhandari
Published 19 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6161/6161.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Generate custom cake images with OpenAI GPT & Replicate Flux Schnell do?

Who’s it for This template is designed for bakeries, event planners, and e commerce platforms that want to automatically generate custom cake designs . It’s also ideal for marketers or digital crea...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Content Creation, Multimodal AI use case.