Artificial intelligence is storming the last bastion of human creativity—the art of storytelling, with algorithms now capable of generating novels,…