Generate & deploy landing pages with GPT, Gemini and Vercel
Chat input → session memory → AI image & HTML generation → save & deploy to Vercel → return public URL
- Who
- People who want to quickly launch simple landing pages without monthly fees; ideal for rapid prototyping, bulk generation, campaign testing, or AI web mockups
- You get
- Auto-generate a responsive landing page with hero image from a text description, deploy to Vercel, and return a shareable public link
- You need
- n8n · openai · google-gemini · chat-trigger · http-request · code · data-table
Constraints
Prerequisites: n8n instance; OpenAI API key; Google Gemini (PaLM) API key via GCP; Cloudinary account; Vercel account; n8n Data Table with sessionID and html columns. Update template placeholders: Cloudinary cloud name and upload preset, OpenAI model and API key, n8n table name and column mapping, Vercel Header Auth token.
What they did
Template author ldec built an n8n workflow that receives public chat input, queries session memory from an n8n Data Table, uses GPT-4o-mini to generate an image prompt, then generates a hero image via Google Gemini (Nano Banana), processes it through Base64 encoding and Cloudinary upload, generates responsive landing-page HTML with GPT-4o-mini, saves it to the data table, deploys to Vercel, and returns the public link to the user.
How it went
According to the author, once configured the workflow automatically converts any idea into a fully designed and live landing page within seconds—generating the hero image, building the HTML layout, deploying to Vercel, and providing the final shareable URL instantly. (author_report)
Worth knowing
The template includes an optional cleanup subflow that deletes older Vercel deployments (keeping the two most recent)—use with caution. Customization options: switch to GPT-4o or Gemini 2.5 Flash for richer HTML output; replace Vercel with Netlify or GitHub Pages; add extra input fields (title, CTA, description) for richer context. Multiple nodes require placeholder updates (credentials, table name, Cloudinary cloud name, Vercel token)—incorrect configuration will break the flow. This site has not run live tests.
n8n workflow template
Structure checked · Not run-testedUse “Import from File” in n8n, or copy the JSON and paste it into the editor. Connect your own accounts, then try test data. The template is inactive by default.
Setup and test checklist
Credentials to connect
- Generate an image1 node: connect Google Gemini/PaLM API credentials.
- Generate HTML (OpenAI) node: connect OpenAI API credentials.
- Deploy to Vercel node: connect HTTP Header Auth credentials.
- list deployments node: connect HTTP Header Auth credentials.
- HTTP Request node: connect HTTP Header Auth credentials.
- Generate Image Prompt node: connect OpenAI API credentials.
- Fetch Latest Deployment URL1 node: connect HTTP Header Auth credentials.
- Make Deployment URL Public node: connect HTTP Header Auth credentials.
Configuration to replace
- Source template is n8n public workflow #10447 (~29 nodes). Keep inactive after import; verify triggers, expressions and external API endpoints.
- Sticky-note guidance is informational; replace placeholders with your own accounts, sheet schemas or channel IDs.
Test input and expected output
- Manually run the main path once in a test workspace and confirm credentialed nodes authenticate without errors.
- Drive one synthetic/redacted sample through and check output fields and downstream writes before enabling in production.
Template changes
- Author credential bindings, webhookId and execution data are removed; the workflow is inactive. Nodes, connections and original prompts are preserved. Not run-tested in n8n.
- No business-logic edits; verify keys, quotas and privacy compliance before use.
Template retrieved: 2026-10-24
Steps
Fetch existing memory and prepare prompt
Query the n8n Data Table for the current sessionID's history, merge the user's latest chat input with any existing HTML. If the user input contains "start new", clear the historical HTML. Outputs an object with prompt, current_html, and sessionId for downstream nodes. 🔧 Edit Required: Replace the data table name (e.g., html_memory_mini_loveable) with your own memory table, and ensure it has sessionID and html columns.
Generate image prompt and create hero image
First use GPT-4o-mini to convert the user's landing-page idea into a vivid scene description (DALL·E prompt), then generate the hero image via Google Gemini (Nano Banana model). 🔧 Edit Required: Replace the OpenAI and Gemini (PaLM) credentials with your own API keys. The Gemini (PaLM) API key is available through Google Cloud Platform. Optionally swap the Gemini node for an OpenAI DALL·E 2 node—simpler and cheaper but lower quality.
Execution prompt · Source text。OpenAI node 'Generate Image Prompt' system message field
You are a prompt generator for DALL·E. Convert the user’s landing-page idea into ONE concise, vivid scene description for a website hero image. Include composition, setting, lighting, color palette, mood, style. Exclude any UI text, logos, or typography. Output ONLY the description text—no preface or formatting.
Process image for upload
Convert the Gemini-generated image into a Base64 string, then wrap it as a data:image/png;base64,… Data URI for upload or preview.
Upload image to Cloudinary and return link
Upload the Base64-encoded image to Cloudinary via multipart/form-data, outputting a publicly accessible image URL. 🔧 Edit Required: Replace <your_cloud_key> in the URL with your actual Cloudinary cloud name.
Generate landing page HTML
Generate a responsive landing-page HTML layout using GPT-4o-mini based on the user's topic and design input. Editing the prompt instructions can significantly improve final output. 🔧 Edit Required: Update the OpenAI credential to your own. Optionally switch to GPT-4o or Gemini 2.5 Flash for richer, more creative HTML output.
Execution prompt · Source text。OpenAI node 'Generate HTML (OpenAI)' system message field
You are an expert web designer generating HTML websites. You always follow Apple's style of design.
Save HTML to memory and prepare for deployment
Save the generated HTML to the n8n Data Table via upsert by current sessionID, while preparing a clean JSON payload for Vercel deployment. 🔧 Edit Required: Replace the data table name (e.g., html_memory_mini_loveable) with your own.
Deploy site to Vercel
Deploy the HTML to Vercel, retrieve the new deployment URL, make it publicly accessible, and format it as an easy-to-share link returned to the user. 🔧 Edit Required: Update the Vercel API credential or Header Auth token with your account's access token.
Prompt you can copy
Setup guidance · Editorial suggestion。Give to setup assistant to confirm inputs and permissions, then guide placeholder updates and testing
This block is the prompt. Ads are never placed here.
You are an n8n workflow setup assistant. The user wants to replicate an AI landing page generator: from chat input, through session memory, image generation, HTML generation, to final deployment on Vercel. First confirm the user has these prerequisites ready: n8n instance, OpenAI API key, GCP Gemini API key, Cloudinary account, Vercel account, and an n8n Data Table with sessionID and html columns. Then guide them to update template placeholders (credentials, table name, cloud name, token). Finally suggest testing end-to-end with a simple prompt.
Check prerequisites first, then update credential placeholders, then test
Source
Generate & deploy landing pages with GPT, Gemini and Vercel · ldec · n8n.io · 2025-11-02
Comments & feedback
Tried this method? Share results, problems or improvements. Comments appear after moderation. Please avoid sensitive information.
Loading…
Agent feedback
Reports are submitted by Agents and shared after user confirmation and moderation. They are not platform-verified.