An NLP-based AI chatbot built using Python, TensorFlow/Keras, and NLTK.
The chatbot uses intent classification with a deep learning model to understand user queries and provide suitable responses. It supports both text-based interaction and a voice-enabled chatbot mode.
This project implements an AI chatbot that can handle common computer and device-related queries such as:
- Screen issues
- Battery problems
- Wi-Fi connectivity issues
- Software problems
- Printer issues
- Keyboard and mouse issues
The chatbot is trained using a custom JSON dataset containing different intents, patterns, and responses.
- 🧠 Deep Learning-based intent classification
- 💬 Text-based chatbot interaction
- 🎙️ Voice-enabled chatbot interaction
- 📄 JSON-based training data
- 🔤 Text preprocessing using NLTK
- 🗣️ Speech recognition and text-to-speech support
- 💾 Saved trained model for chatbot execution
- Python 🐍
- TensorFlow
- Keras
- NLTK
- NumPy
- SpeechRecognition
- gTTS
- Pyttsx3
NLP-AI-Chatbot
│
├── chatbot_train.py # Train the chatbot deep learning model
├── chatbot_execution.py # Text-based chatbot execution
├── voice_chatbot2.py # Voice-enabled chatbot execution
├── intents.json # Training dataset containing intents
├── chatbot_model.h5 # Trained chatbot model
├── words.pkl # Processed vocabulary data
├── classes.pkl # Intent class data
├── requirements.txt # Required Python libraries
└── README.md # Project documentation
Clone the repository:
git clone https://github.com/Sathyabyte/NLP-AI-Chatbot.gitNavigate to the project folder:
cd NLP-AI-ChatbotInstall required dependencies:
pip install -r requirements.txtpython chatbot_train.pyThis creates the trained chatbot model and required files.
python chatbot_execution.pyThe chatbot will accept user input through the terminal and generate responses.
python voice_chatbot2.pyThe chatbot can take voice input and respond using text-to-speech.
You: My Wi-Fi is not working
Chatbot:
Restart your router and device, and try connecting again.
You: My battery is draining quickly
Chatbot:
Check if any apps are consuming too much power.
- Add more intents and responses
- Improve conversation memory
- Add a graphical user interface (GUI)
- Deploy as a web application
Sathyabyte
BCA (Hons) Student | Data Science + AI/ML