Create a Chat BOT and use as a NPC?

Would it be possible(and if so, would it be hard) to build something like a chatbot(which is something really old and common in the internet. A simple A.I. that answer according to what it knows and if don't know how to answer, check wikipedia or something) and use it as a NPC in a MV game?

Is it possible for someone to create a system like that and make the calls necessary from inside an event?
Depends on the level of "smartness" you need. Chances are you can hook up an existing chatbot library with a plugin interface.
Depends on the level of "smartness" you need. Chances are you can hook up an existing chatbot library with a plugin interface.
I imagine something "simple" like those that are made by InBot, where the bot can answer a few things offline, but if you ask something it doesn't know, it copies a resume from wikipedia(or another website).

Would it be possible to store the text in a variable, make the bot check it(online if necessary/possible) and give the answer inside a message box ? Something like that would be awesome! Would be the best NPC ever made!
The only RPG Maker part of that is using the answer. You can wrap the process into one script call, and display the result with something like this.
If you're interested in natural language processing from text and stuff like that, especially if you have a bit of programming background, you can have a look at Amazon Web Services' Lex. It uses the same technology that powers Amazon's Alexa, and it's quite powerful and simple to use.

You could try to create the chatbot, and then use the Lex API to feed player input to your chatbot and display the result in RPG maker using the tools that cyanic describes above.

I'm not sure if it would work but it seems worth the experiment.
I'm also interested on the subject. In my case, it would be a simpler chatbot with no need for an internet connection.

Has someone tried anything like this? Did it work?

Rennan_Ribeiro, please refrain from necro-posting in a thread. Necro-posting is posting in a thread that has not had posting activity in over 30 days. You can review our forum rules here. Thank you.


I suggest you make a new thread about this.

Original thread: https://forums.rpgmakerweb.com/threads/create-a-chat-bot-and-use-as-a-npc.91681/