Make sure you are can levitated if able (usually reduces distance you get moved, if it's a PBAE/Targetted AE you should position in a corner/enclosed space as able to prevent being thrown out of casting ranges etc/reduces melee re-engage time.
If it's a directional spell, you need to work out a pull direction/make sure it's not facing the direction the AE goes to hit casters.
For macros, make sure return to camp/chase options are on etc, sometimes a smaller camp radius is needed to help ensure they return and don't end up in limbo - alternatively you can make a come to me movement key for casters to make them move back in range outside of the macro movements.
Depending on the frequency of the AE you can try and time avoidance type abilities for when the AE fires you have a slight pause in time the tank requires healing from melee damage.
I personally used to turn off camp options/chase options on bots and just used a hot key to move them back to me as a tank either a mq2advpath or mq2nav movement.