Stream Chat icon

Stream Chat

Server-side Stream Chat operations

Overview

The "Disable Slow Mode" operation in the Stream Chat node disables the slow mode feature for a specified chat channel. Slow mode is a moderation tool that limits how frequently users can send messages in a channel by enforcing a cooldown interval between messages. Disabling slow mode removes this restriction, allowing users to send messages without delay.

This operation is useful in scenarios where a channel moderator or administrator wants to lift messaging restrictions after a period of high activity or moderation. For example, after resolving a heated discussion or an event with many participants, slow mode can be disabled to restore normal conversation flow.

Practical example:

  • A live event channel enabled slow mode to prevent message flooding during a keynote speech. After the speech ends, the moderator disables slow mode to allow free interaction among attendees.

Properties

Name Meaning
Channel Type The type of the channel. Common options include: "messaging" (1-on-1 chats), "team" (group channels), and "livestream" (broadcast channels).
Channel ID Unique identifier for the channel (e.g., "general", "random", "team-alpha"). Combined with the channel type to form the full channel identifier (CID).

Output

The output JSON contains the response from the Stream Chat API after disabling slow mode on the specified channel. This typically includes the updated channel state reflecting that slow mode is no longer active.

The node does not output binary data for this operation.

Example output structure (simplified):

{
  "channel": {
    "id": "messaging:general",
    "config": {
      "slow_mode": false,
      ...
    },
    ...
  }
}

Dependencies

  • Requires an API key credential with permissions to manage channels in the Stream Chat service.
  • The node uses the Stream Chat server-side client SDK to perform operations.
  • Proper configuration of the Stream Chat API credentials in n8n is necessary.

Troubleshooting

  • Common issues:

    • Invalid or missing Channel ID or Channel Type parameters will cause the operation to fail.
    • Insufficient API permissions may result in authorization errors.
    • Attempting to disable slow mode on a non-existent or deleted channel will return an error.
  • Error messages:

    • "Unsupported operation: channel.disableSlowMode": Indicates the operation was not recognized; ensure the correct resource and operation are selected.
    • API errors related to authentication or channel not found will be returned as error messages in the node output.
  • Resolution tips:

    • Verify that the Channel ID and Channel Type are correctly specified.
    • Confirm that the API key has the required permissions.
    • Check that the channel exists and is accessible.

Links and References

Discussion