Author and screenwriter Horowitz talks to Prudence Wade about ChatGPT and the enduring appeal of murder mysteries