This project is a simple chatbot application built with Python. It provides a friendly chat interface where users can ask basic questions, receive bot responses, and interact with a small rule-based and model-based conversational system.
The project includes:
- A graphical chat window built with Tkinter
- A trained chatbot model file
- Intent and response data stored in JSON
- A training script for rebuilding the model
This project is ideal for beginners who want to learn how chatbot applications work in Python.
- Interactive chatbot interface
- Basic greeting and support responses
- Question-answer support for common topics
- Project-related and developer-related responses
- Easy to run locally on Windows
- Includes training script for model retraining
The repository contains the following important files:
- chatgui.py – Main chatbot application with GUI
- train_chatbot.py – Script used to train the chatbot model
- intents.json – Contains the chatbot intents and responses
- chatbot_model.h5 – Pretrained chatbot model
- words.pkl and classes.pkl – Vocabulary and class files used by the model
- test_chatbot.py – Simple test script for basic chatbot verification
Open the project folder in your terminal or VS Code workspace.
python -m venv .venvOn Windows:
.venv\Scripts\activatepip install nltk numpy tensorflow keraspython -c "import nltk; nltk.download('punkt'); nltk.download('wordnet')"python chatgui.pyIf you want to rebuild the chatbot model:
python train_chatbot.pyOnce the application starts:
- Type a message in the chat box.
- Click the Send button.
- The bot will respond based on its built-in patterns and trained model.
Name: Tarikur Rahman
GitHub: https://github.com/tarikurrahmanbd
Portfolio: https://yourtarikur.vercel.app/
Social/Handle: tarikurrahman08
Email: tarikurrahman2008@gmail.com
This project is licensed under the MIT License.
You are free to use, modify, and share this project with proper attribution.
This project is a beginner-friendly chatbot application that demonstrates how Python can be used to build simple conversational AI systems. It is a great starting point for learning NLP, model training, and GUI-based application development.