Changing Animations / Changing Location

Hey, i am making a mobile game, and i cant get my ai´s to walk arround randomly and i cant get an animation change to work
i want my ai to walk arround on my nav mesh randomly, when reaching the random end point he should change from a walking animation to an idle animation, and repeat that
right now, my ai walks to a random location while playing the walking animation, but when the ai stops it does not switch to the idle animation and does not choose a new random location to walk to

i hope you can help me
thank you :slight_smile: