Closed weallwegot closed 6 years ago
From @weAllWeGot on December 8, 2016 22:54
in the beginning do all the conversation common functions and decide on an answer based on which combination of those that you get. like run
cc.findClass(userinput) cc.determineSpecificInfoRequest(userinput) cc.determineSuperlativeRequest(userinput) cc.determineGeneralVagueRequest(userinput)
then depending on which combinations of these return non 0, or non unsure values, launch into the corresponding sub scripts. for instance
if classfound != 0 and determineSpecificInfo != 0: class = classfound intent = determine blah engage....
elif classfound != 0 and determineSpecificInfo == 0: reply with asking about more info or something
elif classfound ==0 and determinespecificinfo == 0 and generalrequest != 0: respond with gneral response
elif etc etc etc... this would really clean up the script
_Copied from original issue: weAllWeGot/kbai_chatbot3#23
From @weAllWeGot on December 8, 2016 22:54
in the beginning do all the conversation common functions and decide on an answer based on which combination of those that you get. like run
cc.findClass(userinput) cc.determineSpecificInfoRequest(userinput) cc.determineSuperlativeRequest(userinput) cc.determineGeneralVagueRequest(userinput)
then depending on which combinations of these return non 0, or non unsure values, launch into the corresponding sub scripts. for instance
if classfound != 0 and determineSpecificInfo != 0: class = classfound intent = determine blah engage....
elif classfound != 0 and determineSpecificInfo == 0: reply with asking about more info or something
elif classfound ==0 and determinespecificinfo == 0 and generalrequest != 0: respond with gneral response
elif etc etc etc... this would really clean up the script
_Copied from original issue: weAllWeGot/kbai_chatbot3#23