Chatbots work on 2 major principles, one is adherence to a series of predefined rules, and another is using AI to interpret queries and perform the necessary action.