Settings
| Setting | What it is |
|---|---|
| ConnectionRequired | The integration needs the Insert comments capability for this — set it in Notion under the integration's Capabilities. |
| Comment on | "page" or "discussion" |
| Page id | text |
| Discussion id | The List comments node answers a discussion id per thread. |
| CommentRequired | text |
| Show it as | A name of your own beside the comment. Leave it empty for the integration's. |
Technical details
| Key | Value |
|---|---|
connection | texta connection id from `requires.connections` (provider `notion`) |
target | "page" or "discussion", by default "page" |
pageId | textits `{{ }}` must give a string; used when `target` is "page" |
discussionId | textits `{{ }}` must give a string; used when `target` is "discussion" |
text | text |
displayName | textits `{{ }}` must give a string |
Output
| Field | Type |
|---|---|
commentId | string |
discussionId | string |
comment | object |
Sample output, and the expression for each field
- comment
- object"comment"
- commentId"cm0001"
- discussionId"d0001"
Errors
When a step of this node stops a run, the run page shows a code. Look it up:
Example step
The step as a flow file holds it. Replace each value in <…>.
{
"config": {
"connection": "<connection id>",
"discussionId": "",
"displayName": "",
"pageId": "",
"target": "page",
"text": "<comment>"
},
"label": "Add comment",
"type": "notion.createComment",
"version": 1
}