Getting AI to run away from an actor

I’m trying to get the AI in my game to run away from an entity, but I’m not entirely sure how to do it. Can I rack someone’s brain?

Has anyone else had success with this?