Virtual Humans Forum
Virtual Humans Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Virtual Humans
Partner website:
Chatbots.org
 All Forums
 AIML and other chatbots environments
 AIML language and Pandorabots
 [AIML] Chatbot: Help
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

mcformat
Curious Member



1 Posts

Posted - Mar 17 2007 :  18:47:48  Show Profile
Hi,

I am working right now on a mod of A.L.I.C.E. I am trying to make her open programs and search the web.

But how this can be possible ? How can I integrate this in the AIML language base? A Java external program, something else?

Please help!

GamerThom
Dedicated Member



USA
2550 Posts

Posted - Mar 17 2007 :  19:05:25  Show Profile  Visit GamerThom's Homepage  Click to see GamerThom's MSN Messenger address
Attention vrossi. I think this one is all yours.

http://www.gamerthom.com/ IAlAI
Go to Top of Page

vrossi
Forum Admin



Italy
1455 Posts

Posted - Mar 17 2007 :  19:10:08  Show Profile  Visit vrossi's Homepage
As far as I know, AIML supports the <system> tag, which is supposed to do this. However I've never used it. I've done something like that in Hal, which is a completely different engine.

Here is the description opf the <system> tag, from AIML Reference Manual (http://www.alicebot.org/documentation/aiml-reference.html). Please refer to http://www.alicebot.org for further documentation.

quote:
<system> </system>

Supported in versions: AIML 1.0
Must be within: undefined
Can be within: <template>
Can contain: TSAE (Template-side AIML Expression)
Must Contain: could be empty

Description:
The <system>X</system> tag will run the shell command X.
The command X is assumed to produce its output in line-oriented format suitable for a BufferdReader to read line by line.

A simple example of this command in an AIML script is:

<category>
<pattern>WHAT TIME IS IT</pattern>
<template>The local time is: <system>date</system></template>
</category>

The "date" command is a system command that generates a text string containing the date and time. (Note that this might not work on Windows).

Take extreme care in using the <system> tag because it potentially permits remote clients to run a command on your system.


PS: I've moved this topic in the AIML section.

Vittorio
virtualhumansforum.com
Go to Top of Page

thunder
Curious Member



3 Posts

Posted - Dec 07 2010 :  11:12:35  Show Profile
Try this:

<category><pattern>GOOGLE FOR *</pattern>
<template>
<script type="text/javascript">
function websearch() {
var myWindow = window.open('http://www.google.co.uk/search?q=<person/>&btnI=I%27m+Feeling+Lucky');
};
</script>
<random>
<li><a href="javascript:websearch()">Click here</a> for a website about<person/>.</li>
<li>I don't know many sites about<person/>but <a href="javascript:websearch()">this</a> may be helpful.</li>
<li><a href="javascript:websearch()">Here</a> is a website about<person/>.</li>
<li><a href="javascript:websearch()">This site</a> may be what you are looking for. I've just checked and it says it is about<person/>.</li>
<li><a href="javascript:websearch()">This site</a> is about<person/>. Hope it is useful to you.</li>
<li>I think <a href="javascript:websearch()">this site</a> is to do with<person/>.</li>
</random>

</template></category>


- or -

<category><pattern>GOOGLESEARCH *</pattern> <template>**
<script type="text/javascript">
function websearch() {
var myWindow = window.open('http://www.google.co.uk/search?q=<person/>&btnI=I%27m+Feeling+Lucky');
};
</script>
<a href="javascript:websearch()">Click here</a> for a website about<person/>. **
</template></category>


Something very valuable I learned from Square Bear at the AI Nexus Forum.
http://knytetrypper.proboards.com/

http://usa.ultimatetopsites.com/entertainment/thunder7/

ChatBots Toplist... devoted to FREE ChatBots.... COME JOIN US!

Go to Top of Page

vrossi
Forum Admin



Italy
1455 Posts

Posted - Dec 07 2010 :  12:40:36  Show Profile  Visit vrossi's Homepage
Thank you, Thunder.

I see you have good skills in AIML ; I would like to read more posts from you in this Forum.


Vittorio
virtualhumansforum.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Virtual Humans Forum © V.R.Consulting Go To Top Of Page
This page was generated in 0.12 seconds. Snitz Forums 2000