Stream Chat icon

Stream Chat

Server-side Stream Chat operations

Overview

The node performs server-side moderation operations for a chat platform, specifically handling the review of moderation flags. It allows users to update the status of a flagged item (such as a message or user) by marking it as reviewed, pending, or rejected. This is useful in content moderation workflows where flagged content needs to be assessed and its status updated accordingly.

Practical examples include:

  • Marking a reported message as reviewed after manual inspection.
  • Setting a flag back to pending if further investigation is needed.
  • Rejecting a flag if the reported content does not violate any rules.

This operation helps maintain community standards by managing flagged content efficiently.

Properties

Name Meaning
Flag ID The unique identifier of the moderation flag that you want to review.
Review Action The action to take on the flag during review. Options: "Mark Reviewed", "Mark Pending", "Mark Rejected".

Output

The output JSON contains the result of the flag review operation. It typically includes details about the updated flag status after applying the chosen review action. The exact structure depends on the underlying API response but generally confirms the new state of the flag.

No binary data output is involved in this operation.

Dependencies

  • Requires an API key credential with permissions to perform moderation actions on the chat platform.
  • The node uses a server-side client SDK to interact with the chat service's moderation API.
  • Proper configuration of the API credentials in n8n is necessary for authentication.

Troubleshooting

  • Common issues:

    • Invalid or missing Flag ID: Ensure the Flag ID provided corresponds to an existing flag.
    • Insufficient permissions: Verify that the API key has moderation rights.
    • Network or API errors: Check connectivity and API service status.
  • Error messages:

    • "Unsupported operation: moderation.reviewFlag": Indicates the operation or resource is not recognized; verify correct Resource and Operation selections.
    • Errors related to invalid Flag ID or review action will usually specify the problem in the error message.
  • Resolution tips:

    • Double-check input parameters for correctness.
    • Confirm API credentials are valid and have required scopes.
    • Enable "Continue On Fail" in the node settings to handle individual item errors gracefully.

Links and References

Discussion