I want to make a chatbot using java, similar to those bots back in the MSN days like cleverchild or whatever his name was. I've figured out how to use program-ab, and how to use wildcards for responses in the aiml files, but I dont know how to add functionality. For example, how would I add a calculator, or maybe the access to some files on my computer? I dont need help on making the code for those functions but just, how do I give the bot some variables, and it would run a function with those variables?
Me: I need to delete files
//The bot would process: _delete files *
Bot: which files?
Me: C://folder/file.doc
//Bot runs function deleteFile(path)