Chat AI in Unity

Hello there! :slight_smile:
I’d like to show a port of a Chat Bot I’ve been patiently recreating to work on Unity.
My goal with this is to create a complete framework to easily build believable NPC characters for games where text based conversation is a constant. This is based on common chat bot technology but with a lot of modifications to allow it run in Unity’s platforms.
Here is a demo running in Webplayer; Its AI is the common basic AI we see around in any chat bot, but I am building more specific AI profiles which I plan to use in game projects soon… I just think every text-based game, RPG and etc should be built this way. Repetitive dialogs simply kills the fantasy, what do you think? Please take a look: (click on image to run webplayer)






Whow, nice! How does this work - can i give the bot some information? So for example when this is a NPC, can i give him the information “The tavern is two blocks away from here” or something like this?

Hi! Yes that is the idea :smile:
Currently this webplayer has only the core system implemented, I didn’t really create a AI relevant to game events, but yes the idea is to give some key informations to the NPC about the game story, game world, items etc where player can interact with; while NPCs will still have freedom to think and talk by themselves about any topics you “add” to their brain.
Brains will be modular, so you don’t give a NPC too much “knowledge” if you don’t want to.
The one in this webplayer is around 70mb (6.9mb compressed) of generic knowledge about a lot of random ‘internet things’. For games we need yet a way to build more in-game centric personalities…
I also want to give them ability to recognize and localize GameObjects around them, this is quite a big task for now…
There are many, many ways to do this so I am trying a lot of things to make sure I approach the most productive way possible since I work on my projects alone.

Was really interested in trying this one out. Unfortunately the webplayer didnt worked as expected. Was running it on Chrome under MacOSX and while its loading and starting correctly (music playing, buttons responding etc…) i am not able to insert any text. Its possible to highlight the default “Hello” but its not responding to any key presses i do.
Hopefully this gets resolved as i am really looking forward to test out this one.

Hi Abhuva. Unfortunately webplayer is probably a dying platform.
Major browsers are all blocking this kind of plugins and I don’t think Unity will be able to do anything to change that.
On my install of Chrome and Safari on MacOS it is still working, but for some people webplayer doesn’t work anymore in many cases.

Pretty neat idea. I wish there was a game with this kind of “AI” interactions. And some sort of “AI” to “AI” interactions. Imagine you are walking past an old couple in GTA 5:

Hahaha, that is funny!
But yeah, with a system well built is very simple to make two npcs talk to each other forever haha

Nice job, Bruno. Are you still developing the ChatBot system? It’s something I would be very interested in using for a game.

Hi rcashman. No, I had my game project greenlit and I am now 100% dedicated on developing the game for Steam; had to stop all side projects for now.

That’s awesome! Congratulations, Bruno.