ai move to an animation

hi guys i have a wandering ai and i want it to go to a triggered animation could someone tell me how to do this please ?

anim blueprint, then make some boolean variable that triggers anim you want.
Set that variable from btree, to ai controller to controlled pawn then finally to anim blueprint.
Quite few hoops and loops.