Create Comment
reddit.create_comment
ActionChat & messagingconnection required
Calls the Reddit API with the connection's credentials.
Reply to a post or to another comment.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- OAuth 2.0
- Providers
- Secret shape
- {"client_id": "…", "client_secret": "…", "refresh_token": "…"}
- Config it needs
- user_agent, subreddit
- Resolved by
- config.connection_id, else node.connection_id
Configuration
2 fields, 2 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
thing_id Fullname of the post or comment to act on, such as 't3_abc123' for a post or 't1_def456' for a comment. | string | Yes | — | — | t3_abc123 |
text Markdown body of the comment. | string | Yes | — | — | — |
Example configuration
Every value below is the contract’s own example or default — nothing invented.
{
"thing_id": "t3_abc123"
}Output
One shape.
result
| Field | Type | Example |
|---|---|---|
comment The comment Reddit created. | object | — |
id Id of the new comment, without its 't1_' prefix. | string | — |
name Fullname of the new comment, such as 't1_def456'. | string | — |
errors Reddit's api_type=json error rows, each with a code, message and field. Empty when Reddit accepted the write without complaint. | array | — |
{
"comment": {},
"errors": [],
"id": "",
"name": ""
}See Create Comment run in a workflow.
In a technical demo we add the Reddit connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.