How to make enemy have different reactions to different attacks

I want the enemy to react differently to different attacks,i.e,play different reaction montages to different attacks ,how do I do this