Hard-Coding AIM Client Predicates for Pandorabots

  • 0 Replies
  • 3171 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 »

 


OpenAI Speech-to-Speech Reasoning Demo
by MikeB (AI News )
March 31, 2024, 01:00:53 pm
Say good-bye to GPUs...
by MikeB (AI News )
March 23, 2024, 09:23:52 am
Google Bard report
by ivan.moony (AI News )
February 14, 2024, 04:42:23 pm
Elon Musk's xAI Grok Chatbot
by MikeB (AI News )
December 11, 2023, 06:26:33 am
Nvidia Hype
by 8pla.net (AI News )
December 06, 2023, 10:04:52 pm
How will the OpenAI CEO being Fired affect ChatGPT?
by 8pla.net (AI News )
December 06, 2023, 09:54:25 pm
Independent AI sovereignties
by WriterOfMinds (AI News )
November 08, 2023, 04:51:21 am
LLaMA2 Meta's chatbot released
by 8pla.net (AI News )
October 18, 2023, 11:41:21 pm

Users Online

209 Guests, 0 Users

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

Articles