How can I program a simple chat bot AI?

后端 未结 11 1865
一整个雨季
一整个雨季 2021-01-29 20:33

I want to build a bot that asks someone a few simple questions and branches based on the answer. I realize parsing meaning from the human responses will be challenging, but how

11条回答
  •  星月不相逢
    2021-01-29 21:05

    If you do not require a learning bot, using AIML (http://www.aiml.net/) will most likely produce the result you want, at least with respect to the bot parsing input and answering based on it.

    You would reuse or create "brains" made of XML (in the AIML-format) and parse/run them in a program (parser). There are parsers made in several different languages to choose from, and as far as I can tell the code seems to be open source in most cases.

提交回复
热议问题