Chatbots have been a quirky yet useful online tool for some time. The rise of AI-based language models, such as GPT-4 and the ChatGPT chatbot it powers, has given the human-bot-human interface a new flare. But how do AI chatbots simulate human-like conversations? How can a computer simulate conversations with people?