Mattermost nodes for Flowire workflow automation
Project description
Flowire Mattermost Nodes
Mattermost integration nodes for Flowire workflow automation. This package provides nodes for receiving and sending messages with Mattermost.
Installation
uv add fw-nodes-mattermost
Then add the package to your Flowire settings:
# settings.py
installed_node_packages = ["fw-nodes-core", "fw-nodes-mattermost"]
Included Nodes
Triggers
| Node | Description |
|---|---|
Mattermost Outgoing Webhook |
Receive messages from Mattermost channels via outgoing webhooks |
Mattermost Slash Command |
Receive slash command invocations from Mattermost |
Messaging
| Node | Description |
|---|---|
Mattermost Post Message |
Post a message to a Mattermost channel |
Usage Examples
Outgoing Webhook
Receive channel messages when a trigger word is used:
# Node configuration:
{
"validate_token": true,
"token": "{{project.mattermost-webhook-token}}"
}
# Outputs:
# - text: The message content
# - user_name: Who posted the message
# - channel_name: Where it was posted
# - trigger_word: The word that triggered the webhook
Slash Command
Receive slash command invocations (e.g., /mycommand args):
# Node configuration:
{
"validate_token": true,
"token": "{{project.mattermost-slash-token}}"
}
# Outputs:
# - command: The slash command (e.g., "/weather")
# - text: Arguments after the command
# - user_name: Who invoked the command
# - response_url: URL for delayed responses
Post Message
Send messages to Mattermost channels:
# Node configuration:
{
"credential_id": "your-mattermost-credential",
"channel_id": "{{slash-command.channel_id}}",
"message": "Hello from Flowire! Processing your request...",
"root_id": "{{slash-command.post_id}}" # Optional: reply in thread
}
Mattermost Setup
Outgoing Webhook
- Go to Integrations > Outgoing Webhooks in Mattermost
- Click Add Outgoing Webhook
- Set the callback URL to your Flowire webhook endpoint
- Configure trigger words or channels
- Copy the token and store it as a project variable
Slash Command
- Go to Integrations > Slash Commands in Mattermost
- Click Add Slash Command
- Set the request URL to your Flowire webhook endpoint
- Configure the command (e.g.,
/mycommand) - Copy the token and store it as a project variable
Credentials for Post Message
- In Mattermost, go to Account Settings > Security > Personal Access Tokens
- Generate a new token with appropriate permissions
- In Flowire, create a Mattermost credential with:
- Server URL: Your Mattermost server (e.g.,
https://mattermost.example.com) - Access Token: The personal access token
- Server URL: Your Mattermost server (e.g.,
Development
# Install with dev dependencies
uv sync --all-extras
# Run linter
ruff check .
# Auto-fix lint issues
ruff check . --fix
# Format code
ruff format .
# Run tests
pytest
Project Structure
fw-nodes-mattermost/
├── fw_nodes_mattermost/
│ ├── __init__.py
│ └── nodes/
│ ├── __init__.py
│ ├── outgoing_webhook.py
│ ├── slash_command.py
│ └── post_message.py
├── tests/
├── pyproject.toml
└── README.md
License
This project is licensed under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fw_nodes_mattermost-0.0.1a1.tar.gz.
File metadata
- Download URL: fw_nodes_mattermost-0.0.1a1.tar.gz
- Upload date:
- Size: 14.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
44c9133698841a7598ff211df56a23ca8fe396ef596cddf0f3f42c91e7c6a61e
|
|
| MD5 |
4640e89d691f2ae74f5b57b15abfbf75
|
|
| BLAKE2b-256 |
344b804a45edfe186e2f9e5834955ae82945538d3ac1223ca4a24a5c96e3e6d2
|
File details
Details for the file fw_nodes_mattermost-0.0.1a1-py3-none-any.whl.
File metadata
- Download URL: fw_nodes_mattermost-0.0.1a1-py3-none-any.whl
- Upload date:
- Size: 16.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6075abe3374bdb9560c66e9b811dfd0687d82374732f8db39e568c1fd3cebd28
|
|
| MD5 |
0df89d0312aa2e79205fe72102e3b855
|
|
| BLAKE2b-256 |
7d6ea9cb3bc0bf66a23137bd6a7136f148730829583925db2e082ce27cccf9fe
|