# Generate & deploy landing pages with OpenAI and Gemini: n8n workflow

> Started by someone opening a chat with it, and works across n8n data table. It hands the judgement calls to Gemini and OpenAI.

Source: https://millionrounds.com/workflow/generate-and-deploy-landing-pages-with-openai-and-gemini (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [AI assistants](https://millionrounds.com/workflows?category=AI+assistants#library)

# Generate & deploy landing pages with OpenAI and Gemini

Started by someone opening a chat with it, and works across n8n data table. It hands the judgement calls to Gemini and OpenAI. 20 steps: a working afternoon to understand properly.

Medium Calls a model: Gemini, OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fgenerate-and-deploy-landing-pages-with-openai-and-gemini)

**20 steps** Medium: a working afternoon

**0** Branches: places the flow splits

**0** Loops or waits

**1** Service it connects to

## The flow

Starts it 1 Model 4 Logic 6 Service 9

The steps in the order they run, from what starts it.

- 1 **Chat input** Chat trigger *Starts it*
- 2 **list deployments** Http Request *Service*
- 3 **Get memory for current session** Data Table *Service*
- 4 **Code in JavaScript1** Code *Logic*
- 5 **Prepare Chat Prompt with Memory** Code *Logic*
- 6 **HTTP Request** Http Request *Service*
- 7 **Generate Image Prompt** Open Ai *Model*
- 8 **Generate an image1** Google Gemini *Model*
- 9 **Convert Image to Base64** Extract From File *Service*
- 10 **Format Image as Data URI** Set *Logic*
- 11 **Upload Image to Cloudinary** Http Request *Service*
- 12 **Return Hero Image URL** Code *Logic*
- 13 **Generate HTML (OpenAI)** Open Ai *Model*
- 14 **Save HTML to Memory Table** Data Table *Service*
- 15 **Prepare Vercel Deployment Payload** Function *Logic*
- 16 **Deploy to Vercel** Http Request *Service*
- 17 **Fetch Latest Deployment URL1** Http Request *Service*
- 18 **Make Deployment URL Public** Http Request *Service*
- 19 **Format Deployment URL** Set *Logic*
- 20 **Respond to Chat** Chat *Model*

## How it's built

- **Starts on:** Someone opening a chat with it
- **Steps:** 20
- **Size:** Medium: a working afternoon
- **Connects to:** n8n data table
- **Model:** Gemini, OpenAI

## Questions

What does it need to run?

An n8n account, and a key for Gemini and OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on someone opening a chat with it.

Does it use AI?

Yes. It calls Gemini and OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Plan an afternoon. 20 steps is enough that you should read each one before running it.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 20 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fgenerate-and-deploy-landing-pages-with-openai-and-gemini)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[n8n data table](https://millionrounds.com/workflows?service=n8n+data+table#library)

## Workflows like it

Also ai assistants, with the same services where possible, closest in size first.

- [**Draft customer-facing changelogs from merged GitHub PRs** 20 steps · calls a model · GitHub, Gmail](https://millionrounds.com/workflow/draft-customer-facing-changelogs-from-merged-github-prs)
- [**Index and update web knowledge base with Jina and Gemini** 20 steps · calls a model · Supabase vectors, n8n data table](https://millionrounds.com/workflow/index-and-update-web-knowledge-base-with-jina-and-gemini)
- [**Find and log GDPR request evidence with Groq and Data Tables** 19 steps · calls a model · n8n data table](https://millionrounds.com/workflow/find-and-log-gdpr-request-evidence-with-groq-and-data-tables)
- [**Route IAM events with OpenAI and Slack** 21 steps · calls a model · Gmail, n8n data table](https://millionrounds.com/workflow/route-iam-events-with-openai-and-slack)
- [**Score inspection defects and draft repair packets with OpenAI** 19 steps · calls a model · Gmail, Google Drive](https://millionrounds.com/workflow/score-inspection-defects-and-draft-repair-packets-with-opena)
- [**Triage and reply to email threads with OpenAI and IMAP** 19 steps · calls a model · Email, Gmail](https://millionrounds.com/workflow/triage-and-reply-to-email-threads-with-openai-and-imap)
