JustFlows

Elsa Workflows / Workflows

Comment workflows

While Elsa is active, the content editor has a Workflow section for each page or post, drafts included. Choose a published workflow there, and it runs whenever a comment on that entry is stored as pending or approved. Spam and trashed comments do not start it. Design opens the workflow in Studio.

The workflow is queued with this input, and the comment id is the correlation id:

json
{
  "contentId": "0192f100-1a2b-7c3d-8e4f-5a6b7c8d9e0f",
  "commentId": "0192f2aa-…",
  "parentId": "",
  "status": "pending"
}

Elsa is called after the comment is saved, so a slow or unreachable server never holds up the visitor.