Skip to content

devdarsini543/Chatbot-using-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ€– Rule-Based Chatbot (If-Else in Python)

A simple rule-based chatbot built using Python and if-else conditions.
This project demonstrates the basics of Natural Language Processing (NLP) concepts without using advanced libraries β€” perfect for beginners.


πŸ“Œ Features

  • Greets the user and responds to common phrases.
  • Tells the current date and time.
  • Uses if-elif-else for rule-based decision making.
  • Runs continuously until the user types bye.
  • Beginner-friendly and easy to customize.

πŸ›  Tools Used

  • Python 3.x
  • VS Code (for writing & running the script)

πŸš€ How to Run

1️⃣ Prerequisites

2️⃣ Steps

  1. Clone or download this repository.
  2. Open the folder in VS Code.
  3. Create a file named chatbot.py and paste the code.
  4. Open the terminal in VS Code and run:
    python chatbot.py
    

πŸ’» Example Run

πŸ€– ChatBot: Hi! I'm your friendly chatbot. Type 'bye' anytime to end the chat.

You: hello πŸ€– ChatBot: Hello there! How are you today?

You: time πŸ€– ChatBot: The current time is 14:25:01

You: date πŸ€– ChatBot: Today's date is 2025-08-15

You: bye πŸ€– ChatBot: Goodbye! Have a nice day! πŸ‘‹

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages