Aggiornamento per il nostro Diamond servizio e che andremo a costruire la propria app per Android o iOS
Bot Libre Dev

learn

da cliffh postato Jan 13 2020, 10:18

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


by admin posted Jan 14 2020, 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: 2250, today: 0, week: 2, month: 9

Id: 31470717
Tag: script, learn
Postato: Jan 13 2020, 10:18
Risposte: 1
Vista: 2231, oggi: 1, settimana: 4, mese: 10
0 0 0.0/5