Skip to main content

collected_records_comment_create

Internal beta โ€” config shape is being migrated

The Automation API is an internal beta and is not released yet โ€” endpoints and payloads may change or be withdrawn without notice. This action's config is being migrated to a typed schema; the fields below reflect that in-progress shape. Always read the authoritative, live shape from GET /v1/automation/meta/action before building against it.

Comment on collected records โ€” adds a comment to each record in a collection. group: "action". No specific trigger context is required.

Part of the Record collections family. This page documents the typed config; for how an action sits inside an automation definition, see Actions and Action examples.

Configโ€‹

KeyTypeRequiredDescription
comment_contenttemplate valueyesComment body.
record_collectionreferencenoReference to a record collection variable produced by an earlier action. Omitted โ†’ the collection bound by the enclosing for-loop.
author_idinteger | referencenoUser the comment is attributed to โ€” a literal user id or a variable reference. Omitted โ†’ the automation itself.
trigger_webhooksbooleannoWhether the mutation fires outbound webhooks.
trigger_other_flowsbooleannoWhether the mutation triggers other automations.
silentbooleannoWhether the mutation is silent (no notifications).

Exampleโ€‹

An action entry inside an automation definition's actions[]:

{
"type": "collected_records_comment_create",
"config": {
"record_collection": { "kind": "variable", "source": "action", "action_type": "record_collection", "app_id": 123 },
"comment_content": ["Reviewed by automation on record ", { "kind": "variable", "source": "meta", "meta_type": "app_record_id" }],
"silent": true
}
}

Validation & behaviorโ€‹

  • comment_content is the only required member; every other member is optional and falls back to its internal default.
  • This is a consumer of a record collection: record_collection references a collection variable produced by an earlier action. When omitted, the action targets the collection bound by its enclosing for-loop, so it must run inside one.
  • With author_id omitted, the comment is attributed to the automation itself.
  • trigger_webhooks, trigger_other_flows, and silent are the shared mutation-control members; omitted = the internal default.

See alsoโ€‹