What I want to do is build a simple bot which sends me a set of information stored in database to my messanger chat window [Chatting services are gTalk, Yahoo and other commonly used chating products] Also, it should be capable of accepting few predefined commands and replying them.
Is there any opensource code available for this?
Look up AIML (Artificial Intelligence Markup Language), it's been around a number of years and it's pretty well defined and flexible for simple stuff. You can also do pretty sophisticated stuff with all sorts of recursive templates and the results are pretty decent (as far as dumb bots go).
There's a bunch of open sdk projects that use this markup language, that will take care of matching your input patterns to a given reply stored in the xml files you'll have to configure with templates.
I worked on a messenger bot a few years back in Java using AIML for storing patterns (there are plenty APIs if you follow those links above) and used the incesoft msn bot platform. Worked out just fine.
Hope it helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With