Can we automate triggers on the basis of messages?

Yes, WhatsWey has the feature for triggers.