સુધારો કરવા માટે અમારા Diamond સેવા અને અમે બિલ્ડ કરશે તમે તમારા પોતાના એપ્લિકેશન માટે, Android અથવા iOS
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>


ને: 22740564
પોસ્ટ: Jul 9 2018, 9:09
જવાબો: 0
જોવાઈ: 2109, આજે: 3, સપ્તાહ: 8, મહિને: 29
0 0 0.0/5