Experience lightning-fast AI responses with Groq's cutting-edge inference technology!
| Feature | Description |
|---|---|
| β‘ Ultra-Fast AI | Powered by Groq's high-performance inference API for instant responses |
| π¨ Modern UI Design | Beautiful gradient backgrounds with smooth, eye-catching animations |
| π¬ Real-time Chat | Interactive chat interface with live typing indicators |
| π± Fully Responsive | Seamlessly works on desktop, tablet, and mobile devices |
| β¨ Cool Animations | Smooth transitions, typewriter effects, and animated backgrounds |
| π― User-Friendly | Character counter, auto-resize input, and intuitive keyboard shortcuts |
| π Secure | Environment-based API key management for maximum security |
| π Beautiful Design | Modern dark theme with gradient accents and glassmorphism effects |
- β‘ Lightning Fast: Get responses in milliseconds, not seconds
- π° Cost-Effective: More affordable than traditional APIs
- π₯ High Performance: Optimized for speed and efficiency
- π Easy Integration: Simple API with excellent documentation
- π Scalable: Handles high traffic with ease
Before you begin, ensure you have:
- β Python 3.8+ installed on your system
- β Groq API Key (Get one here)
- β pip package manager
- β A modern web browser
git clone https://github.com/yourusername/ai-chatbot.git
cd ai-chatbotpip install -r requirements.txtCreate a .env file in the root directory:
# Create .env file
touch .env # On Windows: create .env file manuallyAdd your Groq API key to .env:
GROQ_API_KEY=your_groq_api_key_hereπ‘ Get your API key: Visit Groq Console to generate your API key
python app.pyNavigate to: Orion AI chatbot
π You're all set! Start chatting with your AI assistant!
ai-chatbot/
β
βββ π app.py # Flask backend server with Groq API integration
βββ π templates/
β βββ π index.html # Main HTML interface
βββ π static/
β βββ π¨ styles.css # Beautiful CSS with animations
β βββ β‘ script.js # Interactive JavaScript functionality
βββ π¦ requirements.txt # Python dependencies
βββ π§ Procfile # Deployment configuration
βββ π README.md # This file
βββ π DEPLOYMENT.md # Deployment guide
βββ π .env # Environment variables (create this)
- β‘ Groq API Integration - Ultra-fast AI inference
- π RESTful API - Clean endpoint for chat interactions
- π‘οΈ Error Handling - Comprehensive error management
- π CORS Enabled - Cross-origin request support
- π Secure Configuration - Environment variable management
- π Animated Background - Floating gradient circles with smooth motion
- π¬ Message Bubbles - Distinct styles for user and AI messages
- β¨οΈ Typing Indicator - Visual feedback when AI is processing
- βοΈ Typewriter Effect - AI responses appear with realistic typing animation
- π Smooth Scrolling - Auto-scrolls to latest messages
- π’ Character Counter - Real-time count with color-coded warnings
- π Auto-resize Input - Textarea expands dynamically as you type
- β¨οΈ Keyboard Shortcuts - Enter to send, Shift+Enter for new line
In app.py, you can switch between different Groq models:
model="llama-3.1-70b-versatile" # Default - fast and versatile
# Other options:
# model="mixtral-8x7b-32768" # For longer context
# model="gemma-7b-it" # Google's Gemma modelEdit CSS variables in static/styles.css:
:root {
--primary-color: #6366f1; /* Change primary color */
--secondary-color: #8b5cf6; /* Change secondary color */
--bg-dark: #0f172a; /* Change background */
/* ... customize more colors ... */
}Customize the AI's personality in app.py:
{"role": "system", "content": "You are a helpful, friendly, and conversational AI assistant. Provide clear and concise responses."}| Problem | Solution |
|---|---|
| "API key not configured" | Ensure .env file exists with GROQ_API_KEY=your-key |
| "Invalid API key" | Verify your key at Groq Console |
| Key not working | Check for extra spaces or quotes in .env file |
If port 5000 is busy, change it in app.py:
port = int(os.environ.get('PORT', 5001)) # Use port 5001 insteadReinstall dependencies:
pip install --upgrade -r requirements.txtEnsure flask-cors is installed:
pip install flask-corsDeploy your chatbot to the cloud and share it with the world!
| Platform | Free Tier | Difficulty | Best For |
|---|---|---|---|
| Render | β Yes | β Easy | Beginners |
| Railway | β Yes | β Easy | Quick deployment |
| PythonAnywhere | β Yes | ββ Medium | Python-focused |
| Fly.io | β Yes | ββ Medium | Global deployment |
π Detailed deployment guide: See DEPLOYMENT.md
- β Deploy to Render or Railway (free tiers available)
- β Add the live URL to your portfolio
- β Include screenshots and project description
- β Link to GitHub repository
π‘ Add your own screenshots to showcase the beautiful UI!
| Category | Technology |
|---|---|
| Backend | Python 3.8+, Flask 3.0 |
| AI Engine | Groq API (Ultra-fast inference) |
| Frontend | HTML5, CSS3, Vanilla JavaScript |
| Styling | Custom CSS with animations |
| Deployment | Render, Railway, or any Python host |
- π Setup Guide - Detailed setup instructions
- π API Key Setup - How to configure your Groq API key
- π Deployment Guide - Deploy to various platforms
- β‘ Quick Deploy - 5-minute deployment guide
- πΌ Portfolio Tips - Showcase your project
Contributions are welcome! Feel free to:
- π Report bugs
- π‘ Suggest new features
- π§ Submit pull requests
- π Improve documentation
- πΎ Conversation history persistence
- π User authentication
- π¨ Multiple chat themes
- π File upload capabilities
- π Multi-language support
- π Usage analytics
This project is open source and available under the MIT License.
- Groq - For the amazing ultra-fast inference API
- Flask - For the lightweight web framework
- Poppins Font - For the beautiful typography
- π Groq Documentation
- π Flask Documentation
- π¬ Open an Issue

