xenial-black•2y ago
Global intent detection as per button click
I want to make the buttons dynamic. So the buttons are not fixed. Next, as user selects a button I would want the system to look for intent match. Cna this be achieved?
usecase: At time users ask multiple questions in a single go. The entire text may have 3-4 questions and each question may correspond to a different intent. I want to read "last_uttenrence" and using "set_AI" want to segregate the questions and populate them as buttons to the user. Next, as user selects the button/question he wants to be addressed first, based on that if the right intent can trigger then my usecase of multi question handling can be fulfilled.
1 Reply
sunny-green•2y ago
@NayakAvishek#058 you might have to do a series of set Ai to achieve this.
1st capture the question. And classify how many questions the user has.
2nd is to make multiple nodes. With different numbers of buttons.
Node 1: 1 button
Node 2: 2 buttons and so on.
Use logic step to route based on {numberofbutttons} variable contains. 1/2/3 accordingly.
And route through node 1 or 2 or 3. Based on the variable
Then use set ai to make a numbered list of mentioned intents in order. And save that in variables
Then use set ai to make button names based on that list order.
Do for all the buttons. It'll be easier if you mentioned the number of the intent in the list.
Then save them as button 1, button 2 and so on.