AIML Introduction - AIML

What is AIML Introduction?

AIML (Artificial Intelligence Markup Language) was developed by the Alicebot free software community and Dr. Richard S. Wallace during 1995-2000 period. Alicebot which is a chat-box application grounded on A.L.I.C.E i.e., Artificial Linguistic Internet Computer Entity can be created and customized by AIML.

S.No.

AIML Tag / Description

1

<aiml>

Defines the beginning and end of a AIML document.

2

<category>

Defines theunit of knowledgein Alicebot's knowledge base.

3

<pattern>

Defines the pattern to match what a user may input to an Alicebot.

4

<template>

Defines the response of an Alicebot to user's input.

Above mentioned tags are explained in detail in AIML Basic tags section.

Below are some of the AIML tags which are used commonly.

S.No.

AIML Tag / Description

1

<star>

Used to match wild card*character(s) in the <pattern> Tag.

2

<srai>

Multipurpose tag, used to call/match the other categories.

3

<random>

Used<random>to get random responses.

4

<li>

Used to represent multiple responses.

5

<set>

Used to set value in an AIML variable.

6

<get>

Used to get value stored in an AIML variable.

7

<that>

Used in AIML to respond based on the context.

8

<topic>

Used in AIML to store a context so that later conversation can be done based on that context.

9

<think>

Used in AIML to store a variable without notifying the user.

10

<condition>

Similar to switch statements in programming language. It helps ALICE to respond to matching input.

AIML Vocabulary

AIML uses vocabulary of words, space and two special characters * and _ as wild cards. We have an interpreter as well which gives preference to pattern that has _ than pattern having *. AMIL tags are similar to XML tags and the patterns are case-insensitive.

Example

Below points are considered to be important-

  • <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

AIML Related Practice Tests

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

AIML Topics