Discuss Kit icon

Discuss Kit

Consume Discuss Kit API

Overview

This node integrates with the Discuss Kit API to manage comments related to various objects within a discussion platform. Specifically, the Comment - Create operation allows users to add new comments to a specified object by providing the comment content and the target object's ID.

Common scenarios where this node is beneficial include:

  • Automatically adding user feedback or notes to blog posts, discussions, or documentation pages.
  • Creating threaded conversations or annotations on specific items in a collaborative environment.
  • Integrating external systems that generate comments or reviews into the Discuss Kit platform.

For example, you could use this node to programmatically post a comment on a blog post when a certain event occurs, such as a new user registration or a product update notification.

Properties

Name Meaning
Content The textual content of the comment to be created (a JSON string).
Object ID The unique identifier of the object (e.g., blog post, discussion, document) to comment on.

Output

The output of the node is a JSON object representing the newly created comment as returned by the Discuss Kit API. This typically includes fields such as the comment's ID, content, creation timestamp, associated object details, and possibly metadata like author information.

No binary data output is produced by this operation.

Dependencies

  • Requires access to the Discuss Kit API endpoint.
  • Needs an API authentication token or key configured in n8n credentials to authorize requests.
  • Utilizes a helper function to make HTTP requests to the Discuss Kit API (blockletComponentApiRequest).
  • No additional external services are required beyond the Discuss Kit API.

Troubleshooting

  • Missing or invalid Object ID: Ensure the Object ID property is correctly set to the target object's valid identifier; otherwise, the API will reject the request.
  • Empty or malformed Content: The Content must be a non-empty string formatted as expected by the API. Invalid content may cause errors.
  • Authentication errors: Verify that the API key or token is properly configured and has sufficient permissions to create comments.
  • API rate limits or network issues: Temporary failures might occur due to rate limiting or connectivity problems; retrying after some time can help.
  • Error messages from the API: These will typically be passed through; check the error message for clues such as "Unauthorized," "Not Found," or "Bad Request" and adjust inputs accordingly.

Links and References

Discussion