The emergence of ChatGPT and now GPT-4, the artificial intelligence interface from OpenAI that will chat with you, answer questions and passably write a high school term paper, is both a quirky diversion and a harbinger of how technology is changing the way we live in the world.

After reading a report in The New York Times by a writer who said a Microsoft chatbot professed its love for him and suggested he leave his wife, I wanted to learn more about how AI works and what, if anything is being done to give it a moral compass.