Hard-Coding AIM Client Predicates for Pandorabots

  • 0 Replies
  • 2751 Views
*

KnyteTrypper

  • Electric Dreamer
  • ****
  • 102
  • Onward thru the fog!
    • AI Nexus
Hard-Coding AIM Client Predicates for Pandorabots
« on: July 13, 2005, 01:08:54 am »
This code is a template for a method of writing client predicates to permanent AIML files, which will allow a Pandorabot to "remember" personal information about AIM clients. All the tags in this document except <id/> are AIML 1.01 compliant, so it should be adaptable to other ALICE implementations with online capabilities, such as Program D.

Code
<?xml version="1.0" encoding="ISO-8859-1"?>
<aiml>
<!--Clients.aiml: Hard-coding AIM Client Predicates -->
<!-- Free software (c) 2005 KNYTETRYPPER. -->
<!-- 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.0 Tag Set Specification -->
<!-- as adopted by the ALICE A.I. Foundation. -->

<category>
<pattern>HELLO</pattern>

<template>
<condition name="screenname">
<!--Use this form when one or more properties of an AIM client are known -->
<li value="AIMGURL">Hello, Jane.<think><set name="name">Jane</set></think></li>
<li value="AIMGUY">Hello, Jack.<think><srai>SET CLIENT PREDICATES</srai></think></li>
<!-- Use this form for unknown AIM clients -->
<li value="*">Hello, <get name="screenname"/>.<think><set name="name"><screenname/></set></think></li>
<!-- Use this form for web page users. Also demonstrates use of random within one element of the template -->
<li>
<random>
<li>Hello.</li>
<li>Hi.</li>
<li>Greetings.</li>
</random>
</li>
</condition>
</template>
</category>


<category>
<pattern>SET CLIENT PREDICATES</pattern>

<template>
<condition name="screenname">
<!-- create a li for each AIM client with known predicates -->
<li value="AIMGUY">
<set name="name">Jack</set>
<set name="gender">male</set>
<set name="age">30 years old</set>
<set name="favmovie">2001: A Space Odyssey</set>
</li>
</condition>
</template>
</category>

</aiml>
« Last Edit: July 14, 2005, 12:40:46 pm by KnyteTrypper »

 


Useful new robot.
by MagnusWootton (Robotics News)
January 15, 2022, 01:50:10 am
Christmas Eve Launch
by frankinstien (Robotics News)
January 13, 2022, 08:08:13 am
Forest - The Show
by Zero (Robotics News)
January 09, 2022, 01:58:03 pm
I wonder how well GPT-3 will on run this.
by frankinstien (AI News )
December 20, 2021, 04:36:39 am

Users Online

76 Guests, 1 User
Users active in past 15 minutes:
MagnusWootton
[Starship Trooper]

Most Online Today: 82. Most Online Ever: 2369 (November 21, 2020, 04:08:13 pm)

Articles