Stream Chat icon

Stream Chat

Server-side Stream Chat operations

Moderation → Check Automod

AI-generated

Summary

Check a message text against Stream Chat's automoderation rules optionally within a specified channel to determine if it violates any automod policies.

Inputs

  • Message Text — Text content to evaluate for automod violations.
  • Channel CID — Channel identifier in the format "type:ID" (e.g., "messaging:general"), used to scope the automod check to a specific channel. Leave empty to perform a global automod check.
  • Message ID — ID of the message to be moderated; used for certain moderation operations but not directly impacting the automod check result.

Output shape

a single JSON object indicating automod check results

The output includes fields 'text' (input message), 'channel_cid' (provided channel identifier), a fixed 'automod_result' set to 'passed', and a 'message' string noting that the check completed. Actual automod filtering logic depends on Stream Chat automod rules configured separately and is not performed by this operation; the result always indicates a passed check.

Examples

Example 1: Check if a message text violates automod rules within a specific channel

Provide 'Message Text' and 'Channel CID'; the node returns a response indicating whether the message passed automod checks (always passes by design in the current implementation).

Discussion