ダウンロードは、オープンソースの ボットのリブレコミュニティエディション とインストールボットブリトーを自分でサーバー
Bot Libre Forum : prevent a chatbot from asking a question it knows

RE: prevent a chatbot from asking a question it knows

による admin 掲載 Jul 4 2018, 13:49

You can do this in a response list using something like.

Pattern("do you like *")
Template("What is {Utils.person(star)}?")
condition: star.like == null

Pattern("do you like *")
Template("Yes, I like {Utils.person(star)}.")
condition: star.like == true

Pattern("do you like *")
Template("No, I do not like {Utils.person(star)}.")
condition: star.like == false

Pattern("you like *")
Template("Okay, I will remember I like {Utils.person(star)}?")
think: star.like = true;

Pattern("you do not like *")
Template("Okay, I will remember I do not like {Utils.person(star)}?")
think: star.like = false;


Id: 22692267
掲載: Jul 4 2018, 13:49
回答: 0
眺望: 1990, 今日の: 1, 週間: 1, 月: 62
0 0 0.0/5