Hello,
I want to develop a simple chatbot that gives information to the user about some restaurants in a certain city.
So, the user asks for some specifications (type of food, pricerange, area…), the system looks in a database that contains all the restaurants and returns the information.
I have created a custom action that handles such requests and makes the database query. Now my problem is: how do I decide the next action once I’ve done the query? For example, if the query returns 0 results I will have to send an utterance like “no restaurants were found”, if I find only one restaurant I will return the information of that restaurant, if I find a lot of restaurants I will have to ask the user to limit his/her search. Of course I could do all this by a set of rules in my code inside the custom action, but instead I would like a smarter way of doing that (aka machine learning). My idea is that once I’ve done the query, I return the result to the dialogue manager and based on that, it decides the best utterance to select, along with the entity values that I found in the db. Is that a way of doing that?
Thank you, Tiziano