Change AI controller during the game

I make an NPC with three levels of condition when taking damage from a player.
At the third level, I want his AI controller to change to another. How to implement this?

(sorry for my bad eng)