> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tracecat.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Comment triggers

> Run Tracecat workflows from case comments and replies: parse comment text, route directives to actions and agents, and bridge analyst chat into automation.

## Overview

You can start a workflow from a case comment or reply by selecting it in the comment composer.

<img src="https://mintcdn.com/tracecat/9IEnC4OWdnuB3EvN/img/triggers/comment-triggers.png?fit=max&auto=format&n=9IEnC4OWdnuB3EvN&q=85&s=bc54a0c2b83d8d3d4af82cccbf3f191a" alt="Comment trigger" width="3432" height="1814" data-path="img/triggers/comment-triggers.png" />

## Trigger payload

Comment trigger data is available under `${{ TRIGGER }}`.

Fields:

* `${{ TRIGGER.case_id }}`: case ID.
* `${{ TRIGGER.comment_id }}`: comment ID.
* `${{ TRIGGER.parent_id }}`: parent comment ID.
* `${{ TRIGGER.text }}`: comment text.
* `${{ TRIGGER.triggered_by }}`: actor details.
* `${{ TRIGGER.event }}`: event details.
* `${{ TRIGGER.tags }}`: case tags.

Example payload:

```json theme={null}
{
  "case_id": "case_01abc",
  "comment_id": "cmt_01abc",
  "parent_id": null,
  "text": "Escalating to the IAM workflow.",
  "workspace_id": "ws_01abc",
  "triggered_by": {
    "type": "user",
    "user_id": "usr_01abc",
    "service_id": null
  },
  "event": {
    "id": "evt_01abc",
    "type": "comment_created",
    "created_at": "2026-03-19T14:22:00+00:00",
    "user_id": "usr_01abc"
  },
  "tags": [
    {
      "id": "tag_01abc",
      "ref": "triage",
      "name": "Triage",
      "color": null
    }
  ]
}
```
