Start chating with bots
by this smiple script.
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
Table of Contents
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.
- Download main.py and intents.json Download
- After downloading open the
main.py
- Now you can simply start chating with bots
- 1 => Basic example
See the open issues for a full list of proposed features (and known issues).
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!
- Fork the Script
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE.txt
for more information.
@mdMandoinfo - Discord: mdMandoinfo#9819
Script Link: https://github.com/mdMandoinfo/Simple-chatbot-in-python