Templates / Dynamically generate a webpage from user request using OpenAI structured output

Dynamically generate a webpage from user request using OpenAI structured output

Ready for 3.0

by Agent Studio ✓ · 59,119 views · created 2024-08-23 · Content Creation, Multimodal AI

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

Nodes used (5)

OpenAI

What it does

This workflow is a experiment to build HTML pages from a user input using the new Structured Output from OpenAI. How it works: - Users add what they want to build as a query parameter - The OpenAI node generate an interface following a structured output defined in the body - The JSON output is then converted to HTML along with a title - The HTML is encapsulated in an HTML node (where the Tailwind css script is added) - The HTML is rendered to the user via the Webhook response. Set up steps - Create an OpenAI API Key - Create the OpenAI credentials - Use the credentials for both nodes HTTP Request (as Predefined Credential type) and OpenAI - Activate your workflow - Once active, go to the production URL and add what you'd like to build as the parameter "query" - Example: https://productionurl.com?query=a%20signup%20form Example of generated page!Screenshot 20240823 at 13.01.56.png(fileId:831)

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.