Skip to content

ftryyln/cafe-chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🤖 Gemini Cafe Chatbot: AI-Powered Concierge

An elite, full-stack bilingual AI concierge for premium hospitality
Engineered with Gemini 2.5 Flash, React, Node.js, and Modern Motion Design

Gemini AI React Node.js Tailwind Bilingual


📝 Project Mission

Gemini Cafe Chatbot is a state-of-the-art hospitality assistant designed to transform customer interactions. This project serves as a showcase of Advanced AI Integration, demonstrating:

  • 🧠 Intelligent Context Awareness: Powered by Gemini 2.5 Flash, the bot maintains a deep understanding of conversation history to provide relevant, context-rich assistance.
  • 🌐 Seamless Bilingualism: Engineered for global accessibility, supporting fluent English and Vietnamese interactions out of the box.
  • ☕ Professional Persona: Custom-tuned "System Instructions" that hardcode cafe-specific knowledge, pricing, and a warm barista personality.
  • ⚡ Fluid UX/UI: A premium cafe-themed interface built with React and Tailwind CSS, featuring smooth micro-animations powered by Framer Motion.

🏗️ System Architecture: The AI Conversation Flow

The application orchestrates a high-speed data flow between the user's interface and Google's generative intelligence.

graph TD
    subgraph "Frontend Interface (React)"
        UI[Cafe-Themed UI]
        FM[Framer Motion Animations]
        State[Conversation State]
    end

    subgraph "Backend Engine (Node.js)"
        API[Express REST API]
        SEC[Environment Security]
    end

    subgraph "AI Core (Google)"
        GEM[Gemini 2.5 Flash]
        SYS[System Persona Logic]
    end

    %% Flow
    UI --> State
    State <-->|JSON Payload| API
    API <-->|LLM Request| GEM
    GEM --> SYS
    API --> SEC
Loading

✨ Key Features & Technical Highlights

  • 🎙️ Natural Conversations: Real-time response generation that feels human and helpful.
  • 📜 Smart Menu Knowledge: Integrated product list (Espresso, Latte, Basque Cheesecake) with precise pricing.
  • 📍 Information Hub: Instant access to opening hours, location details, and facility info (WiFi, seating).
  • 🎨 Premium Aesthetics: A "Luxury-Zen" inspired design with a dark-theme option, optimized for mobile and desktop.
  • 🔐 Enterprise Security: Robust handling of Google AI API keys using server-side environment architecture.
  • 📈 Motion Orchestration: Seamless message transitions and loading states that improve perceived performance.

🛠️ Technology Stack

  • AI Engine: Google Generative AI (Gemini 2.5 Flash)
  • Frontend: React 18, Vite, Tailwind CSS
  • Backend: Node.js, Express.js
  • Animations: Framer Motion
  • Icons: Lucide React
  • Security: Dotenv + CORS Middleware

🚀 Getting Started

📦 Prerequisites

  • Node.js (v20+)
  • Google Gemini API Key

🛠️ Installation & Setup

  1. Clone & Install Backend:

    cd backend
    npm install
  2. Clone & Install Frontend:

    cd ../frontend
    npm install
  3. Configure API: Create backend/.env:

    GEMINI_API_KEY=your_key_here
    PORT=3000
  4. Launch Ecosystem: Run npm start in the backend and npm run dev in the frontend.


📂 Project Structure

├── backend/            # Express API & Gemini Orchestration
│   └── src/config/     # LLM Persona & System Logic
├── frontend/           # React SPA & Tailwind Design
│   └── src/components/ # Interactive Chat Components
└── README.md           # Master Documentation

👨‍💻 Author

Fitry Yuliani Engineering Intelligence. Brewing Innovation.


Transforming the Digital Cafe Experience, One Prompt at a Time. 🤖☕🚀

About

An elite, full-stack bilingual chatbot application for premium hospitality. Leveraging Google's Gemini 2.5 Flash for real-time, context-aware cafe assistance. Featuring a high-fidelity React interface with Framer Motion orchestration and a robust Node.js API.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors