The goal of keeping users viewing and watching online content by learning what they spend time on and then feeding them more of the same. User engagement on social media keeps users online longer especially by promoting negative emotions such as hate and fear, which is known to keep people more engaged because they trigger a stronger response in the brain. To ensure user engagement, AI is also used to recognize human patterns. See
social media and
AI in a nutshell.