Testing the rule-based chatbot
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:
The JSON response when the chatbot is asking for the name of a user is given in the following figure:
If the user asks for the status of his application, then they will get the JSON response given in the following figure:
If the user asks status-related questions with a blend of Hindi-English (Hinglish) and if they use the word status...