Premium AI chatbot with Gemini API integration and stunning UI.
- Gemini AI Integration - Real AI responses using Google's Gemini API
- Bilingual Support - Hindi & English language detection
- Premium UI - Glassmorphism design with animations
- Particle Effects - Floating background animations
- Smart Fallback - Local responses when API unavailable
- Real-time Features - Typing indicators, timestamps, status
- Go to Google AI Studio
- Create a new API key
- Copy your API key
- Open
config.js - Replace
YOUR_GEMINI_API_KEY_HEREwith your actual API key:
API_KEY: 'your-actual-api-key-here'- Open
index.htmlin any modern browser - Start chatting!
- 🟢 Gemini AI Mode - When API key is configured
- 🟡 Local Mode - Fallback with predefined responses
📁 Ai chat bot/
├── 📄 index.html # Main HTML file
├── 🎨 style.css # Premium styling
├── ⚡ script.js # Core functionality
├── ⚙️ config.js # API configuration
└── 📖 README.md # This file
Try these commands:
- "Hello" / "नमस्ते"
- "What's the time?"
- "Tell me a joke"
- "2+2" (math calculations)
- "What's your name?"
Edit SYSTEM_PROMPT in config.js to modify AI behavior.
Update gradient colors in style.css for different themes.
Extend the responses object in script.js for local fallbacks.
- Keep your API key secure and never share it publicly
- The chatbot works offline with local responses as fallback
- Modern browser required for all features to work properly
- Glassmorphism Effects - Transparent blur backgrounds
- Gradient Animations - Color-shifting elements
- Particle System - Floating background particles
- Smooth Transitions - Cubic-bezier animations
- Responsive Design - Works on all screen sizes
Enjoy your premium AI chatbot! 🚀✨