Actions13
Overview
The "Post Comment" → "Create" operation of the ETReddit node allows users to programmatically add a comment to a specific Reddit post. This is useful for automating engagement, moderating discussions, or integrating Reddit interactions into broader workflows (e.g., posting automated replies based on triggers from other systems).
Example scenarios:
- Automatically responding to new posts in a subreddit with a welcome message.
- Posting status updates or notifications as comments under relevant threads.
- Integrating Reddit commenting into customer support or feedback loops.
Properties
| Name | Type | Meaning |
|---|---|---|
| Post ID | String | ID of the Reddit post to which the comment will be added. Found in the post URL after /comments/. |
| Comment Text | String | The content of the comment to post. Supports Markdown formatting. |
Output
The output will contain a JSON object representing the result of the comment creation. While the exact structure depends on the Reddit API response, it typically includes fields such as:
id: The unique identifier of the created comment.body: The text of the comment.link_id: The ID of the post the comment was added to.author: The username of the commenter.created_utc: Timestamp of when the comment was created.
Other metadata returned by Reddit may also be included.
Dependencies
- Reddit OAuth2 API credentials: The node requires authentication via Reddit's OAuth2. You must configure the
redditOAuth2Apicredential in n8n. - Reddit account: A valid Reddit account with permission to comment on the target post/subreddit.
Troubleshooting
Common issues:
- Invalid Post ID: If the provided Post ID does not exist or is incorrect, the node will fail to create the comment.
- Authentication errors: Missing or invalid Reddit OAuth2 credentials will prevent the node from posting comments.
- Rate limits: Reddit enforces rate limits; excessive commenting may result in temporary bans or errors.
- Insufficient permissions: If the Reddit account lacks permission to comment in the target subreddit, an error will occur.
Common error messages and resolutions:
"INVALID_POST_ID": Double-check the Post ID from the Reddit post URL."AUTHENTICATION_FAILED": Ensure your Reddit OAuth2 credentials are correctly set up in n8n."RATELIMIT": Wait before retrying or reduce the frequency of comment creation."PERMISSION_DENIED": Make sure your Reddit account can comment in the specified subreddit.