A lot of the code to create the model was sourced from this video and the website below: https://towardsdatascience.com/how-to-create-a-chatbot-with-python-deep-learning-in-less-than-an-hour-56a063bdfc44
The JSON file should be formatted like this to add new responses:
{"tag": "NAME OF THE CATEGORY OF RESPONSE",
"patterns": [TYPES OF INPUTS],
"responses": [BOT ANSWERS]
},
Sample:
{"tag": "goodbye",
"patterns": ["Bye", "See you later", "Goodbye", "Until next time"],
"responses": ["It was nice talking with you!", "Bye!", "Goodbye!"]
},
This is the file to train the model. Everytime the JSON is updated, this file should be run to generate the new and current model.
Main file that produces tangible interactions. Integrate with Discord here.