The component “AI Nav Mesh” is the one that manages the navigation of the AI through the scene using navmesh, making them to move to a certain position given a target transform to reach.
It has options to configure how close the AI will move toward each type of target, being an enemy, a friend or an object.
It also has events to trigger on different situations, according to what you need.