In this series of articles, I am about to keep a note on my recent trials to program AIML using C#. AIML, or Artificial Intelligence Markup Language, is an XML dialect for creating natural language software agents. With AIML, you can design your own soft robot with ease!
- Create a library project and add a class called CuteRobot. The reason for create a library is to reuse such robot code later. You may however directly put it in the main application as you like.
- You need:
- Create a console application, add reference to the above library project, in the Main class:
Also copy the aiml and config folders to the bin folder of the console application’s bin folder. Now run the application, you might see:
Ha! It worked! When you ask “hello, what is your name?”, the robot answers: “Hello there. My name is Unknown”! Smart? Cool?
Even though it is weird that the robot says his name is “Unknown”, it worked! In the next blog, I will focus on how to customize the robot’s name and other attributes.