Skip to content

Files

Latest commit

5ee837d · Jan 6, 2024

History

History

ChatBot

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jan 6, 2024
Jan 6, 2024

Simple Python ChatBot

chatbot

This is a basic Python-based chatbot that uses a rule-based system to provide predefined responses to user inputs. The chatbot is implemented using Python's standard input/output functionality.

Usage

Clone the Repository

git clone https://github.com/ashutosh786palhare/Python-Micro-Projects/ChatBot.git 

Run the ChatBot

Navigate to the directory where the main.py file is located and execute the following command:

main.py

Interaction

Once the chatbot is running, it will display a welcome message and prompt you to input messages. Type your messages in the console and press Enter to send them. The chatbot will respond accordingly based on the predefined responses.

To exit the chatbot, simply type "bye" and press Enter.

Example Conversations

See ScreenShot

Customization

You can customize the chatbot's responses by modifying the responses dictionary in the chatbot.py file. Add new key-value pairs to handle different user inputs and define appropriate responses.

Contributing

Feel free to fork this repository, make improvements, and create a pull request. Contributions are welcome!

License

This project is licensed under the MIT License - see the LICENSE file for details.