April 2018
Beginner to intermediate
566 pages
12h 17m
English
In this section, we will test the basic version of the chatbot. Let's begin with basic personal information that the chatbot asks for from the user. Here, I will generate the JSON response generated by the flask RESTful API. We need a JavaScript to parse this JSON response if we are integrating these APIs with the frontend. I won't explain the frontend integration part here, so let's analyze the JSON responses.
For the welcome message, refer to the following screenshot:

Figure 8.13: JSON response for the welcome message
The JSON response when the chatbot is asking for the name of a user is given in the following figure: ...