How can I make the AI always take the shortest path?

Thanks, but the green area in the picture is the navmesh, and there is already a clear path.