developer_guide:aiml_fundamentals:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

developer_guide:aiml_fundamentals:start [2016/11/07 13:00] – created borjadeveloper_guide:aiml_fundamentals:start [2016/11/07 13:02] (current) borja
Line 24: Line 24:
   * <think> : Used in AIML to store a variable without notifying the user.   * <think> : Used in AIML to store a variable without notifying the user.
   * <condition> : Similar to switch statements in programming language. It helps ALICE to respond to matching input.   * <condition> : Similar to switch statements in programming language. It helps ALICE to respond to matching input.
 +
 +** AIML Vocabulary **
 +
 +AIML vocabulary uses words, space and two special characters * and _ as wild cards. AIML interpreter gives preference to pattern having _ than pattern having *. AIML tags are XML compliant and patterns are case-insensitive.
 +
 +Example
 +<code>
 +<aiml version = "1.0.1" encoding = "UTF-8"?>
 +   <category>
 +      <pattern> HELLO ALICE </pattern>      
 +      <template>
 +         Hello User!
 +      </template>      
 +   </category>
 +</aiml>
 +</code>
 +
 +Following are the important points to be considered −
 +
 +  * <aiml> tag signifies start of the AIML document.
 +  * <category> tag defines the knowledge unit.
 +  * <pattern> tag defines the pattern user is going to type.
 +  * <template> tag defines the response to the user if user types Hello Alice.
 +
 +Result :
 +<code>
 +User: Hello Alice
 +Bot: Hello User
 +</code>
  
  
  • developer_guide/aiml_fundamentals/start.1478523629.txt.gz
  • Last modified: 2016/11/07 13:00
  • by borja