Dynamically generate a webpage from user request using OpenAI structured output
Ready for 3.0What this workflow does
This AI workflow has 5 nodes and runs when an HTTP GET request hits its webhook URL. Along the way it connects OpenAI. It also calls api.openai.com over HTTP.
How it runs
Trigger: When an HTTP GET request hits its webhook URL.
- Open AI - Using Structured Output (HTTP Request): calls api.openai.com (POST)
- OpenAI: uses OpenAI
- Format the HTML result (HTML): parses or builds HTML
- Respond to Webhook: sends the response back to the webhook caller
Services it uses
HTTP calls to: api.openai.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (5)
- Respond to Webhook
n8n-nodes-base.respondToWebhook - HTTP Request
n8n-nodes-base.httpRequest - OpenAI
@n8n/n8n-nodes-langchain.openAi - HTML
n8n-nodes-base.html - Webhook
n8n-nodes-base.webhook
From the author
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…