Back to Parent


04. Personality + Conversation

In order to simulate a variation within the conversation, I built several possible responses into each intent. By adding these responses into an array and calling them at random I was able to create a series of responses that were different each time you spoke with Sous. Given more time, additional responses could have been added to push this even further. Take for example the dislikes intent represented below. After users provide a dislike by saying, " I don't like mushrooms" Sous will respond by saying


"Gotcha, I'll filter out recipes with mushrooms. Are you allergic to anything by chance?"
or

"Good to know, I'll be sure to avoid mushrooms. While we are on the subject do you have any allergies?"

or

"Good to know, I'll be sure to avoid mushrooms. Are you allergic to anything by chance?"

or 

"Gotcha, I'll filter out recipes with mushrooms. While we are on the subject do you have any allergies?"


While is a simple solution, it goes a long way in simulating conversations that more realistic, varied and human.


Content Rating

Is this a good/useful/informative piece of content to include in the project? Have your say!

0