Project 1 – DecodeLabs Artificial Intelligence Internship (Batch 2026)
This project was developed as Project 1 during my DecodeLabs Artificial Intelligence Internship.
The objective was to build a Rule-Based AI Chatbot capable of responding to predefined user queries using Python control flow and decision-making logic.
Unlike Machine Learning models, this chatbot follows predefined rules to generate responses, making it an excellent introduction to Artificial Intelligence fundamentals.
- 🤖 Rule-Based AI conversation
- 💬 Interactive command-line chatbot
- 🧹 Input sanitization
- 👋 Greeting recognition
- 📅 Date command
- ⏰ Time command
- 😂 Joke command
- 📖 Help menu
- 🚪 Exit commands
- 🧩 Modular Python code
- 📘 PEP 8 compliant
- Python 3
- Python Standard Library (
datetime) - Git
- GitHub
Rule-Based-AI-Chatbot/
│
├── assets/
│ └── banner.png
│
├── screenshots/
│ ├── chatbot-start.png
│ ├── chatbot-help.png
│ └── chatbot-conversation.png
│
├── chatbot.py
├── README.md
├── LICENSE
├── requirements.txt
└── .gitignore
| Command | Description |
|---|---|
| hello | Greeting |
| hi | Greeting |
| hey | Greeting |
| good morning | Greeting |
| good afternoon | Greeting |
| good evening | Greeting |
| how are you | Ask chatbot status |
| what is your name | Bot introduction |
| who are you | Bot introduction |
| who created you | Developer information |
| date | Display current date |
| time | Display current time |
| joke | Tell a joke |
| help | Show available commands |
| exit | Exit chatbot |
| quit | Exit chatbot |
| bye | Exit chatbot |
Clone the repository
git clone https://github.com/Faran70177784/DecodeLabs-Internship.gitNavigate to the project
cd DecodeLabs-Internship/Rule-Based-AI-ChatbotRun the chatbot
python chatbot.pyYou: hello
RuleBot:
Hello! How can I assist you today?
You: time
RuleBot:
The current time is 08:35 PM
You: joke
RuleBot:
Why do programmers prefer Python?
Because it makes coding simple and enjoyable!
You: exit
RuleBot:
Goodbye! Thank you for chatting with me.
Through this project, I strengthened my understanding of:
- Artificial Intelligence Fundamentals
- Rule-Based Systems
- Decision-Making Logic
- Python Functions
- Dictionaries
- Loops
- Input Validation
- Modular Programming
- Software Engineering Best Practices
- Git & GitHub Workflow
- Keyword-based intent recognition
- Natural Language Processing (NLP)
- Voice input and speech output
- Graphical User Interface (GUI)
- Conversation history
- Integration with Large Language Models (LLMs)
Syed Faran Ali
🎓 BS Robotics & Artificial Intelligence
🏛 The University of Lahore
🤖 DecodeLabs Artificial Intelligence Intern (Batch 2026)
- GitHub: https://github.com/Faran70177784
- LinkedIn: http://www.linkedin.com/in/syed-faran-ali
This project is licensed under the MIT License.
⭐ If you found this project helpful, consider giving it a star!



