Better Ai Path?

its might be good idea but i wanted something that not only goes from a to b
i mean something that can generate path while playtime
example:
random roaming
follow/chase player
etc…

the path can be good but is it generatable like the ‘navemesh’? (sorry for bad english, i tried)