How to make AI targetLocation of another AI?

Are the AI and the Friendly of different classes?

Is there only one AI in the world?

If yes to both questions, then instead of “Get All Actors of Class” use “Get Actor of Class”, and connect that directly to Get Location.