The sunny and the dark side of AI