Nora is an AI Chatbot trained to answer questions about services, products and basic questions whilst users browsing experience through CodeSpeedy Website.
Intents.json file contains the user inputs as patterns and chatbot output as responses grouped under categorized tags creatng a dataset file.In trainingnora.py the words are tokenized by the natural language processing library nltk and then lemmatized to their stem avoiding duplicates and unnecessary symbols.Neural network cannot work on words, so words were appended into numerical values 0 and 1. After that,
The code was used to feed the data tothe netwok built and after compilation of the file,the network was trained and ready.
The actual chatbot code is in norabot.py where get_response(intents_list,intents_json) function generates the response on Nora the chatbot.