skip to content

Anyone can easily add the bot to their site using AJAX.

Step 1 - Add the main javascript to your page. In the page <HEAD> add this line:

<script type='text/javascript' src=''></script>

You might not want to run the script from an external site. That's fine, just download it from here and use this line instead:

<script type='text/javascript' src='/my-path-to-wherever-the-file-is/ajax-iniaes.js'></script>

Edit accordingly.

Step 2 - Edit the <BODY> tag. Edit (or replace) your opening body tag, so it looks like so:

<body onload="document.forms.iniaes.text.focus();">

You can have other garbage in there, but you want to at least add the onload="document.forms.iniaes.text.focus();".

Step 3 - Add a space for the bot to reply. Wherever you want to see the bot's responses, add:

<span name="botreply" id="botreply"></span>

Step 4 - Add the form so users can talk back. Wherever you want the form to go, add:

<form action="javascript:;" name="iniaes">
<strong>Reply:</strong> <input name="text" type="text" autocomplete="off" size="50" onblur="this.focus()";>
<input type="text" id="fixIE" style="WIDTH: 0px; HEIGHT: 0px; BORDER: 0px">
<input type="submit" name="reply" value="Reply" onclick="javascript:get(this.parentNode); clearReply();">

Save your page and you've now got a working bot. If you want to see an example page in action, check out the sample AJAX bot client.