Thanks for the response. By "group" I mean grouping messages by a conversation identifier in the Notification Center, similar to the grouping behaviour in Messages.app. Looks like I missed setting the thread-id key, that did the trick!
Topic:
App & System Services
SubTopic:
Notifications