We were also told to add few features like food menu to chatbot itself. So we played a little more this week and did what was told to us.
Screenshots for handling exceptions and food menu –
Developing a system is not a that easy as it looks. Exceptions are always there to entertain you and make your work adventerous.
Some kind of exceptions we faced were :

Everything needed to be handled. So the same was what we did. We modified all the scripts. Changes were done on chatfuel platform itself.
When End-user chats, and has to provide necessary details like phone number, email , or address, or any other important stuff, programmer has to do the validation. Valid data is needed by industry for further communication with the client so it needs to be validated at that time only. Else, user should be asked to fill the data again.
Here, in chatbot, we applied validations while user types in the phone number, email or enters number of members.
Even the time is validated, whether the time is in the correct format or not.
Number of members are validated, whether it lies within the maximum number of members accomodated by the restaurant. It’s considered invalid if user enters 0 member and user is prompted to enter the number of members again.
So, this way , in chatfuel we applied many validations checks.
Now, it was time for the block buster script. The main algorithm on which whole app was based.
We had to show the free tables to user. There are lots of merge combinations created by admin. It was the algorithm where we had to put our brain into 100% use (though it’s not possible😁 ).
So, while making this script how time flied I can’t even explain. But happiness after achieving this was no less than winning a competition.
Here’s the output we were waiting for :
