The rise of artificial intelligence comes with risks and benefits for the mental health of humans, requiring a thoughtful, mindful way forward.