Patent attributes
In one embodiment, a method includes detecting a triggering event for sending a notification to a user of an online social network. The method may also include accessing multiple of versions of the notification. Each version may include one or more template elements of a particular content type. The method may also access user data associated with the user that includes data associated with one or more relationships of the user on the online social network or data associated with actions performed by the user. The method may also include determining a score for each version representing a likelihood of the corresponding version being consumed by the user. The method may also include generating a personalized notification by using the selected version of the notification and replacing each of the template elements of the selected version of the notification with content of the content type associated with the template element.