Overview
This node sends direct messages to Mattermost users. It is useful for automating communication within Mattermost by sending messages from a specified sender (or bot user) to a recipient user. For example, it can be used to notify team members about updates, alerts, or reminders directly in their Mattermost chat.
Use Case Examples
- Send a direct message from a bot user to a team member to notify about a new task.
- Automate sending personalized greetings or alerts to specific users in Mattermost.
Properties
| Name | Meaning |
|---|---|
| From | Username of the sender (or bot user) who sends the direct message. |
| To | Username of the recipient who will receive the direct message. |
| Message | The content of the message to send to the recipient. |
Output
JSON
username- The recipient username to whom the message was sent.message- The content of the sent message.operation- The operation performed, here it is 'sendDirectMessage'.response- The full response from the Mattermost API after sending the message.
Dependencies
- Requires Mattermost API credentials including base URL and access token for authentication.
Troubleshooting
- Common issues include invalid usernames for sender or recipient, which will cause API requests to fail.
- If the access token or base URL is incorrect or missing, authentication errors will occur.
- Network or API errors during HTTP requests can cause the node to fail unless 'Continue On Fail' is enabled.
- Error messages from the Mattermost API will be included in the node's error output to help diagnose issues.