AIML – Tag
<condition> Tag is similar to switch statements in programming language. It helps ALICE to respond to the matching input. Syntax <condition name = "variable-name" value = "variable-value"/> For example, consider the…
<condition> Tag is similar to switch statements in programming language. It helps ALICE to respond to the matching input. Syntax <condition name = "variable-name" value = "variable-value"/> For example, consider the…
<think> Tag is used in AIML to store a variable without notifying the user. Syntax Store a value using <think> tag <think> <set name = "variable-name"> variable-value </set> </think> For example,…
<topic> Tag is used in AIML to store a context so that later conversation can be done based on that context. Usually, <topic> tag is used in Yes/No type conversation. It helps AIML to…
<topic> Tag is used in AIML to store a context so that later conversation can be done based on that context. Usually, <topic> tag is used in Yes/No type conversation. It helps AIML to…
<that> Tag is used in AIML to respond based on the context. Syntax <that> template </that> For example, consider the following conversation. Human: Hi Alice! What about movies? Robot: Do you…
<set> and <get> tags are used to work with variables in AIML. Variables can be predefined variables or programmer created variables. Syntax <set> tag is used to set value in a variable. <set…
<random> Tag is used to get random responses. This tag enables AIML to respond differently for the same input. <random> tag is used along with <li> tags. <li> tags carry different…
<srai> Tag is a multipurpose tag. This tag enables AIML to define the different targets for the same template. Syntax <srai> pattern </srai> Following are the commonly used terms associated with srai −…
<star> Tag is used to match wild card * character(s) in <pattern> Tag. Syntax <star index = "n"/> n signifies the position of * within the user input in <pattern> Tag. Consider the following…
In this tutorial, we'll discuss the basic tags of AIML. <aiml> − defines the beginning and end of a AIML document.<category> − defines the unit of knowledge in Alicebot's knowledge base.<pattern> − defines the pattern…