Hi
I’m adding AIML categories in real time. But the pattern found on the internet is pretty basic like this:
Category c = new Category(0, pattern, that, topic, template, MagicStrings.null_aiml_file); 
I would like to know, how do I add more elaborate patterns, for example:
<category>
  <pattern>SENDEMAIL</pattern>
  <template>
    <condition name="user">
      <li value="unknown">
  Bom dia! qual é o endereço email ?
  <think>
     <set name="topic">EnviarFatura</set>
     <set name="waiting_for_email">true</set>
  </think>
      </li>
      <li>Bom dia user, só aguarde um minutinho tá
 <think>
   <set name="waiting_for_email">true</set>
 </think>
      </li>
    </condition>    
  </template>
</category> 
best

 RSS AI Zone
            
            
        
            
            
            
        
            
            
            
        
            
