All projects

AI & LLM · 2025

Embeddable Gemini Chatbot

Gemini-powered customer assistant and management API that can be embedded into websites via iframe and runs with audience-specific system prompts.

Highlights

  • Gemini 2.5 Flash integration through the Google.GenAI SDK with system instructions; model and keys are configured via environment.
  • Prompt management API for audience-specific system prompts (e.g. student / visitor) that can be updated without code changes.
  • Per-session sliding-window conversation memory that preserves context while capping token cost.
  • Retry mechanism for transient model failures and controlled error responses.
  • Iframe security middleware that validates allowed origins, plus a React/Vite chat UI.