الترقية إلى خدمة تجارية Bot Libre for Business فقط 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 6 2018, 7:41

Note that scripts are executed before response patterns, so if you have an AIML script loaded in your bot for the same pattern, it will take precedence.

To do the same in AIML you could use something like,

<category>

<pattern>DO YOU LIKE *</pattern>

<template><self>if (star.like == null) { "what are " + star; } else if (star.like == true) { "Yes, I like " + star; } else if (star.like == false) { "No, I do not like " + star; }</self></template>

</category>

<category>

<pattern>YOU LIKE *</pattern>

<template>Okay, I will remember that I like <self>star.like = true; star</self></template>

</category>


معرف: 22711092
نشر: Jul 6 2018, 7:41
الردود: 0
الآراء: 215, اليوم: 1, الأسبوع: 1, الشهر: 6
أنا متأكد
العلم بعد اعتداء أو انتهاك قوانين الموقع