How to create Always Online IM auto responder using Imified
When I switched my email ID, I switched my Gtalk ID also. I don’t wanted to use the old ID just for IM. But how to tell everyone about it? My friends list on Gtalk is very huge! I Googled for available options to set auto responder for my old ID. I come across answer.im which just does the job but went down after just few hours. Then I found another desktop application to set auto responder, but this works only when your computer is on. So, I wasn’t satisfied with both of them.
Imified is a free service which provides you hosted IM bots. User can write it’s behavior in his favorite server side language like PHP. So, following are few things you must know/have to complete this Auto Responder Bot:
- Imified account, off course you can get one at imified.com if you don’t have.
- Web Space to put your IM end point script (Ex: PHP File). There are few free hosting providers which you can make use of.
- Knowledge of a server side scripting language, not must, but if you know, you can add more functionality. I will give the basic PHP code in this tutorial.
Now that you have an Imified account, create a new bot clicking on “Create New Bot”. Give your bot a name & select a bot.im ID, both of these are not important since you are going to use this for personal use on your existing Gtalk/MSN/Yahoo/AIM ID. But “Bot URL” is important here, you need to specify end point script file path which will be accessed whenever somebody pings your ID. In my case, I placed this file at http://prashanth.net/bot.php.
Once your Bot is created, you can see options to add other networks at the bottom. Select the network which you want to set the auto responder, here I am opting for Gtalk. Just enter username, password, nickname and click activate.
Now your bot is active, but we haven’t created our end point script yet, so bot still don’t know what to respond if somebody pings it! So the basic PHP script for auto responder is as follows (which is placed at http://prashanth.net/bot.php) :
<?php
echo “Hey, I am no longer available on this ID. Please add me as prashanth@prashanth.net on your Gtalk to chat with me. Thanks, Prashanth”;
?>
Just open a text editor, like notepad, copy/paste the above code & save it as bot.php, upload it to your server. Make sure you upload it to the same path you gave to Imified in Bot URL field. This is very basic script to enable auto responder, I guess which is just enough. Imified passes various variables to this page through GET which you can make use of to write more interactive auto responder. Go through Imified API documentation for more on it.
So our always ON (24X7!!!) auto responder is up!
Update: As Adam said in comment section, user need not to use any scripting language until unless he wants to make use of variables passed by the Bot. So, for this purpose, we can simply use a text (.txt) file instead of PHP.
Related Readings
Related posts:
- Sbot: Perform Google, Yahoo, Bing & Twitter search right from your IM
- Enabling multiple logging in for Yahoo Messenger & Gtalk
- Microsoft offers 5GB of online space to store your files |Skydrive
- Life is so much organized with good personal domain name & Google Apps
- Create professionally looking videos from your photos | Animoto
Not found what you are looking for? Try Searching!
Great idea, we love it.
You don’t even need to use PHP. Just a simple text file that contains your autoresponse message will do. Save your server the trouble of running the PHP script. And there’s LOTS of web hosts out there that will host a text file for you for free.
@Adam
Wow!! I didn’t know that!
Using a text file makes hell lot easier for novice user!!
Great Job
Is it possible to pass your gtalk chats to imified.com???
Nice tip Prashanth.
Got a similar bot working for myself in couple of minutes!
For every question I’ve, you come up with wonderful solutions… way to go buddy…
@Deepak – Nice, good to see this post is useful to many
@Prashanth – hehehe, so you landed up here searching on Google??
@ Adam Kalsey
Hi Adam,
can u tell me how to use text file?, i did the same but m getting error
“Bot connection failed”
i have uploaded one text file on my freewebs.com account
& the same is configured as given here..
also how to pass text param from other users IM window to our php file (incase we have).
Regards
Zingo
This is very useful. Instead of nagging everyone in my list whenever I change my ID, I can let them find that out when they decide to contact me.
Lilia Gephardt @ Custom servers