Serialize agents and users in notifications