Mattermost Event Trigger icon

Mattermost Event Trigger

Receive Mattermost Events

Mattermost Event Trigger

AI-generated

Overview

This node acts as a trigger for Mattermost events by connecting to the Mattermost WebSocket API. It listens for specified events and emits them as JSON data when they occur. This is useful for automating workflows based on real-time Mattermost activities such as team updates, channel messages, user actions, and custom events.

Use Case Examples

  1. Automatically respond to new messages in a Mattermost channel.
  2. Trigger workflows when a user joins or leaves a team.
  3. Monitor system events or custom events for integration with other tools.

Properties

Name Meaning
Resources Select which categories of Mattermost events to receive (e.g., Team, Channel, User, etc.). Multiple selections allowed.
Events Select specific events to receive within the chosen resource categories. This list is dynamically loaded based on selected resources.
Custom Events Specify custom event names as a comma-separated string to listen for additional events not covered by predefined options.

Output

JSON

  • event - The event name received from Mattermost WebSocket.
  • data - The full event data payload as received from the WebSocket, including details relevant to the event.

Dependencies

  • Requires a Mattermost API credential with base URL and token for WebSocket connection.

Troubleshooting

  • WebSocket connection errors may occur if the base URL or token is incorrect; verify credentials.
  • If no events are received, ensure the selected resources and events match those emitted by the Mattermost server.
  • Parsing errors may happen if the WebSocket sends malformed JSON; check server stability and network conditions.

Links

Discussion