pandorabots 733,547,717 pandorabot responses served!
  Help
Account Sign-up Support Shop About Most Popular

Pandorabots Frequently Asked Questions

Last Updated: July 29th, 2005

This FAQ (Frequently Asked Questions) list is a work in progress - if you have any comments or suggestions for questions to include, please send e-mail to info@pandorabots.com with the word "FAQ" somewhere in the subject line.

A. Mailing Lists

A.1 What mailing lists related to Pandorabots are available?

There are two mailing lists directly related to Pandorabots.

Click on the above links for more information about subscribing and posting, viewing archives, and changing your subscription options for these mailing lists.

The are also a number of mailing lists about Alicebot and AIML technology hosted at alicebot.org.

A.2 How do I unsubscribe from, or change my subscription options for pandorabots-announce?

To unsubscribe from pandorabots-announce, get a password reminder, or change your subscription options enter your subscription email address:

A.3 How do I unsubscribe from, or change my subscription options for pandorabots-general?

To unsubscribe from pandorabots-general, get a password reminder, or change your subscription options enter your subscription email address:

A.4 How did I become subscribed to pandorabots-announce and/or pandorabots-general

If you created your Pandorabots.com account after February 28th 2003, you were presented in the account signup form with two check-boxes – one to subscribe to pandorabots-announce and the other to subscribe to pandorabots-general. Depending on whether or not these check-boxes were checked when you clicked on 'Submit Account Request', you were automatically subscribed to zero, one or both of the mailing lists.

You should have received a welcome email message including your password and instructions for unsubscribing from the mail list. You should also have received monthly reminder messages, again with your password and instructions for unsubscribing. If you didn't receive these messages but have been receiving messages sent to the mailing list, please send mail to pandorabots-announce-admin@list.pandorabots.com or pandorabots-general-admin@list.pandorabots.com as appropriate.

If you no longer wish to receive messages on the Pandorabots mailing lists see questions A.2 and A.3.

B. Hosting and Publishing

B.1. How can I put my Pandorabot on my own web page?

Pandorabots is a bot hosting service and the bot must be published at Pandorabots.com. However, you can embed a Pandorabot within a frame on your webpage. Create an html frameset containing a frame with:

<frame src="http://www.pandorabots.com/pandora/talk?botid=....">
If you don't need the published page to be embedded within one of your own pages, you can still upload customized HTML to change the appearance of the bot's published page. For basic HTML customization, take a look at:
http://www.pandorabots.com/pandora/pics/pubhtml.html
For more advanced customization (including using VHosts), take a look at:
http://list.pandorabots.com/pipermail/pandorabots-general/2003-May/000038.html
http://list.pandorabots.com/pipermail/pandorabots-general/2003-May/000044.html
[For Oddcast VHost bots see also E.1.]
[For information on how to set up a Flash interface for your Pandorabot see also H.3.]

B.2. What link can I give to others so that they can talk to my Pandorabot?

Click on the name of your bot on the My Pandorabots page and you'll be taken to page which will show you the link(s) through which your published bot can be accessed. If your bot is not yet published, you'll need to first publish it. You can do that by clicking on the "publish" link on this same page.

C. Botmaster Control

C.1. Training my chatbot doesn't seem to be having any affect. Why might that be?

Firstly, after specifying an alternate response, try re-asking the same question using the Training interface (you can simply click on "Ask Again"). If that works then the AIML for your bot has been correctly updated. What you then need to do is publish those updates so that clients talking to your bot via the published URL will see the changes. You can do this by clicking on the name of your bot to get to the summary page. On this page you should see some text like this:

“You have made changes to the pandorabot since it was last published. You must republish the pandorabot to make these changes available for others.”
Until you click on the "republish" link your changes will not have any affect for clients chatting with your bot. This feature allows you to try out some AIML changes (either by using the Training interface or by editing the AIML files directly) and only make them public when you're satisfied that they're working correctly.

D. Instant Messaging

D.1. Can I have my pandorabot respond on MSN Messenger?

