Skip to content

poojithadharshanapu-oss/Syntecxhub_Simple-Rule-Based-chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🤖 Simple Rule-Based Chatbot

📌 Project Overview

The Simple Rule-Based Chatbot is a Python-based conversational application that uses pattern matching and predefined rules to interact with users. It can respond to greetings, small talk, help requests, and AI-related questions through a keyword-based knowledge base. The chatbot runs in the console and stores conversation history for future reference.

✨ Features

  • Interactive console-based chatbot
  • Greeting and farewell responses
  • Small talk support
  • Pattern matching using keywords
  • Answers to AI-related questions
  • Conversation history logging
  • Easy to customize and extend

🛠️ Technologies Used

  • Python
  • Random Module

📂 Project Structure

Simple_Rule_Based_Chatbot/
│── chatbot.py
│── README.md
│── .gitignore
│── screenshots/

🚀 How to Run

  1. Clone the repository.
  2. Open the project folder.
  3. Run the following command:
python chatbot.py

💬 Sample Interaction

You: Hello
Bot: Hi! Nice to meet you.

You: Explain machine learning
Bot: Machine Learning is a branch of Artificial Intelligence that enables computers to learn from data without being explicitly programmed.

You: What is Python?
Bot: Python is a popular programming language used for AI, Machine Learning, Web Development, Data Science, and Automation.

You: Exit
Bot: Goodbye! Have a nice day.

📖 Learning Outcomes

  • Understanding rule-based chatbot design
  • Implementing pattern matching in Python
  • Working with conditional statements and loops
  • Creating an interactive console application
  • Managing conversation logs

👩‍💻 Author

Poojitha Dharshanapu

About

Designed and implemented a Simple Rule-Based Chatbot using Python as part of an AI internship project. The chatbot uses conditional statements and keyword matching to provide responses to greetings, small talk, help requests, and Artificial Intelligence-related questions. It also records conversation history in a log file, making it an interactive

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages