Mattermost Send DM icon

Mattermost Send DM

Send a direct message to a user by ID in Mattermost

Mattermost Send DM

AI-generated

Overview

This node sends a direct message to a specified user in Mattermost by their user ID. It is useful for automating communication within Mattermost, such as sending notifications, alerts, or personalized messages directly to users. For example, it can be used in workflows to notify team members about task updates or system alerts.

Use Case Examples

  1. Sending a direct message to a user when a new task is assigned.
  2. Notifying a user about a system alert or error via Mattermost DM.

Properties

Name Meaning
User ID The recipient's user ID in Mattermost to whom the direct message will be sent.
Message The content of the message to send. Supports Markdown formatting for rich text.

Output

JSON

  • json - The response object from the Mattermost API after sending the direct message, containing details about the sent post.

Dependencies

  • Requires Mattermost API credentials with permission to post direct messages.

Troubleshooting

  • Ensure the provided User ID is valid and corresponds to an existing user in Mattermost.
  • Check that the API credentials have the necessary permissions to send direct messages.
  • Common error messages include API response errors which may indicate issues like invalid user ID, permission denied, or network problems. The node throws these errors with the message from the API response or a generic 'Unknown error' if no specific message is available.

Discussion