A beautiful, interactive AI chatbot with floating background animations powered by Google's Gemini AI.
- AI-Powered Conversations: Uses Google's Gemini AI for intelligent responses
- Image Support: Upload and analyze images
- Floating Animations: Beautiful GSAP-powered background animations
- Modern UI: Glass morphism design with smooth interactions
- Responsive: Works on all devices
- Clone the repository:
git clone <your-repo-url>
cd chatbot- Create a
config.jsfile in the root directory:
window.CONFIG = {
API_KEY: "your-gemini-api-key-here"
};- Open
index.htmlin your browser or use a local server.
In your Vercel dashboard, add the following environment variable:
- Name:
GEMINI_API_KEY - Value: Your Google Gemini API key
- Connect your GitHub repository to Vercel
- Deploy automatically or manually trigger deployment
Your chatbot will be live at your Vercel URL with the API key securely stored in environment variables.
- ✅ API keys are stored in environment variables
- ✅ Local config file is ignored by Git
- ✅ Production uses Vercel's secure environment variables
- ✅ No sensitive data exposed in client-side code
chatbot/
├── index.html # Main HTML file
├── style.css # Styles and animations
├── script.js # Main JavaScript logic
├── config.js # Local config (git-ignored)
├── api/
│ └── config.js # Vercel API endpoint for config
├── vercel.json # Vercel configuration
├── .env # Environment variables (git-ignored)
├── .gitignore # Git ignore rules
└── README.md # This file
- Icons: Modify floating icons in
index.html - Colors: Update gradient and theme in
style.css - Animations: Adjust GSAP animations in
script.js - AI Model: Change Gemini model in the API URL
- Chrome/Edge 90+
- Firefox 88+
- Safari 14+
- Mobile browsers
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
This project is open source and available under the MIT License.