AI should go into patrol mode when the player isn't in view, and go into attack mode when he is. When sufficiently damaged, AI should go into flee mode.
In patrol mode, the AI simply walks back and forth along a platform until he reaches the end or hits an obstacle. (Already implemented.)
Attack mode should involve ranged attacks while approaching player, and melee attacks when close enough.
In flee mode, the AI should run backwards shooting the player while trying to get away.
If an AI is in flee mode and another platform is adjacent, the AI should attempt to jump to it.
Having the AI go for help would be nice but possibly difficult.