Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rule-Based AI Chatbot Banner

🤖 Rule-Based AI Chatbot

Project 1 – DecodeLabs Artificial Intelligence Internship (Batch 2026)

Python AI License Status


📖 Overview

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.


✨ Features

  • 🤖 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

🛠 Technologies Used

  • Python 3
  • Python Standard Library (datetime)
  • Git
  • GitHub

📂 Project Structure

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

🚀 Supported Commands

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

⚙️ Installation

Clone the repository

git clone https://github.com/Faran70177784/DecodeLabs-Internship.git

Navigate to the project

cd DecodeLabs-Internship/Rule-Based-AI-Chatbot

Run the chatbot

python chatbot.py

💻 Sample Conversation

You: 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.

📸 Screenshots

Startup

Startup


Help Menu

Help


Conversation

Conversation


📚 Learning Outcomes

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

🔮 Future Improvements

  • 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)

👨‍💻 Author

Syed Faran Ali

🎓 BS Robotics & Artificial Intelligence

🏛 The University of Lahore

🤖 DecodeLabs Artificial Intelligence Intern (Batch 2026)

Connect with Me


📄 License

This project is licensed under the MIT License.


⭐ If you found this project helpful, consider giving it a star!

About

Rule-Based AI Chatbot built with Python as part of the DecodeLabs AI Internship.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages