comment.created is sent to the author of a post when another profile publishes a comment on that post.
The event covers top-level comments and nested comments. For a nested comment, the embedded comment’s parent_comment_id identifies the comment being replied to.
Delivery target
The envelope’sprofile_id is the profile that authored the post. workspace_id is the workspace that owns that profile.
No event is sent when the post author comments on their own post.
Data object
data contains exactly one field:
data.comment fields
Example delivery
This example represents a nested comment. A top-level comment hasparent_comment_id: null.
Retrieve related resources
The new comment is already available asdata.comment. Retrieve the post and current discussion only when needed:
Respond as the post author
Reply directly to the new comment:profile_id and grant comments:write, comments:all, all:write, or all:all.
Relationship to comment.reply
If the new comment directly replies to a comment written by the post author, that profile receives the more specific comment.reply event instead of a duplicate comment.created event.