As a marketing professional, I mastered the art of writing for algorithms. As a novelist trying to sell my books, it’s more complicated.