getting sets of items in a data set that regularly take place together making use of association rule mining.
These algorithms use machine learning and natural language processing, with the bots learning from documents https://mazkingin.com/machine-learning-with-python/