N8N Tools - LinkedIn Enhanced icon

N8N Tools - LinkedIn Enhanced

Comprehensive LinkedIn Marketing API v2 integration for N8N workflows with B2B marketing and networking features

Posts → Create Comment

AI-generated

Overview

This node enables creating a comment on a LinkedIn post via the LinkedIn Marketing API. It is useful for automating engagement on LinkedIn posts by programmatically adding comments as a specified author (person or organization). Practical scenarios include responding to posts in bulk, managing social media interactions, or integrating LinkedIn commenting into broader marketing workflows.

For example, you can use this node to automatically add a comment to a company’s LinkedIn post whenever a new product update is published, or to reply to user comments with predefined messages.

Properties

Name Meaning
Author ID The LinkedIn ID of the author (person or organization) who will create the comment.
Post ID The LinkedIn ID of the post to which the comment will be added.
Text The text content of the comment to be created. Maximum length is 3000 characters.

Output

The node outputs JSON data representing the response from the LinkedIn API after creating the comment. This typically includes details about the newly created comment such as its ID and metadata confirming successful creation.

No binary data output is produced by this operation.

Dependencies

  • Requires an active subscription and valid API key for the external "N8N Tools API" service.
  • Requires OAuth2 credentials configured for LinkedIn API access.
  • The node internally uses helper classes to interact with LinkedIn's API endpoints.

Troubleshooting

  • Invalid subscription or API key error: If the node throws an error indicating invalid subscription or API key, verify that your API key credential is correct and has the necessary permissions.
  • LinkedIn API errors: Errors related to invalid author or post IDs may occur if these values are incorrect or the authenticated user lacks permission. Double-check the IDs and ensure the author has rights to comment on the post.
  • Text length exceeded: Comments longer than 3000 characters may cause errors; ensure the text input respects this limit.

Links and References

Discussion