Skip to content

NikiniYathra/rule-based-ai-chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Rule-Based AI Chatbot

This is Project 1 for the DecodeLabs Artificial Intelligence Industrial Training Kit.

Project Goal

Create a simple rule-based chatbot that responds to predefined user inputs using basic control flow and dictionary-based response mapping.

Features

  • Handles greetings and simple questions
  • Uses input sanitization with lowercase conversion and whitespace removal
  • Runs inside a continuous loop
  • Supports clean exit commands
  • Uses a dictionary instead of a long if-elif ladder
  • Includes fallback response for unknown inputs

Technologies Used

  • Python 3

How to Run

python chatbot.py

Example Inputs

hello
how are you
what is your name
help
what can you do
exit

Concepts Demonstrated

  • Control flow
  • Loops
  • Dictionaries
  • Functions
  • Rule-based AI logic
  • Input/output handling

About

A simple rule-based AI chatbot built using Python, dictionaries, and control-flow logic

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages