Mattermost Enhanced Trigger
AI-generatedSummary
Listen for selected Mattermost WebSocket events and emit each matching event as workflow data. Choose event categories and, optionally, individual events or comma-separated custom event names; the trigger reconnects automatically if the connection closes.
Inputs
- Resources (required) — Select one or more event categories, or All. Defaults to All.
- Events — Optionally select events available for the chosen resources. If left empty, the trigger accepts every built-in event in the selected resources.
- Custom Events — Enter comma-separated Mattermost WebSocket event names. These are included in the accepted event list; custom names must match incoming event names.
- Mattermost credentials (required) — Provide the Mattermost base URL and token through the required Mattermost Enhanced API credentials.
Output shape
A stream of individual items, one for each accepted event.
Each item's JSON contains the parsed Mattermost WebSocket message object. The trigger filters messages by event name; it ignores hello and ping messages for output, while handling them as connection protocol messages. It maintains the WebSocket connection with heartbeat monitoring and automatic reconnection.
Examples
Example 1: Receive new posts
Select the Post resource and the Posted event; incoming posted messages are emitted as items.
Example 2: Listen for a Mattermost event not listed in the picker
Enter its exact event name in Custom Events; matching incoming messages are emitted.