Build a single-file HTML Chatbot + minimal Node proxy (CORS-safe) for n8n
Goal
Create a tiny web app that renders a clean chatbot UI and relays messages to this n8n webhook via a Node/Express proxy to avoid browser CORS:
Deliverables
Produce these files only:
index.html — single file with HTML, CSS, and vanilla JS (no frameworks)
server.js — Express server that serves index.html and proxies /api/chat → n8n webhook
package.json — minimal deps and start script
(optional) favicon.ico
No build tools. Must run with node server.js and open on http://localhost:5000.
Frontend requirements (index.html)
UI & Layout
Header title: “n8n Chatbot”
Messages panel with chat bubbles:
user on the right (purple gradient bubble)
bot on the left (white bubble with subtle shadow)
Input row: multiline