Tag Archives: Programming

Get started with AIML C# programming (I): Just say hello to the robot

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.
public class CuteRobot
    const string UserId = "CityU.Scm.David";
    private Bot AimlBot;
    private User myUser;

    public CuteRobot()
        AimlBot = new Bot();
        myUser = new User(UserId, AimlBot);

    // Loads all the AIML files in the \AIML folder         
    public void Initialize()
        AimlBot.isAcceptingUserInput = false;
        AimlBot.isAcceptingUserInput = true;

    // Given an input string, finds a response using AIMLbot lib
    public String getOutput(String input)
        Request r = new Request(input, myUser, AimlBot);
        Result res = AimlBot.Chat(r);
        return (res.Output);

Read the rest of this entry »


Posted by on March 8, 2014 in AI, Programming


Tags: , , , , , , , , ,

2012 in review

The stats helper monkeys prepared a 2012 annual report for this blog.

Here’s an excerpt:

19,000 people fit into the new Barclays Center to see Jay-Z perform. This blog was viewed about 69,000 times in 2012. If it were a concert at the Barclays Center, it would take about 4 sold-out performances for that many people to see it.

Click here to see the complete report.

Leave a comment

Posted by on January 9, 2013 in General


Tags: , , , , , , , , , , , , , , , , , ,