Creating an IM bot is very easy. I created a bot for www.techwhiz.in within 15 minutes.
Add ‘techwhiz@bot.im’ to your messenger and start using it.
How to create instant messenger bot?
- Go to http://www.imified.com
- Create an account (it is free now)
- Open your email and confirm your developer account
- Log in to your imified.com account
- Click on ‘Create a New Bot’
- Enter ‘Bot Name’, ‘Screen Name, and ‘Bot URL’ (Bot URL is the URL to which the requests will be sent. e.g. http://www.techwhiz.in/bot.php)
- In the next screen, you will get a unique bot key (You will need the bot key for developing applications)
- Create a file on your web server and name it as ‘bot.php’. Make sure the bot URL entered by you while creating Bot, points to this file. Enter the following code and save the file. A sample bot im has been created and ready to be tested.
switch ($_REQUEST['step']) {
case 1:
echo "Hi, what’s your name?";
break;
case 2:
echo "Hi " . $_REQUEST['value1'] . ", where do you live?";
break;
case 3:
echo "Well, welcome to this hello world bot, " . $_REQUEST['value1'] . "<br>from " . $_REQUEST['value2'] . ".<reset>";
break;
}
?>
Test im bot
- Log in to ‘Google Talk’
- Add ‘<screen-name>@bot.im’ (e.g. ‘techwhiz@bot.im’)
- Enter ‘hello’
- If you get a reply ‘Hi, what’s your name?’, then your im bot is working
I tested it on Google Talk. It should work on any XAMPP network like Jabber, but I was unable to use it on yahoo, live and aol.







