Step 4: Linking to your bot
On your hard drive, look for the file
call that you downloaded in
Part 1.
You'll need to alter this file by replacing the current bot id and botcust2 settings with the values you found in the last Step, like this:
- Load the original file call from your computer into Notepad
- Carefully alter BOTH sections of the script which say:
botid=a1a50c598e34cbe
by deleting the characters after botid= and replacing them with your bot's id (which you noted down or copied in the last Step)
- Now carefully alter the section that says:
botcust2=a14b35641e12eebd
by deleting the characters after botcust2= and replacing them with your botcust2 value (which you noted down or copied in the last Step)
NB be VERY careful how you do this, don't press ENTER or change any other characters and make sure you alter BOTH sections!
- Now click File on Notepad's menu bar then Save to save the file
NB it is VERY IMPORTANT to follow these instructions exactly -
only use Notepad and Save - DO NOT use another text editor or 'Save As' because you might mess up the hidden line feed characters in the file, which won't work when you upload it (Unix is VERY fussy about its line feeds - I know I've wasted hours on this!!!).
Now upload the amended file to your cg-bin directory (see
Step 1 for details), replacing the one that's there and making sure you set the new file's permission to 755.
Testing the link
Now it's time to test it out in the sample world page you uploaded to your site. This is called
testbot.htm. Type the address in your web browser e.g.
www.yoursite.com/bot/testbot.htm
where
yoursite.com is your site's address and
bot is the folder you saved the main files in.
When the page has loaded, try asking the bot a question by typing it in starting with B: e.g. B: How are you? You should get an answer in the chat line starting with Bot Says: which is the last response from your new bot on your pandorabots page e.g. Bot Says: Hi. This can take a few seconds especially if the net is busy.
If you don't get an answer check whether Adobe's chat server is working by clicking:

and checking whether there are any names in the User Box that pops up. If it's blank, try refreshing the web page (F5) - if that doesn't work you'll have to try again another time when the chat server is working, sorry!
If the chat server is working and you still can't get a response, try checking the call file again to make sure you've altered it correctly for your bot's id (it might be worth
downloading the original file from
Step 1 again and altering that).
If you're still having problems then pay a visit to my
forum - there's a topic called Using Intelligent Chat Bots in Atmosphere where you can find out more information and post any questions you may have.