We trained an artificial intelligence (AI) system to recommend different interactions and connections between humans playing a group game together. Through trial and error, the AI system learned to take an encouraging approach to uncooperative individuals, keeping them engaged with the group and boosting cooperation levels for everyone.