Upgrade to our commercial service Bot Libre for Business for only $4.99 per month
Bot Libre Dev

learn

by cliffh posted Jan 13, 10:18

in self what is the syntax for the "learn" operator please? 


by admin posted Jan 14, 8:26

In Self the learn() function takes a response category object that has a pattern and template.

For example:
learn( { pattern : "hello", template : "How are you today?" } );
or,
var response = new Object();
response.pattern = "hi";
response.template = "bye";
learn( response );

Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 374, today: 1, week: 3, month: 111

Id: 31470717
Tags: learn, script
Posted: Jan 13, 10:18
Replies: 1
Views: 406, today: 2, week: 6, month: 102
I'm sure
Flag post as offensive, or in violation of site rules