The Evolution of AI-Based Chatbots: From Rule-Based to Intelligent Conversational Agents