Mattermost
Mattermost adapter using Outgoing Webhook mode.
Prerequisites
- Enable Outgoing Webhooks in Mattermost System Console → Integrations.
- Create a Bot Account → obtain a Bot Token.
- Configure Outgoing Webhook to target
https://<your-public-host>/mattermostand copy its Token.
Environment
export MATTERMOST_SERVER_URL=https://mattermost.example.comexport MATTERMOST_BOT_TOKEN=...export MATTERMOST_WEBHOOK_TOKEN=...export MATTERMOST_WEBHOOK_HOST=0.0.0.0export MATTERMOST_WEBHOOK_PORT=16671export MATTERMOST_WEBHOOK_PATH=/mattermostThread semantics
Mattermost root_id is thread key (the root message ID of a thread).
Troubleshooting
- Bot can’t post: ensure the Bot Account has been invited to the target channel.
- 413 on upload: Mattermost limits file size to 50 MB by default; raise it in System Console → File Storage.