I think there's no AI in the quests and them dodging aoes are simply a programming to respond to boss dances. Frankly I noticed this during the SCH quests when the Npcs kept getting in my way with splash markers, which made me question if it was AI or just them programming the boss to behave in a pattern with NPC then responding and creating the illusion of AI.

Ofc I'll be glad if proven wrong