I just used an mobile chat application 'Nimbuzz', where I see that their Chat Bot is very good. Whatever I say, it gives me relevant answer. How I can make such robot in PHP? What should be the correct approach?

People say that computer don't understand english, but in this situation, they did.