Create Comment

notion.create_comment
ActionBusiness appsconnection required

Calls the Notion API with the connection's credentials.

Add a comment to a page, or reply in an existing discussion.

Connection

Required
Yes — the node will not save without one
Auth type
API key
Providers
Notion
Secret shape
the integration token, or {"token": "…"}
Resolved by
config.connection_id, else node.connection_id

Configuration

4 fields, none required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.

FieldTypeRequiredDefaultConstraintsExample
page_id
Id of the page to start a new discussion on.
stringNo———
discussion_id
Id of an existing discussion to reply in, instead of a page id.
stringNo———
text
The comment body as plain text.
stringNo———
rich_text
A ready-made Notion rich-text array, instead of plain 'text'.
arrayNo—array of object—
  • At least one of page_id, discussion_id must be set.
  • At least one of text, rich_text must be set.

Output

One shape.

result

FieldTypeExample
ok
True when Notion created the comment.
booleantrue
comment_id
Id of the new comment.
string—
discussion_id
Id of the discussion it belongs to.
string—
{
  "comment_id": "",
  "discussion_id": "",
  "ok": true
}

Notes

  • Give exactly one of 'page_id' or 'discussion_id'.
  • The integration needs the 'insert comments' capability, which is off by default.

See Create Comment run in a workflow.

In a technical demo we add the Notion connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.