Initially, chatbots were built using rule-based systems that relied on pre-defined scripts and decision trees. They operated based on specific keywords and programmed responses. If a user’s input matched a predefined rule, the chatbot would generate a response accordingly. However, these systems had...