<learn>

The learn element allows the user to generate new category blocks from within a conversation. This powerful introduced in AIML 2.0 allows users to actually teach the bot new information.

Categories generated by the learn element are stored in memory, and are only accessible with the client_name that was used to create them.

Usage

<category>
<pattern>I LIKE COFFEE</pattern>
<template>
  I will remember that you like coffee.
  <learn>
    <category>
    <pattern>WHAT DO I LIKE</pattern>
    <template>You like coffee.</template>
    </category>
  </learn>
</template>
</category>

Input: I like coffee.
Output: I will remember that you like coffee.
Input: What do I like?
Output: You like coffee