There is a 3rd party MSN Messenger Bot which takes its reponses from a chatbot hosted at Pandorabots. You run the application on the same machine that you're running your MSN Messenger client. The software is available from http://www.mess.be. Select 'Search our files' from the 'Download' pull-down and search for 'Binsonite'.

Please note that we cannot offer support for this at info@pandorabots.com. If you need support with this you should contact the author.

D.2. Can I have my pandorabot respond on IRC?

An Eggdrop TCL script is available from http://www.tclscript.com/scripts.shtml. Download alice.tcl and egghttp.tcl. A README.txt is included which gives details on how to configure the TCL script and your Pandorabot.

Note that the alice.tcl bundle contains a file named alice.html. You need to save this on your local machine and then from Botmaster Control, click on Edit for the appropriate Pandorabot. Scroll down to Personalized published html page, and enter the path to your saved copy of alice.html in the text field labelled Filename: (alternatively in IE, you can click on the Browse... button to open a File Chooser dialog to help you locate the file). Finally, click on Upload file and you're done.

D.3. Can I train my AOL IM pandorabot to respond based on the Screen Name of the user talking to it?

Yes. You need to use the (pseudo-) predicate "screename" – Pandorabots automatically sets this to be the screen name of the AOL IM user talking with your bot. You can access the predicate in templates using the <get> element and you can also use it as a regular predicate within <condition> elements. For example, the following category responds with the user's screen name if set.

<category>
  <pattern>WHAT IS MY SCREEN NAME</pattern>
  <template>
    <condition name="screenname">
      <li value="*">Your Screen Name is: <get name="screenname"></get></li>
      <li>You're not talking to me via AOL IM.</li>
    </condition>
  </template>
</category>

You can either place the above category in an AIML file to upload, or using the Training interface, cut and paste the green text as the desired response.

D.4. How do I get an AIM screen name for my bot?

In order to publish a pandorabot on AOL IM you need to enter an AIM screen name and password. You would normally enter a different screen name than your regular AOL screen name. This is so that you can chat with the bot from your regular AIM client. In other words you'd sign on to AIM using your regular screen name and send an Instant Message to your bot specifying its screen name.

There are a couple of ways to register a second screen name to give to your pandorabot. Firstly from the AOL IM client Sign On dialog there's a link Get a Screen Name (the exact wording may vary depending on which version of the client you have). Alternatively you can go to www.aim.com and somewhere on that page there should be a link for users who don't yet have a screen name. Both should take you to a registration page where you can create your bot's screen name.

E. Oddcast VHost

E.1. What HTML do I cut and paste to put my VHost Pandorabot onto a web page?

Unfortunately the way the integration between Pandorabots and SitePal is designed, it's not possible to simply cut and paste some code into a page on your own site. Basically the page serving the bot's responses must come from pandorabots.com. However, there are a still several ways you can achieve the affect that you want. Take a look at:

http://list.pandorabots.com/pipermail/pandorabots-general/2004-February/000257.html

F. Customized HTML

F.1. The conversation logs for my Customized HTML bot, consist of lots of separate 1-line conversations. How can I fix that?

Pandorabots normally tracks individual conversations by placing a cookie on the client's browser. If the client's browser is not setup to accept the cookie, an alternative mechanism is through a hidden form variable within the form. This hidden form variable is created automatically if you're using the standard Pandorabots response (ie. no customized HTML), but if you create your own customized HTML page, you need to include the marker !CUSTID! somewhere within the form. Without this, the hidden form variable will not be included in your pandorabot's response, and conversations will not be correctly tracked if the client's browser does not accept cookies.

An example showing how to include the marker in a customized HTML file can be seen here.

F.2. How can I show the recent conversation history when using Custom HTML?

The default “Plain Text” appearance of a published bot includes the recent conversation history. When using a Custom HTML file you have complete control over the appearance of the published bot. In order to show the conversation history you have to include some special embedded AIML in your Custom HTML file.

Inserting a <template> element in a Custom HTML file causes the AIML interpreter to evaluate the template in the current bot context (ie with all the predicates and using the current that, and topic contexts). It then inserts the result of evaluating the template into the published HTML page.

