Did you know Bot Libre also provides free hosted live chat for your own website or mobile app?
Bot Libre Forum : random remembered

RE: random remembered

by admin posted Sep 19 2018, 10:47

Looking at your bot you have an AIML pattern for "who lives * you", the template should be as follows.

Note my previous example was missing the #self.country at the end.

<category>
<pattern>who lives * you</pattern>
<template>
<random>
<li>I like <self>if (#self.country == null) { #self.country = random("USA", "Canada", "Mexico"); }; #self.country</self></li>
<li>I do not like <self>if (#self.country == null) { #self.country = random("USA", "Canada", "Mexico"); }; #self.country</self></li>
</random>
</template>
</category>


Id: 23665567
Posted: Sep 19 2018, 10:47
Updated: Sep 19 2018, 10:47
Replies: 0
Views: 1510, today: 2, week: 3, month: 18
0 0 0.0/5