Skip to content

About

A beginner-friendly rule-based chatbot built using Python.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

Basic Rule-Based Chatbot

A simple and interactive chatbot built using Python. This project was created to practice Python fundamentals such as conditional statements, loops, functions, and working with built-in modules. The chatbot responds to predefined user commands, making it a beginner-friendly example of a rule-based conversational program.


About the Project

This chatbot is designed to simulate a basic conversation by recognizing specific user inputs and providing appropriate responses. It demonstrates how simple programming logic can be used to create an interactive command-line application without relying on Artificial Intelligence or Machine Learning.

The project focuses on writing clean, readable, and well-structured Python code while making the chatbot engaging through personalized greetings, random responses, jokes, and motivational quotes.


Features

  • Greets the user by name
  • Displays a greeting based on the current time of day
  • Responds to predefined user commands
  • Shows the current date
  • Displays the current time
  • Tells random programming jokes
  • Shares motivational quotes
  • Responds politely to thank-you messages
  • Includes a help menu with available commands
  • Handles unknown inputs gracefully
  • Allows users to end the conversation using the bye command

Built With

  • Python 3
  • Random Module
  • Datetime Module

Project Structure

Basic-Chatbot-Project/
│
├── chatbot.py
└── README.md

Getting Started

Clone the repository

git clone https://github.com/yashwini19/Basic-Chatbot-Project.git

Navigate to the project folder

cd Basic-Chatbot-Project

Run the application

python chatbot.py

or

py chatbot.py

Available Commands

Command Description
hello / hi Greets the user
how are you Displays a friendly response
time Shows the current time
date Displays today's date
joke Tells a random programming joke
quote Displays a motivational quote
thank you Responds politely
who made you Displays chatbot information
help Shows all available commands
bye Ends the conversation

Sample Interaction

=============================================
🤖 Welcome to My Python Chatbot 🤖
=============================================

What's your name? Yashwini

Good Evening, Yashwini! 😊

You: hello
Bot: Hello! 👋

You: joke
Bot: Why do programmers prefer dark mode?
Because light attracts bugs! 😂

You: quote
Bot: Dream big and work hard. 🚀

You: bye
Bot: Goodbye, Yashwini! 👋
Have a wonderful day! 🌸

Concepts Practiced

  • Variables
  • User Input & Output
  • Conditional Statements (if, elif, else)
  • While Loops
  • Functions
  • Lists
  • String Manipulation
  • Python Modules (random, datetime)

Future Improvements

Some features I plan to add in the future:

  • Voice-based interaction
  • Chat history
  • Calculator functionality
  • Weather information
  • Graphical User Interface (GUI) using Tkinter
  • AI-powered conversation support

Author

Yashwini Vennu

Computer Science Engineering Student

This project was developed as part of my learning journey to strengthen my Python programming skills and build hands-on projects for my GitHub portfolio.


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

About

A beginner-friendly rule-based chatbot built using Python.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages