升级到我们的商业服务 Bot Libre for Business 只为 4.99美元 ,每月
Bot Libre Forum : prevent a chatbot from asking a question it knows

RE: prevent a chatbot from asking a question it knows

通过 admin 发布 Jul 9 2018, 9:09

For this you would need to use <that> in AIML. <that> is used to check a "previous" response.

You could also use a response list using "previous" or "next".

Something like,

<category>
<pattern>I LIKE EATING *</pattern>
<template>What is eating <star/></template>
</category>


<category>
<that>WHAT IS EATING *</that>
<pattern>EATING *</pattern>
<template>Okay, I will remember <self>thatstar.eating = star</self></template>
</category>


<category>
<pattern>WHAT IS EATING *</pattern>
<template><self>if (star.eating == null) { "What is eating " + star; } else { "Eating " + star.eating; }</self></template>
</category>


Id: 22740564
发布: Jul 9 2018, 9:09
答复: 0
的风景: 1142, 今天: 2, 周: 3, 一个月: 9
我敢肯定
标志后的进攻,或者在违反规则网站