A simple yet powerful web-based chatbot application built with the Django framework and the ChatterBot library. This project provides a clean user interface for real-time conversations with a trainable AI bot.
- Interactive Chat Interface: A clean and simple UI for seamless conversation.
- Real-time Responses: Get instant replies from the chatbot powered by AJAX, so the page doesn't need to reload.
- Trainable AI: The bot uses ChatterBot's logic adapters and can be trained on custom conversation corpuses.
- Scalable Backend: Built on the robust and scalable Django web framework.
- Easy to Set Up: Get the project running locally with just a few commands.
- Backend: Django
- Chatbot Engine: ChatterBot
- Frontend: HTML, CSS, JavaScript (with AJAX for asynchronous requests)
- Database: SQLite (default, easily configurable)
Follow these instructions to get a copy of the project up and running on your local machine for development and testing purposes.
Make sure you have the following installed on your system:
- Python (3.8 or higher)
- pip (Python package installer)
- Git
-
Clone the repository:
git clone https://github.com/Praveen23-kk/ChatBot_Django_Web.git cd ChatBot_Django_Web -
Create and activate a virtual environment:
- On Windows:
python -m venv venv .\venv\Scripts\activate
- On macOS/Linux:
python3 -m venv venv source venv/bin/activate
- On Windows:
-
Install the required dependencies:
pip install -r requirements.txt
-
Train the ChatterBot corpus: This is a crucial step to make your bot knowledgeable. This command trains the bot on an English corpus.
python manage.py train
-
Apply database migrations:
python manage.py migrate
-
Run the development server:
python manage.py runserver
-
Open your browser and navigate to
http://127.0.0.1:8000/. You should now be able to chat with your bot!
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is distributed under the MIT License. See the LICENSE file for more information.
Praveen Kumar - praveennaaz23@gmail.com
Project Link: https://github.com/Praveen23-kk/ChatBot_Django_Web
