🗲 Serve custom websites (HTML webpages) with webhooks
$20/month : Unlimited workflows
2500 executions/month
THE #1 IN WEB SCRAPING
Scrape any website without limits
HOSTINGER 🎉 Early Black Friday Deal
DISCOUNT 20% Try free
DISCOUNT 20%
Self-hosted n8n
Unlimited workflows - from $4.99/mo
#1 hub for scraping, AI & automation
6000+ actors - $5 credits/mo
How it works
This workflow demonstrates how to use n8n to serve a complete, styled HTML webpage. It acts as a mini web server, responding to browser requests with your custom HTML content.
- Webhook Trigger: The workflow starts with a
Webhooknode configured to listen forGETrequests on a specific path. When you visit this node's Production URL in a browser, it triggers the workflow. - Respond with HTML: The
Respond to Webhooknode is configured to send a response back to the browser.- Content-Type Header: It sets a crucial response header,
Content-Type: text/html, which tells the browser to render the response as a webpage, not just plain text. - HTML Body: The entire HTML, CSS, and JavaScript for the webpage is pasted directly into the
Bodyfield of this node.
- Content-Type Header: It sets a crucial response header,
When activated, visiting the webhook URL will instantly display the custom webpage.
Set up steps
Setup time: < 1 minute
This workflow is ready to use out-of-the-box.
- Activate the workflow.
- Open the
Your WebPage(Webhook) node and copy its Production URL. - Paste the URL into your browser to see the live tutorial page.
- To use your own HTML, simply open the
Site(Respond to Webhook) node and replace the content in theBodyfield with your own code.