Combining this feature with the full power of AIML template processing allows us to create the following Custom HTML fragment which will result in the inclusion of the 4 most recent user inputs and the bot's responses. Just add this code to your Custom HTML file where you want the conversation history to appear.

<template>
   <think>
      <set name="_history_1"><request index="1"/></set>
      <set name="_history_2"><request index="2"/></set>
      <set name="_history_3"><request index="3"/></set>
      <set name="_history_4"><request index="4"/></set>
   </think>
   <condition name="_history_1" value="*">
     <i><b>Human:</b></i> <request index="1"/><br/>
     <i><b><bot name="name"/>:</b></i> <response index="1"/><br/>
     <br/>
   </condition>
   <condition name="_history_2" value="*">
     <i><b>Human:</b></i> <request index="2"/><br/>
     <i><b><bot name="name"/>:</b></i> <response index="2"/><br/>
     <br/>
   </condition>
   <condition name="_history_3" value="*">
     <i><b>Human:</b></i> <request index="3"/><br/>
     <i><b><bot name="name"/>:</b></i> <response index="3"/><br/>
     <br/>
   </condition>
   <condition name="_history_4" value="*">
     <i><b>Human:</b></i> <request index="4"/><br/>
     <i><b><bot name="name"/>:</b></i> <response index="4"/><br/>
     <br/>
   </condition>
</template>

The predicate and condition elements are used to avoid showing blank history elements at the beginning of a conversation. The contents of the template could be trivially changed to change the order of the history (recent to old versus old to recent), the amount of conversation history shown (up to 10 interactions), or the layout of the conversation history. Just remember that within the <template> element everything must be valid AIML - consequently it most be valid XML - so any HTML tags must be XHTML-like. For example, note the <br/> element. Using simply <br> (ie without the /) will not work. (If you use the Pandorabots on-line Custom HTML editor, it will catch this when you try to save your Custom HTML file.)

G. AIML

G.1 Can I change the name of my Pandorabot?

You cannot change the name of the bot as it appears in the list of bots in 'Botmaster Control'. However, you can change the bot's name for the processing of any AIML templates - this is controlled by the value of the 'name' property.

To change this, from 'Botmaster Control', click on 'Edit', change the property 'name' and click on 'Set Bot Properties'. If you then ask your bot its name it should reply with the new name.

H. Technical

H.1 What is a "botid"?

The botid is is that part of the Pandorabot's published URL after 'botid='.

For example, the Divabot linked to from the Pandorabots home page has a published URL of:

http://www.pandorabots.com/pandora/talk?botid=f6d4afd83e34564d
So the botid is:
f6d4afd83e34564d

You can find the published URL of your bot by publishing it in Botmaster Control and then examining the URL of the link to your published bot.

H.2 Is there an API allowing other programs to talk to a Pandorabot?

A client can interact with a Pandorabot by POST'ing to:

http://www.pandorabots.com/pandora/talk-xml

The form variables the client needs to POST are:

  • botid - see H.1 above.
  • input - what you want said to the bot.
  • custid - an ID to track the conversation with a particular customer. This variable is optional. If you don't send a value Pandorabots will return a custid attribute value in the <result> element of the returned XML. Use this in subsequent POST's to continue a conversation.

This will give a text/xml response. For example:

<result status="0" botid="c49b63239e34d1d5" custid="d2228e2eee12d255">
  <input>hello</input>
  <that>Hi there!</that>
</result>
The <input> and <that> elements are named after the corresponding AIML elements for bot input and last response. If there is an error, status will be non-zero and there will be a human readable <message> element included describing the error. For example:
<result status="1" custid="d2228e2eee12d255">
  <input>hello</input>
  <message>Missing botid</message>
</result>

Note that the values POST'd need to be form-urlencoded.

H.3 How can I integrate my Pandorabot into a Flash component?

Using the XML API described above, you can create a Flash component which collects user input and displays your Pandorabot's response. This component can be served directly from your own site. To do this requires programming the Flash control to make the appropriate HTTP request to the Pandorabots server and parse the XML response.

Jamie Durrant has written a very nice tutorial showing exactly how to do this:

http://www.lionhead.com/personal/jdurrant/flashbot/