Extended AIML

From Jason Shankel's Wiki
Jump to: navigation, search
Line 13: Line 13:
 
'#pattern' is a pattern for a human input.  For example "I LIKE *" would be a pattern corresponding to human sentences such as "I LIKE BEANS" and "I LIKE MUSIC."
 
'#pattern' is a pattern for a human input.  For example "I LIKE *" would be a pattern corresponding to human sentences such as "I LIKE BEANS" and "I LIKE MUSIC."
  
#template is a set of instructions for producing a response.  The most basic template form is just literal text like "ME TOO" or "NOT ON YOUR LIFE."  There are also a number of subtags that can be used in <template> to generate text programmatically.  You can find a complete specification for the standard [http://www.alicebot.org/documentation/ here.]
+
'#template' is a set of instructions for producing a response.  The most basic template form is just literal text like "ME TOO" or "NOT ON YOUR LIFE."  There are also a number of subtags that can be used in <template> to generate text programmatically.  You can find a complete specification for the standard [http://www.alicebot.org/documentation/ here.]
  
#that is a pattern corresponding to the last thing the bot said.  This allows the bot to create different categories for different contexts.  This allows the bot to respond to input patterns like "YES" and "I DON'T THINK SO."  For example, the bot might ask you if you enjoy opera or if you want to play chess.  AIML can use the <that> clause to create two separate categories for "YES" to handle these two cases.
+
'#that' is a pattern corresponding to the last thing the bot said.  This allows the bot to create different categories for different contexts.  This allows the bot to respond to input patterns like "YES" and "I DON'T THINK SO."  For example, the bot might ask you if you enjoy opera or if you want to play chess.  AIML can use the <that> clause to create two separate categories for "YES" to handle these two cases.
  
 
  <category>
 
  <category>

Revision as of 20:59, 4 April 2012

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox