I want to add auto reply, how to make it?

Hi,

As I said in the title I want to add a function that can auto reply depends on the message spark got. But I am not very clear about the architecture of spark ? Could you help me? How to make it ?

HeQi

Regards