Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🤖 Gemini ChatBot - Basic Prototype Build

A modern, responsive, multi-turn AI chatbot application powered by Google Gemini AI and Python Flask. Built with a clean aesthetic featuring Warm Beige, Soft Light Pink, and Rich Black Typography.


🌐 Live Demonstration

Experience the live web application here:
👉 https://chat-bot-prototype-alpha.vercel.app/


🛠️ Tech Stack & Required Technologies

🎨 Frontend Architecture

Symbol Technology Description
🌐 HTML5 Semantic layout & single-page application structure.
🎨 CSS3 (Vanilla) Custom responsive design system featuring Warm Beige (#FAF6F0), Soft Light Pink (#F8D7DA), & Rich Black (#111111) typography.
JavaScript (ES6+) Dynamic UI engine handling async API requests, model popovers, & copy-to-clipboard code blocks.
📝 Marked.js Markdown parsing library rendering rich text, lists, and formatted code blocks in AI responses.
🖍️ Highlight.js Multi-language syntax highlighting for code snippets inside assistant response blocks.
🔤 Google Fonts Typography styled with modern Outfit and Plus Jakarta Sans font families.
💎 FontAwesome 6 Clean vector icons for UI navigation and floating action menus.

⚙️ Backend Architecture

Symbol Technology Description
🐍 Python 3 Core application logic, routing, and environment management.
🌶️ Flask Lightweight WSGI web framework (Flask>=3.0.0) handling REST API routes and template serving.
🤖 Google Generative AI SDK Multi-turn AI integration via google-generativeai supporting Gemini 3.6 Flash & 3.5 Flash models.
🔐 Python Dotenv Security library (python-dotenv) isolating environment variables in local .env files.
📐 Vercel Serverless Serverless function deployment using @vercel/python builder (vercel.json).

✨ Features

  • Google Gemini Integration: Supports Gemini 3.6 Flash, Gemini 3.5 Flash, Gemini 3.1 Flash Lite, Gemini Flash Latest, and Gemini 3 Flash Preview.
  • Collapsible Sidebar (): Clean drawer with quick model selection dropdown and capability cards.
  • Top Center Branding: Logo emblem & Basic Prototype Build badge.
  • 5 Pre-built Capability Presets:
    • 📚 Learning: Conceptual breakdowns & study guides.
    • 💻 Coding: Code generation, debugging & refactoring.
    • 📝 Assessment: Practice quizzes & flashcards.
    • 🎨 Creating: Draft content, stories, Images, PPT & PDF documents.
    • 🛠️ Tech & Dev: Architecture blueprints & API specs.
  • Floating Input Capsule: Responsive bottom chat bar with + action menu for document/code snippet attachment.

🚀 Quick Setup & Installation

1. Clone the Repository

git clone https://github.com/PavanReddy666/ChatBot-Prototype.git
cd ChatBot-Prototype

2. Set Up Environment Variables

Create a .env file in the root directory (copied from .env.example):

# In .env:
GEMINI_API_KEY=your_actual_gemini_api_key_here

(Get your free API key at Google AI Studio)

3. Install Dependencies

pip install -r requirements.txt

4. Launch Application

python app.py

Open your browser and navigate to http://127.0.0.1:5000.


📁 Repository Structure

├── app.py              # Flask server & Gemini API integration
├── .env.example        # Environment variable template
├── .gitignore          # Excludes secret files (.env)
├── vercel.json         # Vercel deployment configuration
├── requirements.txt    # Python dependencies
├── static/
│   ├── favicon.svg     # Dark black & warm beige SVG logo
│   ├── css/style.css   # Custom Beige & Pink design system
│   └── js/main.js      # Chat engine & UI handlers
└── templates/
    └── index.html      # Single Page Application template

👤 Author & Developer

Built by Pavan Reddy

About

AI Chatbot Prototype is a feature-rich, full-stack conversational web application powered by the Google Gemini API. Built with a lightweight Flask backend and a sleek, custom-designed HTML5/CSS3/JavaScript frontend, it supports multi-turn chats, Markdown rendering via Marked.js, code syntax highlighting, and dynamic model switching.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages