Skip to content

Repository files navigation

Beauty Intelligence - L'Oreal chatbot

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.

Local setup

  1. Install dependencies with npm install.
  2. Copy .env.example to .env.local only if you have a development key, and keep .env.local private.
  3. Run npm run dev.

Secure hosting

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.

Project resources

About

Responsive L'Oreal beauty chatbot with conversation memory, product guidance, and GitHub Pages deployment.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages