Having a spawned ai patrol from a spline offset to be around the enemy

thank you!

so i would like the ai to know if the ai is on the left, right, front or back of the boss to assign the correct vector offset, how would I do that

i tried google but got lost haha