Artificial intelligence can write an email, generate an image, recognize a face in a photo, recommend a movie, translate a sentence, help write computer code, and answer questions about almost anything.