Yes, funnily enough, it does involve training an AI to be nice - OpenAI says it is dedicating a fifth of its computational resources to developing machine learning techniques to stop superintelligent systems "going rogue."
See All 2396 Episodes of "The Register - Software"