I am interested to make a chatbot. My script is currently working fine with imified.com bot. however imified is down almost everday. so i am looking for my own solution. 
during my findings, I have found (through this site) openfire and I have configured it and it is working fine even with gmails users. 
but i am still not getting what I need. 
I need to request a URL (with the chat scripts and some other user data something like imified provides) when each gmail or other external users send me a message. let me explain. 
my openfire is hosted and working for mybot.com and my id is: autobot@mybot.com. 
now a gmail user say client@gmail.com added me in his gtalk/piding and we can communicate each other. he can send me message and I can reply. 
but I need a robot instead of me. when client@gmail.com (and any other user) sends me a message, I need to request a URL so that i can dynamically generate response based on the message he/she sent. 
in which way I should go for achieving this? Is there any way to customize openfire to do so? 
or should I make a php/python (i need to learn python though) script that will listen to xmpp ports and generate responses? if so, any helpful scripts that may guide me? 
bunch of thanks for reading it and thanks in advance for providing any response.
The OpenFire understand XMPP, what you need is XMPP library/API (like XMPP4R if you are Rubyist). Using it your app will login to OpenFire (by sending gmail/yahoo credentials) and others will see you as online. But when they will reply to you, you will be notified in your application. Where you can receive the message, process it, and send response (by writing a required program/logic).
We have done it in our SMS Chat application with Gmail/Yahoo messenger friends/contacts.
XMPP, openfire and bot issue