This project is an AI-powered FAQ Chatbot built for the CodeAlpha Artificial Intelligence Internship. The chatbot uses Natural Language Processing (NLP) to understand user queries and return the most relevant answers from an FAQ database.
- 🤖 AI Question Matching using TF-IDF and cosine similarity
- 📚 80+ preloaded FAQs across multiple categories
- 🎯 High accuracy through advanced text preprocessing
- 📊 Confidence scoring for responses
- ⚡ Real-time chat interface
- 🔧 FAQ management dashboard
- 📱 Responsive UI for all devices
- Backend: Django 4.2
- ML/NLP: Scikit-learn, NLTK, NumPy
- Frontend: HTML5, CSS, JavaScript, Bootstrap
- Database: SQLite (dev), PostgreSQL ready
- Text cleaning & tokenization
- Stop-word removal
- Stemming (Porter)
- TF-IDF vectorization
- Cosine similarity ranking
bash git clone https://github.com/wonderrful003/CodeAlpha_FAQ_Chatbot.git cd CodeAlpha_FAQ_Chatbot
-
Create and activate a virtual environment python -m venv chatbot_env source chatbot_env/bin/activate # Windows: chatbot_env\Scripts\activate
-
Install dependencies pip install -r requirements.txt
-
Run migrations python manage.py migrate
-
Load sample FAQs python manage.py load_comprehensive_faqs
-
Start the server python manage.py runserver
-
Access the app
Chat Interface → http://127.0.0.1:8000
FAQ Management → http://127.0.0.1:8000/faqs
Admin Panel → http://127.0.0.1:8000/admin
📁 Project Structure CodeAlpha_FAQ_Chatbot/ ├── chatbot/ ├── faq_chatbot/ └── documentation/
🔧 API Endpoints
GET / — Chat UI
POST /api/chat/ — Chatbot API
GET /faqs/ — FAQ manager
POST /faqs/ — Add FAQ
👥 Author
Wonderful Ntepa CodeAlpha AI Intern LinkedIn | GitHub
⭐ If you find this project useful, consider starring the repository!