Skip to content

annnuu01/Chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Chatbot

A simple Rule-Based AI Chatbot built using Python that responds to user queries using keyword matching and dictionary-based memory.

πŸ€– Rule-Based AI Chatbot (Python)

This project is a simple Rule-Based AI Chatbot developed using Python.
The chatbot interacts with users through the command line and provides responses based on predefined keywords stored in a dictionary.

It also includes time-based greetings and emoji-enhanced responses to create a friendly and interactive experience.


πŸš€ Features

  • ⏰ Time-based greeting (Morning, Afternoon, Evening, Night)
  • 🧠 Dictionary-based response system
  • πŸ” Keyword matching logic
  • πŸ’¬ Continuous conversation loop
  • πŸ‘‹ Exit command (byee)
  • 😊 Emoji-supported responses
  • 🧩 Beginner-friendly AI logic implementation

πŸ›  Technologies Used

  • Python
  • datetime module
  • time module

πŸ“š How It Works

The chatbot:

  1. Takes user input.
  2. Converts it to lowercase.
  3. Matches keywords with predefined responses.
  4. Returns the corresponding response.
  5. If no match is found, it returns a default learning-mode message.

This chatbot does not use Machine Learning.
It is a rule-based system built for understanding basic chatbot logic and flow control.

--

python chatbot.py

About

A simple Rule-Based AI Chatbot built using Python that responds to user queries using keyword matching and dictionary-based memory.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages