A simple rule-based chatbot built using Python's if-elif-else logic and keyword matching.
The bot responds to greetings, questions about its name, well-being, and can exit gracefully when prompted.
- Keyword detection: Understands variations of user input without exact matching.
- Randomized responses: Chooses different replies for a more natural conversation.
- Graceful exit: Detects "bye", "quit", "exit", etc., and ends the chat politely.
- Easy to customize: Add new keywords and responses in the
responsesdictionary.
- Python 3.x
(No external libraries required — works out of the box)
- Clone or download this repository.
- Save the chatbot script as
chatbot.py.
- Open a terminal or VS Code.
- Navigate to the script’s folder:
cd path/to/your/folder