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

FieldTypeRequiredDescription
Post TypeselectNoFilter by post type
Comment StatusselectNoFilter by status (approved, pending)
Is ReplybooleanNoOnly trigger on replies

Available Data

Comment Information

VariableTypeDescription
{{Trigger.comment_id}}integerComment ID
{{Trigger.comment_content}}stringComment text
{{Trigger.comment_date}}stringSubmission timestamp
{{Trigger.comment_status}}stringapproved, pending, spam
{{Trigger.comment_type}}stringComment type
{{Trigger.comment_parent}}integerParent comment ID (for replies)

Author Information

VariableTypeDescription
{{Trigger.author.name}}stringCommenter’s name
{{Trigger.author.email}}stringCommenter’s email
{{Trigger.author.url}}stringCommenter’s website
{{Trigger.author.ip}}stringIP address
{{Trigger.author.user_id}}integerUser ID (if logged in, else 0)

Post Information

VariableTypeDescription
{{Trigger.post.id}}integerPost ID
{{Trigger.post.title}}stringPost title
{{Trigger.post.url}}stringPost URL
{{Trigger.post.author_email}}stringPost author’s email

Example Workflows

Comment Notification

Notify post author of new comments:

  1. Trigger: Comment Submitted
    • Status: approved
  2. Action: Send Email
    • To: {{Trigger.post.author_email}}
    • Subject: New comment on "{{Trigger.post.title}}"
    • Body: Comment preview with link to respond

Reply Notification

Notify when someone replies to a comment:

  1. Trigger: Comment Submitted
    • Is Reply: true
  2. 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:

  1. Trigger: Comment Submitted
    • Status: pending
  2. Condition: Content contains suspicious keywords
  3. Action: Send Email
    • To: admin@yoursite.com
    • Subject: Comment requires review

Engagement Tracking

Log comments to analytics:

  1. Trigger: Comment Submitted
    • Status: approved
  2. Action: Airtable - Create Record
    • Table: Engagement Log
    • Post: {{Trigger.post.title}}
    • Commenter: {{Trigger.author.name}}
    • Date: {{Trigger.comment_date}}

Comment Statuses

StatusDescription
approvedPublicly visible
pendingAwaiting moderation
spamMarked as spam
trashDeleted/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