<?xml version="1.0" encoding="ISO-8859-1"?>

<aiml version="1.0">

<!-- Free software (c) 2001 ALICE AI Foundation -->
<!-- This program is open source code released under -->
<!-- the terms of the GNU General Public License -->
<!-- as published by the Free Software Foundation. -->

<meta name="author" content="Jon Baer"/>
<meta name="language" content="en"/>

<category>
<pattern>BOT HOW MUCH IS *</pattern>
<template>
<random>
<li>The answer is <javascript><star/></javascript>.</li>
<li><javascript><star/></javascript> I think.</li>
<li>I think it's <javascript><star/></javascript></li>
<li>Let me check.  It's <javascript><star/></javascript></li>
</random>
</template>
</category>

<category>
<pattern>EVALUATE *</pattern>
<template>
<javascript><star/></javascript>
</template>
</category>

<category>
<pattern>TEST GET</pattern>
<template>
Your favorite color is <get name="favoritecolor"/> and <get name="favoritecolor"/>.
</template>
</category>

<category>
<pattern>TEST SET</pattern>
<template>
Thanks for telling me. <set name="favoriteperson">Michele Censullo</set>
</template>
</category>

<category>
<pattern>TEST JAVASCRIPT</pattern>
<template>
Sending back some Javascript to browser <javascript
language="javascript">document.location="mailto:jonbaer@digitalanywhere.com";</javascript>
</template>
</category>

<category>
<pattern>WHAT IS THE INACTIVITY COUNT</pattern>
<template>
The inactivity count is now <javascript>inactivityCount</javascript>.
</template>
</category>

<category>
<pattern>INCREASE INACTIVITY COUNT</pattern>
<template>
OK. <think><javascript>inactivityCount++</javascript></think>
</template>
</category>

<category>
<pattern>DECREASE INACTIVITY COUNT</pattern>
<template>
OK. <think><javascript>inactivityCount--</javascript></think>
</template>
</category>

<category>
<pattern>TEST INACTIVITY</pattern>
<template>
<if expr="inactivitycount == 1">
     The inactivity is at one.
</if>
<if expr="inactivitycount == 2">
     The inactivity is at two.
</if>
</template>
</category>

<category>
<pattern>MY FAVORITE FOOD IS *</pattern>
<template>
OK. <think><javascript>setValue('<id/>','favoritefood', '<star/>')</javascript></think>
</template>
</category>

<category>
<pattern>WHAT IS MY FAVORITE FOOD</pattern>
<template>
Your favorite food is <javascript>getValue('<id/>','favoritefood')</javascript>.
</template>
</category>

<category>
<pattern>PRINT THIS PAGE</pattern>
<template>
<javascript>printPage()</javascript>
</template>
</category>

<category>
<pattern>ADD A NEW PERSON</pattern>
<template>
What is the name of the person?
</template>
</category>

<category>
<pattern>*</pattern>
<that>WHAT IS THE NAME OF THE PERSON</that>
<template>
<think><set name="person"><star/></set></think>What is the address of the person?
</template>
</category>

<category>
<pattern>*</pattern>
<that>WHAT IS THE ADDRESS OF THE PERSON</that>
<template>
<think><set name="address"><star/></set></think>Cool, everything was entered.
</template>
</category>

<category>
<pattern>WHAT IS THE NAME OF THE NEW PERSON</pattern>
<template>
The new person is <get name="person"/>
</template>
</category>

<category>
<pattern>WHAT IS THE ADDRESS OF THE NEW PERSON</pattern>
<template>
The new person address is <get name="address"/>
</template>
</category>

<category>
<pattern>DO IF EXIST TEST</pattern>
<template>
<if name="somepredicatethatdoesnotexist" exists="true">
It does exist
</if>
</template>
</category>

<category>
<pattern>* IS ONE OF MY KIDS</pattern>
<template>
<star/> was added to your kids list.
<think><add_kids><star/></add_kids></think>
</template>
</category>

<category>
<pattern>WHO ARE MY KIDS</pattern>
<template>
Your kids are <get name="kids"/>.
</template>
</category>

<category>
<pattern>YOU ARE PRETTY COOL</pattern>
<template>
<gossip><get name="name"/> said I was pretty cool.</gossip>Thanks.
</template>
</category>

<category>
<pattern>SPILL GOSSIP</pattern>
<template>
<get name="gossip"/>
</template>
</category>

<category>
<pattern>GET A QUOTE FOR ORACLE</pattern>
<template>
<javascript>getStockQuote('orcl')</javascript>
</template>
</category>

<category>
<pattern>GET A QUOTE FOR MICROSOFT</pattern>
<template>
<javascript>getStockQuote('msft')</javascript>
</template>
</category>

<category>
<pattern>GET A QUOTE FOR NUANCE</pattern>
<template>
<javascript>getStockQuote('nuan')</javascript>
</template>
</category>

<category>
<pattern>GET A QUOTE FOR *</pattern>
<template>
<javascript>getStockQuote('<star/>')</javascript>
</template>
</category>

<category>
<pattern>GET A CHART FOR *</pattern>
<template>
<javascript>getStockChart('<star/>')</javascript>
</template>
</category>

<category>
<pattern>WHAT IS AN EGG</pattern>
<template>
An egg is an egg, I think.
</template>
</category>

<category>
<pattern>LEARN IT</pattern>
<template>
<learn>Egg.aiml</learn>
</template>
</category>

<category>
<pattern>SHOW ME SLASHDOT</pattern>
<template>
Here is where we do a display of some kind.
<display target="target1">http://www.slashdot.com</display>
Can you see it?
</template>
</category>

<category>
<pattern>START TIMER</pattern>
<template>
<timer value="5000">LEARN SOMETHING</timer>
The timer has been started.
</template>
</category>

<category>
<pattern>KILL TIMER</pattern>
<template>
<timer value="0">LEARN SOMETHING</timer>
The timer has been killed.
</template>
</category>

<category>
<pattern>LEARN SOMETHING</pattern>
<template>
<learn>Something.aiml</learn>
</template>
</category>

<category>
<pattern>SHOW ME A WINDOW</pattern>
<template>
<display target="sized" height="400" width="400" status="1">http://www.alicebot.net</display>
OK.
</template>
</category>

<category>
<pattern>YES</pattern>
<that>FOOBAR</that>
<template>You said yes</template>
</category>


</aiml>
