Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.chamelio.ai/llms.txt

Use this file to discover all available pages before exploring further.

Event

flows.tasks.commented
This event fires when any participant adds a comment to a task. Comments can be added at any point during task execution and are visible to all participants.

Payload Example

{
  "event": "flows.tasks.commented",
  "event_id": "evt_01HXYZBB22334455",
  "organization_id": "org_abc123",
  "timestamp": "2025-06-06T11:05:00Z",
  "data": {
    "task_id": "task_def456",
    "workflow_id": "wf_contract_review",
    "workflow_name": "Contract Review",
    "comment_id": "comment_ghi789",
    "comment_text": "Please update the liability cap in section 8 before I can approve.",
    "commented_by": "legal@example.com",
    "current_step": {
      "step_id": "step_2",
      "step_name": "Legal Approval"
    }
  }
}

Payload Fields

Envelope

FieldTypeDescription
eventstringAlways flows.tasks.commented
event_idstringUnique delivery ID — use to deduplicate retries
organization_idstringID of the organization
timestampstringISO 8601 UTC timestamp of the event
dataobjectEvent-specific payload (see below)

Data Object

FieldTypeDescription
task_idstringUnique identifier of the task
workflow_idstringID of the parent workflow
workflow_namestringHuman-readable workflow name
comment_idstringUnique identifier of the comment
comment_textstringText content of the comment
commented_bystringEmail of the user who posted the comment
current_stepobjectThe step the task was on when the comment was posted

Current Step Object

FieldTypeDescription
step_idstringUnique identifier of the step
step_namestringHuman-readable step name