Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic Rule-Based Chatbot

A simple rule-based chatbot built in Python as part of my CodeAlpha Python Programming Internship.

Project Description

This chatbot interacts with users using predefined responses. It demonstrates the basic concepts of Python, including:

  • Functions
  • While loops
  • If-elif-else statements
  • User input and output
  • String methods (lower())

The chatbot continues to interact with the user until they type "bye".

Features

  • Greets the user
  • Responds to "hello" and "hi"
  • Answers "how are you"
  • Responds to greetings like "good morning" and "good afternoon"
  • Introduces itself
  • Responds to "thanks"
  • Provides help
  • Exits when the user types "bye"

🛠 Technologies Used

  • Python 3

▶ How to Run

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

Output

Example 1

Output 1

What I Learned

  • Creating functions
  • Using loops for continuous interaction
  • Making decisions with if-elif-else
  • Handling user input
  • Building a simple command-line application

Author

Kiran Sarwar

About

I made a basic Chatbot as part of my CodeAlpha internship. I have used Python.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages