Making AI go away when not seeing the Player

So far I’ve set up a simple AI where if the AI sees you, it uses the Simple Move to Location to go to you, but I’d like the AI to go away to another location away from the player.

So what I was thinking, is if it was possible to check if the AI isn’t moving and if that statement is true, then perform the action to move him to a random location across the map? Is that possible?

it’s all possible but I’m not quite sure what you want. So if the AI is still it goes somewhere else? why would you want that?

Do you just want the AI to return to a point when he loses sight of the player?