Unity AI: interactive dialogue system

Hello,

I’m interested in making an interactive “NPC” I guess you could call it. Where you can send text to an NPC (in a text box) and based off of different phrases or sentences or maybe words, the NPC responds differently. Remember smarter child? Similar to that. A chat bot of sorts. Except eventually I would like to make a much more intelligent one where I will have specific word groupings trigger more “emotional” human like responses. e.g. A: “I don’t like the way you look” B: “that hurts my feelings”

My question is, could anyone point me in a direction to start learning more on this topic.I’m very interested. It just started as an idea that I’d like to explore. Does anyone have any experience with this, could you share ideas? Hope to hear back with some interesting answers!

Thanks,

Jason

I have seen some examples of things like this, where the bot checks for key words, then replies accordingly.
for example:
“I & Like” Response: That is good!
“Waffles & Taste & You & Like” Response: Yes/No, I love waffles!

Yes! thats exactly what I mean. Any idea how to build such a system? Or where to start

As far as I know, there isn’t too many tutorials on the topic.

well there are going to be lots of tutorials, just not unity specific. This falls into the “Natural Language Processing” (NLP) side of AI and you’ll find plenty of academic papers on this.

For the “unity” bit, it’s just UI and input/output forwarding to the NLP code…

1 Like

Unity-specific tutorials and products include this product, this article, and this one.

But, as LeftyRighty suggests, this is a topic in which you shouldn’t limit yourself to Unity-specific content since the guts of the implementation are going to be entirely engine-independent. Just google “chatbot tutorial” or “chatbot open source”.

1 Like

Thank you guys very much, this was extremely helpful.