A Flask-based AI chatbot that provides interactive learning support using OpenAI's GPT models.
The chatbot runs entirely in a web browser and can be easily deployed.
👉 Interactive AI Chatbot – Powered by OpenAI's API
👉 Fully Web-Based – No need for a terminal interface
👉 Uses LangChain for Enhanced AI Responses
👉 Bootstrap & jQuery UI – Responsive and mobile-friendly
👉 Flask Backend – Handles AI requests efficiently
👉 Easy Deployment – Run locally or deploy to the cloud
📂 **YourRepoName/**
├── 📁 **templates/** # HTML templates for the chatbot UI
│ ├── 📄 **index.html** # Main chat interface
├── 📁 **static/** # Static files (CSS, JS)
│ ├── 🎨 **style.css** # Custom chatbot styles
├── 📝 **chatbot.py** # AI processing logic
├── 🖥 **app.py** # Flask web server
├── 📄 **requirements.txt** # List of dependencies
├── 🔑 **.env** # OpenAI API key (not shared in GitHub)
└── 📖 **README.md** # Project documentation
To isolate dependencies, create a virtual environment:
python -m venv .venvActivate it:
- Windows:
.venv\Scripts\activate
- macOS/Linux:
source .venv/bin/activate
Install all required dependencies using:
pip install -r requirements.txttouch .envOPENAI_API_KEY=your-openai-api-key-herepython app.pyhttp://127.0.0.1:5000/auth
Simply enter your message and get real-time responses.