To make it standard and open we created two objects, the WorkFeed and WorkFeedItem. To create your own type of messages in the workfeed you can extend the WorkFeedItem or use on of the existing WorkFeedItem objects.
WorkFeed Objects Source code documentation.