How can I program a simple chat bot AI?

后端 未结 11 1854
一整个雨季
一整个雨季 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 20:50

    I think to start this project, it would be good to have a database with questions (organized as a tree. In every node one or more questions). These questions sould be answered with "yes " or "no".

    If the bot starts to question, it can start with any question from yuor database of questions marked as a start-question. The answer is the way to the next node in the tree.

    Edit: Here is a somple one written in ruby you can start with: rubyBOT

提交回复
热议问题