π¨οΈ Python Chatbot A simple rule-based chatbot built in Python that greets users based on the current time and responds to basic questions. This project demonstrates how to use conditional logic, dictionaries, and loops to create an interactive console-based chatbot.
β¨ Features
- Greets the user depending on the current hour:
- Morning, Afternoon, Evening, or Night.
- Responds to basic questions like:
- hello
- how are you
- who are you
- motivate me
- happy
- Allows the user to exit by typing bye.
- Case-insensitive input handling.
π Project Structure chatbot.py # Main Python script README.md # Project documentation
π How to Run
- Clone the repository: git clone https://github.com/your-username/python-chatbot.git
- Navigate to the project folder: cd python-chatbot
- Run the chatbot: python chatbot.py
π§βπ» Example Interaction Swagat hai, Enter your name : Raunak Good evening, Raunak Namaste! Welcome to chat Bot You can ask me basic question,type 'bye' to exit
Please ask your Question: hello Bot Response : Hii, welcome. how can i help you?
Please ask your Question: motivate me Bot Response : if u r going through hell keep going
Please ask your Question: bye Bot Response : I am not able to tell right now because i'm still in learning phase
π§ Technologies Used
- Python 3
- datetime module for time-based greetings
π Future Improvements
- Add more responses and personality.
- Integrate NLP libraries like NLTK or spaCy for smarter replies.
- Build a GUI or web-based interface.