A simple rule-based chatbot built using Python and if-else conditions.
This project demonstrates the basics of Natural Language Processing (NLP) concepts without using advanced libraries β perfect for beginners.
- Greets the user and responds to common phrases.
- Tells the current date and time.
- Uses if-elif-else for rule-based decision making.
- Runs continuously until the user types bye.
- Beginner-friendly and easy to customize.
- Python 3.x
- VS Code (for writing & running the script)
- Install Python β Download Here
- Install VS Code β Download Here
- Clone or download this repository.
- Open the folder in VS Code.
- Create a file named
chatbot.py
and paste the code. - Open the terminal in VS Code and run:
python chatbot.py
π€ ChatBot: Hi! I'm your friendly chatbot. Type 'bye' anytime to end the chat.
You: hello π€ ChatBot: Hello there! How are you today?
You: time π€ ChatBot: The current time is 14:25:01
You: date π€ ChatBot: Today's date is 2025-08-15
You: bye π€ ChatBot: Goodbye! Have a nice day! π