Skip to content

sanjaikumar2006/Rule_Based_AI_Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Rule-Based AI Chatbot

A simple chatbot built using Python. It gives predefined responses based on user input.

Features

  • Greets users
  • Answers predefined questions
  • Handles exit commands
  • Uses if-elif-else logic
  • Runs continuously using a loop

How to Run

  1. Open the terminal in VS Code.
  2. Run:
    python project1_chatbot.py
    

Sample Commands

  • hi
  • hello
  • hey
  • how are you
  • what is your name
  • who created you
  • tell me a joke
  • what is the date
  • what is the time
  • what can you do
  • what is ai
  • what is your favorite color
  • thank you
  • help
  • what is your age
  • what is your mood
  • bye / exit / quit

Concepts Used

  • while True for continuous loop
  • input() for user input
  • if-elif-else for decision making
  • .lower() to ignore uppercase/lowercase
  • break to stop the chatbot

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages