Comment Submitted
Trigger a workflow when a comment is submitted on your site.
Overview
The Comment Submitted trigger fires when a new comment is posted on your WordPress site. This works for comments on posts, pages, and custom post types that support comments.
When It Fires
- Visitor submits a comment (pending moderation)
- Comment is approved (if moderation required)
- Logged-in user posts a comment
- Admin posts a comment
- Reply to an existing comment
Configuration
| Field | Type | Required | Description |
|---|---|---|---|
| Post Type | select | No | Filter by post type |
| Comment Status | select | No | Filter by status (approved, pending) |
| Is Reply | boolean | No | Only trigger on replies |
Available Data
Comment Information
| Variable | Type | Description |
|---|---|---|
{{Trigger.comment_id}} | integer | Comment ID |
{{Trigger.comment_content}} | string | Comment text |
{{Trigger.comment_date}} | string | Submission timestamp |
{{Trigger.comment_status}} | string | approved, pending, spam |
{{Trigger.comment_type}} | string | Comment type |
{{Trigger.comment_parent}} | integer | Parent comment ID (for replies) |
Author Information
| Variable | Type | Description |
|---|---|---|
{{Trigger.author.name}} | string | Commenter’s name |
{{Trigger.author.email}} | string | Commenter’s email |
{{Trigger.author.url}} | string | Commenter’s website |
{{Trigger.author.ip}} | string | IP address |
{{Trigger.author.user_id}} | integer | User ID (if logged in, else 0) |
Post Information
| Variable | Type | Description |
|---|---|---|
{{Trigger.post.id}} | integer | Post ID |
{{Trigger.post.title}} | string | Post title |
{{Trigger.post.url}} | string | Post URL |
{{Trigger.post.author_email}} | string | Post author’s email |
Example Workflows
Comment Notification
Notify post author of new comments:
- Trigger: Comment Submitted
- Status: approved
- Action: Send Email
- To:
{{Trigger.post.author_email}} - Subject:
New comment on "{{Trigger.post.title}}" - Body: Comment preview with link to respond
- To:
Reply Notification
Notify when someone replies to a comment:
- Trigger: Comment Submitted
- Is Reply: true
- Action: Send Email
- To: Parent comment author email
- Subject:
Someone replied to your comment - Body: Reply content and link to thread
Spam Detection Alert
Alert admins of potential spam:
- Trigger: Comment Submitted
- Status: pending
- Condition: Content contains suspicious keywords
- Action: Send Email
- To:
admin@yoursite.com - Subject:
Comment requires review
- To:
Engagement Tracking
Log comments to analytics:
- Trigger: Comment Submitted
- Status: approved
- Action: Airtable - Create Record
- Table: Engagement Log
- Post:
{{Trigger.post.title}} - Commenter:
{{Trigger.author.name}} - Date:
{{Trigger.comment_date}}
Comment Statuses
| Status | Description |
|---|---|
approved | Publicly visible |
pending | Awaiting moderation |
spam | Marked as spam |
trash | Deleted/trashed |
Best Practices
- Filter by status to avoid spam triggers
- Notify post authors promptly for engagement
- Set up reply notifications to encourage conversation
- Use for community engagement metrics