How do chatbots work? An overview of the architecture of a chatbot