The Simple Rule-Based Chatbot is a Python-based conversational application that uses pattern matching and predefined rules to interact with users. It can respond to greetings, small talk, help requests, and AI-related questions through a keyword-based knowledge base. The chatbot runs in the console and stores conversation history for future reference.
- Interactive console-based chatbot
- Greeting and farewell responses
- Small talk support
- Pattern matching using keywords
- Answers to AI-related questions
- Conversation history logging
- Easy to customize and extend
- Python
- Random Module
Simple_Rule_Based_Chatbot/
│── chatbot.py
│── README.md
│── .gitignore
│── screenshots/
- Clone the repository.
- Open the project folder.
- Run the following command:
python chatbot.pyYou: Hello
Bot: Hi! Nice to meet you.
You: Explain machine learning
Bot: Machine Learning is a branch of Artificial Intelligence that enables computers to learn from data without being explicitly programmed.
You: What is Python?
Bot: Python is a popular programming language used for AI, Machine Learning, Web Development, Data Science, and Automation.
You: Exit
Bot: Goodbye! Have a nice day.
- Understanding rule-based chatbot design
- Implementing pattern matching in Python
- Working with conditional statements and loops
- Creating an interactive console application
- Managing conversation logs
Poojitha Dharshanapu