https://github.com/Tony-Stone-Code/simple_AI_chatbot
This is a simple chatbot, built with python.
https://github.com/Tony-Stone-Code/simple_AI_chatbot
ai bot-development chatbot css flask flask-application flask-web htlm5 javascript python python3 spacy spacy-nlp web-development
Last synced: 12 days ago
JSON representation
This is a simple chatbot, built with python.
- Host: GitHub
- URL: https://github.com/Tony-Stone-Code/simple_AI_chatbot
- Owner: Tony-Stone-Code
- License: mit
- Created: 2024-11-23T03:18:13.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-23T04:06:37.000Z (about 1 year ago)
- Last Synced: 2025-03-17T11:21:45.666Z (10 months ago)
- Topics: ai, bot-development, chatbot, css, flask, flask-application, flask-web, htlm5, javascript, python, python3, spacy, spacy-nlp, web-development
- Language: CSS
- Homepage:
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AI Chatbot with Flask
A modern, responsive chatbot application built with Flask, featuring an iOS-style UI design and dynamic theme switching.
## Features
- 🤖 Intelligent conversation handling powered by Groq API inference
- 🧠Advanced natural language processing with large language models
- 🎨 Modern iOS-style user interface
- 🌓 Dynamic dark/light theme switching
- 🌈 Animated gradient backgrounds
- 📱 Fully responsive design
- ✨ Smooth animations and transitions
- 💬 Real-time chat interactions
- 🔄 Automatic fallback to rule-based responses when API is unavailable
## Technical Stack
- **Backend**: Python Flask
- **AI Engine**: Groq API (Lightning-fast inference)
- **Frontend**: HTML5, CSS3, JavaScript
- **Styling**: Custom CSS with iOS-inspired design
- **Animations**: CSS animations and transitions
- **Theme Management**: JavaScript-based theme switching
## Areas of Expertise
The chatbot is knowledgeable in various technical domains:
- Data Science & Analytics
- Machine Learning
- Artificial Intelligence
- Full Stack Development
- Cybersecurity
## Installation
1. Clone the repository:
```bash
git clone https://github.com/Tony-Stone-Code/CodeAlpha_simple_chatbot.git
cd CodeAlpha_simple_chatbot/Basic\ Chatbot
```
2. Install the required dependencies:
```bash
pip install -r requirements.txt
```
3. Set up your Groq API key:
```bash
# Copy the .env.example file to .env
cp .env.example .env
# Edit the .env file and add your Groq API key
# Get your API key from: https://console.groq.com/keys
```
4. Run the application:
```bash
python3 app.py
```
5. Open your browser and navigate to:
```
http://localhost:5001
```
**Note:** The chatbot will use Groq API for intelligent responses. If no API key is provided, it will fall back to rule-based responses.
```
http://localhost:5001
```
## Features in Detail
### Intelligent Conversation
- Natural language processing for understanding user queries
- Context-aware responses
- Expertise in multiple technical domains
- Friendly and engaging conversation style
### Modern UI/UX
- iOS-inspired design elements
- Smooth message animations
- Interactive button effects
- Dynamic message bubbles
- Responsive layout for all devices
### Theme System
- Automatic system theme detection
- Manual theme toggle
- Smooth theme transitions
- Animated gradient backgrounds
- Backdrop blur effects
### Responsive Design
- Mobile-first approach
- Adapts to all screen sizes
- Touch-friendly interface
- Optimized for both desktop and mobile
## Project Structure
```
Basic chatbot/
├── app.py # Flask application and routing
├── static/
│ ├── style.css # CSS styles and animations
│ └── script.js # Frontend JavaScript
├── templates/
│ └── index.html # Main HTML template
└── README.md # Project documentation
```
## Contributing
Contributions are welcome! Feel free to submit pull requests or open issues for any improvements or bug fixes.
## License
This project is licensed under the MIT License - see the LICENSE file for details.
## Author
Anthony Opoku-Achempong (Tony-Stone-Code) - Data Scientist & Full Stack Developer
- Expertise in Data Science, ML, AI
- Full Stack Development
- Cybersecurity Focus
## Acknowledgments
- Inspired by modern iOS design principles
- Built with best practices in web development
- Focused on user experience and accessibility