બની એક બોટ સેવા પ્રદાતા સાથે આ બોટ કાવ્ય મેઘ બોટ પ્લેટફોર્મ
Self, AIML, and scripting : [AIML] How to use random?

RE: [AIML] How to use random?

દ્વારા admin પોસ્ટ Apr 29 2017, 16:28

In AIML a random tag gives one of the elements at random.

<category> <pattern>How are you?</pattern> <template> <random> <li>I'm okay.</li> <li>I am great!</li> <li>Not so good.</li> <random> </template> </category>

Bot Libre also lets you add multiple responses to a question and chooses one automatically.

How are you?
I'm okay.
I am great!
Not so good.

Self also has a random() function.

How are you?
Template("{random ("I'm okay.", "I am great!", "Not so good.")}")


ને: 16867344
પોસ્ટ: Apr 29 2017, 16:28
સુધારાશે: Apr 29 2017, 16:31
જવાબો: 0
જોવાઈ: 2035, આજે: 2, સપ્તાહ: 11, મહિને: 12
0 0 0.0/5