Beauty Intelligence is a responsive product and routine guide for L'Oreal skincare, makeup, haircare, and fragrance. It includes all three project LevelUps:
- conversation history that remembers details across turns and reloads;
- a dedicated latest-question display;
- distinct user and assistant message bubbles.
The site works in curated demo mode without credentials. When OPENAI_API_KEY is available on the server, /api/chat uses the OpenAI Responses API with a beauty-only developer prompt. The key is never sent to the browser.
The docs/ directory contains a credential-free static edition for GitHub Pages. It preserves conversation history, the latest-question display, distinct message bubbles, quick prompts, and the beauty-only guardrail directly in the browser.
- Install dependencies with
npm install. - Copy
.env.exampleto.env.localonly if you have a development key, and keep.env.localprivate. - Run
npm run dev.
Add OPENAI_API_KEY as a secret environment variable in the hosting dashboard. Do not place it in client-side JavaScript or commit it to GitHub. RESOURCE_cloudflare-worker.js is included for the standalone classroom Cloudflare Worker workflow.