Fundamentals

Main concepts of the AIML language are:

AIML Tags

Following are the important tags which are commonly used in AIML documents.

Following are some of the other widely used aiml tags. We'll be discussing each tag in details in coming chapters.

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

<aiml version = "1.0.1" encoding = "UTF-8"?>
   <category>
      <pattern> HELLO ALICE </pattern>      
      <template>
         Hello User!
      </template>      
   </category>
</aiml>

Following are the important points to be considered −

Result :

User: Hello Alice
Bot: Hello User