A modern, responsive AI chatbot interface with beautiful animations and glassmorphism design. Built with vanilla HTML, CSS, and JavaScript, featuring smooth animations and a premium user experience.
- Modern Design: Glassmorphism UI with gradient backgrounds and smooth animations
- Responsive Layout: Works perfectly on desktop and mobile devices
- Smooth Animations:
- Slide-in container animation
- Message appearance effects
- Typing indicator with bouncing dots
- Button hover effects with shimmer
- Input focus animations
- Interactive Elements:
- Real-time chat interface
- Enter key support for sending messages
- Typing indicators while processing
- Error handling with user-friendly messages
- Professional Styling:
- Chat bubble design with speech tails
- Custom scrollbar styling
- Gradient color schemes
- Glow effects and micro-animations
- HTML5: Semantic markup structure
- CSS3: Advanced styling with animations, gradients, and glassmorphism
- JavaScript (ES6+): Async/await, DOM manipulation, event handling
- OpenRouter API: AI model integration (DeepSeek R1)
- Clone the repository:
https://github.com/sudamsiths/AI-ChatBot-Assistant.git- Navigate to the project directory:
cd ai-chatbot-ui- Open
index.htmlin your web browser or serve it using a local server.
- API Key Setup: Replace
YOUR_API_KEY_HEREin the JavaScript code with your OpenRouter API key:
Authorization: 'Bearer YOUR_ACTUAL_API_KEY_HERE'- API Endpoint: The chatbot uses OpenRouter's API with the DeepSeek R1 model. You can modify the model in the fetch request:
model: 'deepseek/deepseek-r1:free'- Enter your message in the input field
- Click "Send" or press Enter
- Watch the typing indicator while the AI processes your request
- View the AI's response in the chat interface
- Continue the conversation naturally
Modify the CSS variables to change the color scheme:
:root {
--primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
--secondary-gradient: linear-gradient(135deg, #f8f9ff, #ffffff);
}Adjust animation durations in the CSS:
animation: messageSlide 0.4s ease-out; /* Change 0.4s to your preference */The chatbot is fully responsive and includes:
- Mobile-optimized message bubbles
- Touch-friendly input controls
- Adaptive container sizing
- Optimized animations for mobile devices
- Chrome (recommended)
- Firefox
- Safari
- Edge
- Mobile browsers (iOS Safari, Chrome Mobile)
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- OpenRouter API for AI model access
- DeepSeek for the R1 model
- CSS animations inspired by modern web design trends
- Glassmorphism design pattern
- Never commit your API keys to version control
- Use environment variables for sensitive data in production
- Consider implementing rate limiting for production use
- Add input validation and sanitization as needed
If you encounter any issues or have questions:
- Open an issue on GitHub
- Check the existing issues for solutions
- Review the configuration section
Made with ❤️ by Sandira Sudamsith