Forcing Ai to go back to nav mesh when leaves it

what nodes can i use to get that nearest location point on nav mesh?