Hello. I’m trying out the new aiml2.0 on Playground Beta website and was wondering if someone could explain to me how to use learnf (or learn for that matter).
I read in the tutorial about it and it gave an example, however I didn’t quite understand the example.
What i’d like to do in the long run is be able to use learnf to create a new card that remembers what the user taught it. My question is this, is there a way to write a piece of code so it will learn “anything” the user tells it to learn? Or do I have to write specific pieces of code for each possible category?
Approaching the question another way..
The tutorial example looks like this
<category>
THE SKY IS BLUE</pattern>
<template>I will remember that the sky is blue
<learn>
<category>
WHAT COLOR IS THE SKY</pattern>
<template>The sky is blue</template>
</category>
</learn>
</template>
</category>
I’m assuming this is specifically talking about the sky being blue so the bot is now able to learn that the sky is blue, but that’s it, yes? If I wanted the bot to learn about ANYTHING else i’d have to make similar categories about them?