July 2017
Beginner to intermediate
486 pages
13h 49m
English
So, I have written functions in conversationengine.py which generate a JSON response according to the questions you have asked and this JSON response can be used by the frontend developer team to display messages on the chatbot UI.
Then, I have written a web service using flask so you can see the JSON response on the web URL specified in JSON itself.
The conversationengine.py is the core rule engine with handcrafted rules and codes. See the code snippet in Figure 7.18:

Here, we have used a keywords list and, responses list to implement chatbot. I have also made customized JSON ...
Read now
Unlock full access