/Simple-chatbot-in-python

code uses the provided JSON file called "intents.json" to store the conversation data. The "get_bot_response" function reads the JSON file

Primary LanguagePythonMIT LicenseMIT

Contributors Forks Stargazers Issues Twitter


Logo

Simple chatbot in python

Start chating with bots by this smiple script.
Explore the docs »

View Demo · Report Bug · Request Feature

Table of Contents
  1. About The Script
  2. Getting Started
  3. Usage
  4. License
  5. Contact

About The Script

This code uses the provided JSON file called "intents.json" to store the conversation data. The "get_bot_response" function reads the JSON file, iterates through the intents and patterns, and checks for a match with the user input. If a match is found, the corresponding response is returned. If no match is found, the function returns a default message.
Please note that, this is still a very basic example of a chatbot and it may not be suitable for complex tasks. Also, it uses regular expressions to match the user input and it could have some limitations.

(back to top)

Built With

(back to top)

Getting Started

  1. Download main.py and intents.json Download
  2. After downloading open the main.py
  3. Now you can simply start chating with bots

(back to top)

Usage

  • 1 => Basic example

See the open issues for a full list of proposed features (and known issues).

(back to top)

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Script
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

License

Distributed under the MIT License. See LICENSE.txt for more information.

(back to top)

Contact

@mdMandoinfo - Discord: mdMandoinfo#9819

Script Link: https://github.com/mdMandoinfo/Simple-chatbot-in-python

(back to top)