Chatbots gather data from around the internet and information inputted by users of the services themselves. This includes APIs, social media, online databases and websites. By drawing upon varied sources, chatbots use AI to work out the most useful and probable answer to any query inputted by a user.