Implementing the rule-based chatbot