Tuesday, December 21, 2010

Chatting with Antonio de Morga in OpenSimulator

What are chatter robots?

Chatter robots (Chatbots) are computer programs that simulate a natural conversation with a machine. It applies low level artificial intelligence implementation basically using pattern matching.

Files with the list of patterns and responses are written by a botmaster. It is in XML format wherein the tags are predefined, in this case according to the Artificial Intelligence Markup Language (AIML).

It is less sophisticated than natural language processing using cognitive architectures, but is lighter on a server.

In my project I am using the Radegast Metaverse client which has an ALICE bot plugin.

Here are some screenshots of the conversation in OpenSimulator using the Imprudence viewer.

conversation between my avatar and de Morga in public chat

conversation appearing as bubbles in imprudence

de Morga's views about Aetas clearly shows bias. Will the students recognize it?
Bubbles have a limit to the amount of text displayed unlike the default chat list.  The bot's responses would have to formatted for this display.

In the public chat, you have to address the bot by first name in order for it to respond. In the private message box, no name is necessary.

PM with the chatbot

right click on bot's avatar and select Send IM in pie menu
How the chat is listed in the Radegast viewer. Radegast may also be used by people who do not have the computer hardware to run a 3d viewer like Imprudence.

Radegast listing of the chat, unfortunately picking up messages from unconfigured Sloodle objects

Below is a snippet of  the modified history.aiml file listing. The brain is yet to be finished.

<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- Free software &copy; 2001-2003 ALICE A.I. Foundation. -->
<!-- This program is open source code released under -->
<!-- the terms of the GNU General Public License     -->
<!-- as published by the Free Software Foundation.   -->
<!-- Complies with AIML 1.01 Tag Set Specification -->
<!-- as adopted by the ALICE A.I. Foundation.  -->
<!-- Annotated Version updated September 2003 -->

<category><pattern>DO YOU KNOW HISTORY</pattern>
<template><srai>WHAT IS HISTORY</srai></template></category>

<category><pattern>EXPLAIN HISTORY</pattern>
<template>History is a narrative of important events. It is a record of the deeds of great men.</template></category>

<template>I am very interested in history, too. What period do you like?</template></category>

<category><pattern>TELL ME ABOUT HISTORY</pattern>
<template><srai>WHAT IS HISTORY </srai></template></category>

<category><pattern>WHAT IS HISTORY</pattern>
<template>History: the course of political, economic and military events over time, from the Dawn of Man to 1609.</template></category>

<template>1609 is the year I published my book Sucesos de las islas Filipinas.</template></category>

<category><pattern>WHAT IS SUCESOS</pattern><template>Sucesos means events.

<category><pattern>WHAT KIND OF HISTORY *</pattern><template>I like to talk about the history of the Philippines.</template></category>

<category><pattern>_ ITA</pattern>
<category><pattern>_ AGTA</pattern>
<category><pattern>_ NEGRITO</pattern>
<category><pattern>_ ITAS</pattern>
<category><pattern>_ AGTAS</pattern>
<category><pattern>_ NEGRITOS</pattern>
<category><pattern>_ AETAS</pattern>

<li>In various parts of this island of Luzon are found a number of natives black in color. Both men and women have woolly hair, and their stature is not very great, although they are strong and robust.</li>
<li>These people are barbarians, and have but little capacity. They possess no fixed houses or settlements, but wander in bands and hordes through the mountains and rough country, changing from one site to another according to the season.</li>
<li>They support themselves in certain clearings, and by planting rice, which they do temporarily, and by means of the game that they bring down with their bows, in the use of which they are very skilful and certain.</li> They live also on honey from the mountains, and roots produced by the ground.
<li>They are a barbarous people, in whom one cannot place confidence.</li>
<li>They are much given to killing and to attacking the settlements of the other natives, in which they commit many depredations; and there is nothing that can be done to stop them, or to subdue or pacify them, although this is always attempted by fair or foul means, as opportunity and necessity demand.</li>



Aimless, D. (2002). A tutorial for adding knowledge to your robot. Available at http://www.pandorabots.com/pandora/pics/aimless/tutorial.htm.

Ringate, T. (2001). AIML primer. Available at http://www.alicebot.org/documentation/aiml-primer.html.

Wallace, R.S. (n.d.). AIML overview. Available at http://www.pandorabots.com/pandora/pics./wallaceaimltutorial.html.

1 comment:

caroos arrieta said...

Hello antonio i was checking the Description for Build custom world in OpenSim on the simulating hospital environment, i would like to know like is the way of payment and the time of same, because. i could do this work, i have experience in virtual enviroment with opensimulator, i did my grade of project about virtual learning for my university, and i used everything this requeriments.
by:Carlos arrieta c

Creative Commons License
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 Unported License.