n8n and Mattermost integration

Post alerts, approvals and workflow results into Mattermost channels from self-hosted n8n, and start workflows from chat, without leaving your network.

On this page

How n8n and Mattermost integration works inside your network

Your alerts and approvals already live in Mattermost, and your workflows run on servers you control. The integration connects the two with the n8n Mattermost node, which authenticates to your Mattermost server through a Mattermost credential that you create and store in n8n. Flows that start from chat arrive through a webhook, or through the Mattermost side of the connection, depending on how the trigger is built. Before any build begins, we agree the scope in writing, including which channels, which bot or user identity, and which workflows are in and out. Confirm the exact node operations and trigger options in the n8n version you plan to run, because the node's supported actions change between releases and this page does not list them.

Both systems stay inside your infrastructure. The n8n instance and the Mattermost server run on hosts, in data centers or in a private cloud account that you select, and messages, alerts and workflow data move only across network paths you define. n8n is source-available under the Sustainable Use License, not OSI open source, so confirm with your legal team that your intended internal use, and any embedding or distribution, fits its terms before the design is fixed. Mattermost licenses its compiled binaries under the MIT license and its custom build source under AGPL v3.0, with a commercial alternative from Mattermost, Inc., so the server side has its own license review. Check the n8n license terms and the Mattermost license file together.

The design decisions that matter most come before the first workflow. Decide where the n8n instance reaches Mattermost (same network segment, a reverse proxy, or an egress rule), which network paths must be open for inbound webhooks, and who owns the bot account and its token rotation. Record which channels a workflow may post to, because a broad credential can post anywhere the account is a member. Plan for the case where Mattermost or n8n is unavailable, so that alerts fail visibly rather than silently. Your security and platform teams should review these choices against your own change process, since the working documents we produce are inputs to your controls, not evidence that a control exists.

What you need before connecting n8n to Mattermost

The integration depends on four things lining up: a Mattermost server inside a supported version window, an n8n instance on a known edition, a Mattermost account n8n can act as, and a network and certificate path that both sides trust. Work through these before you build the first workflow, because most failed connections trace back to one of them.

Mattermost server and support window

Confirm which Mattermost server version you run and when its support ends. Mattermost ships a new server version in binary form on the 16th of each month, and the supplied release dates show v11.11 supported until 2026-12-15 and v12.0 until 2027-01-15. v11.7 is an Extended Support Release supported until 2027-05-15. Plan upgrades on the support end date, not on the day a version is released, so the webhook and bot behavior you build does not change under you mid-project.

Mattermost release schedule

n8n version and edition

Record the n8n version and edition before you choose nodes. Version 2.43 was released on 6 October 2026, and n8n ships minor releases roughly weekly, so pin a version in your deployment rather than tracking latest. The Community edition is free and self-hosted, and the Mattermost node works in it. Confirm your edition in writing, because features such as SSO and multi-main high availability depend on a paid plan.

n8n release notes

Dedicated bot or service account

Create a dedicated Mattermost bot account or a service user for n8n rather than reusing a person's login. Give it membership only in the channels it must post to or read, and restrict its permissions to what the workflows need. Record the account, its team and channel memberships, and who approves changes to them. Personal access tokens tie actions to one person, so a departure can break every workflow that uses them.

Network route between n8n and Mattermost

Decide which direction traffic flows. n8n calls the Mattermost API to post messages, so it needs outbound reach to the Mattermost base URL. Chat-triggered workflows also require Mattermost to reach an n8n webhook URL, which means an inbound route. Inside a restricted network, confirm firewall rules, proxies and DNS on both sides, and test each direction separately with a simple request before building logic.

TLS certificates trusted by n8n

Make sure the certificate presented by your Mattermost server chains to a certificate authority that the n8n host trusts. Internal certificate authorities are a common gap, because the n8n container or host may not have the root installed. Check the chain from the n8n runtime itself, not from your laptop, and plan certificate renewal so a silent expiry does not stop alerts from posting.

SSO is a separate decision

Signing people into Mattermost or n8n with SSO is not required for the integration to work. Mattermost includes SSO (SAML, OIDC, OAuth) from the Professional plan, and n8n SAML single sign-on is available on the Business and Enterprise plans. Decide these separately, confirm which Mattermost plan and n8n edition you hold, and ask your vendor for the plan terms in writing before you assume a feature is available.

n8n SAML docs

Configuration sequence for the Mattermost node

This sequence connects a self-hosted n8n instance to a self-hosted Mattermost server, proves the connection from the n8n host, and then wires alerts, approvals and chat-initiated runs into channels your team already uses. Each step ends with a check so a failure is caught before it reaches production channels.

  1. Create a dedicated Mattermost bot account

    In the Mattermost System Console, an administrator creates a bot account for n8n, not a personal user login, and gives it access only to the teams and channels it needs to post in. Generate a personal access token for that bot and record where it is stored, because the token is the secret n8n will use. Confirm the bot can see a test channel by logging in as the bot in a private browser session. Done when the bot appears in the member list of the test channel and the token is recorded in your secrets store.

  2. Create the Mattermost credential in n8n

    In n8n, open the credentials area and create a new Mattermost credential. Enter the base URL of your self-hosted Mattermost server, which must resolve from the n8n host, and paste the bot's access token. Confirm the exact field names in your installed n8n version, since the credential form can change between releases. Save the credential and run the built-in connection test if your version provides one. Done when the test returns a success message, or a readable error that names the failing part, such as the URL or the token.

  3. Test connectivity from the n8n host

    Before building any workflow, confirm from the machine or container that runs n8n that it can reach the Mattermost server over HTTPS. Use a basic request to the server's API endpoint with curl from the same network namespace, and check the certificate chain if your internal certificate authority is private. If the n8n host runs in a container, run the request inside the container. Done when the API returns a JSON response with the server version, which proves the network path, DNS and TLS are correct independently of n8n.

  4. Send a test message to one channel

    Create a workflow with a manual trigger and a Mattermost node set to post a message. Choose a single test channel, select the team and channel from the node parameters, and send a short, clearly labeled message. Use the same credential you created earlier. Done when the message appears in the test channel under the bot account name. If the call fails, read the error returned by the node: an authorization error points to the token or the bot's channel membership, and a not-found error points to the team or channel identifier.

  5. Wire an alert or approval step

    Connect an upstream source to the Mattermost node, such as an HTTP Request node polling a monitoring endpoint or a schedule trigger that checks a condition. Use an IF node to decide when to post, then format the message with the fields your team needs, including a link back to the source system. For approvals, keep the decision in the workflow and post a request with a clear owner and a resolution path, and confirm with your own process where approvals are recorded. Done when a simulated condition produces one message in the test channel and a non-matching condition produces none.

  6. Add a webhook trigger for chat-initiated runs

    Add a Webhook trigger to a separate workflow and publish its production URL on your internal network. Then configure a slash command or outgoing webhook in Mattermost to call that URL, and confirm in your Mattermost version how outgoing webhooks and slash commands are enabled and restricted. Validate a shared secret or token in the first node so unknown callers are rejected. Done when a test command from the test channel starts the workflow once, and a request without the secret is refused.

  7. Confirm the production path before go-live

    Move the credential and workflows to the production n8n instance through your normal change process, and check that the production bot token is different from the test token. Confirm that the webhook URL is reachable only from the Mattermost server and not from the public internet. Run the alert and command paths once each against a production-safe test channel. Done when each path produces the expected message exactly once, and the test channel and bot permissions are documented for the operations team.

How channels, users and message fields map between the systems

This table compares each Mattermost concept with the n8n field that fills it and whether the value comes from the workflow payload or from node configuration. Read it before building an alert or approval flow, because the identity and channel choices made here are hard to change once posts and approvals start flowing. The main takeaway is that channel IDs and the posting identity are decisions to settle first, while message text and attachments can vary per run.

Mattermost conceptWhere the value comes from in n8nDecision or check before build
TeamFixed in the node configuration or looked up by name in a setup stepConfirm which team owns each alert channel and that the credential account is a member of it
ChannelChannel ID selected in the node, or passed from the payload when the workflow routes by event typeChoose one stable channel naming scheme and map it to channel IDs, since display names can change
Direct message to a userUser ID or username from the payload, such as an approver field from an HR or ticket systemConfirm the approver exists in Mattermost and has an account the bot can reach
Posting identity (bot or named user)Fixed by the credential used in the n8n Mattermost credentialDecide whether approvals use a bot account for audit clarity or a named user for personal accountability
Post message textBuilt from payload fields with n8n expressions, varies on every executionAgree on a message template and which fields are mandatory before sending
Post formatting and attachmentsMarkdown text and attachment fields built from the payload, or fixed templates in the nodeTest long payloads and escape any user-supplied text to avoid unintended formatting
Interactive approval actionsCallback URL generated by the n8n workflow, with the approval outcome returned to the workflow as payloadVerify that callbacks reach your n8n instance on the internal network and that the approver identity is checked on return
Thread or reply referencePost ID stored from an earlier execution or passed from the trigger payloadStore the root post ID in a durable place if follow-up messages must stay in one thread

Choosing alert, approval and chat-trigger patterns

Monitoring tools send an event to an n8n webhook, n8n formats the message, and the Mattermost node posts it to a channel. The data path is outbound from n8n to Mattermost, and n8n only needs to accept inbound traffic from the monitoring system on its webhook endpoint. This is the simplest pattern and usually the first one a team builds.

  • Inbound surface: Only the webhook path that the monitoring tool calls needs to be reachable from that tool's network segment. Restrict it by source address or a shared secret header where your proxy supports it.
  • Outbound surface: The n8n server must reach the Mattermost server URL. Allow that route explicitly and nothing else for this workflow.
  • Message content: Alerts often carry hostnames, IP addresses or error text. Decide which fields reach the channel and which stay in the monitoring tool.
  • Failure handling: Confirm what happens when Mattermost is unreachable, such as retry behavior and whether alerts are queued or dropped.
  • Channel permissions: Use a dedicated bot account with post rights only to the alert channels.

Before production, send test events of each severity from the real monitoring tool, confirm the posted text, and confirm that a Mattermost outage produces a visible failure in n8n rather than silent loss.

Securing the Mattermost credential and inbound paths

The Mattermost integration touches three places where trust can leak: the credential n8n stores, the account and channels it can reach, and the webhook endpoints that accept traffic from outside. The cards below cover each path and the logging that records what was posted. Check them together, because a tight bot account does little if the encryption key is widely shared or a webhook accepts unauthenticated requests.

Encryption key for stored credentials

n8n encrypts the Mattermost bot token and other credentials it stores in its database using the instance encryption key. Losing that key makes stored credentials unreadable, and a leaked key exposes every credential in the database. Confirm where the key lives, who can read it, and that it is backed up separately from the database. In queue mode, the main instance's encryption key must also be shared with every worker and webhook processor, so the key has to reach each of those nodes through a controlled secret path.

Queue mode docs

Least-privilege Mattermost bot account

Create a dedicated bot account for n8n rather than reusing a person's login or a system administrator account. Give it only the team membership and permissions needed to post messages and read the channels it serves. Confirm with your Mattermost administrator which roles and permissions the bot inherits and rotate its access token on a schedule your security team sets. A separate bot per purpose, such as alerts and approvals, makes revocation and audit trails simpler.

Restricting target channels

Decide which channels the integration may post into and keep the list short. Alerts from production systems should not land in open channels that include external guests, and approval requests should go only to channels whose members are authorized to decide. Check channel membership before going live, since a bot added to a broad channel can reach everyone in it. Revisit the list when teams reorganize or new channels are created.

Webhook endpoint exposure

Workflows triggered from Mattermost slash commands or outgoing webhooks expose an n8n webhook URL to the chat server. Keep that endpoint reachable only from the Mattermost network segment, place it behind a reverse proxy with TLS, and reject requests that do not carry the expected token or signature. Treat the webhook path as public for the purposes of testing, and confirm which n8n nodes and actions a triggered workflow can run once it starts.

Logging posted content

Messages posted by workflows can contain alert details, customer identifiers or approval decisions, and those messages persist in Mattermost and in n8n execution data. Decide how long n8n keeps execution records for Mattermost workflows and whether message bodies are saved at all. Confirm where Mattermost retention settings apply, and make sure audit logs record who approved what, without copying sensitive payloads into logs that have wider access.

SSO and high availability depend on plan

Mattermost SSO (SAML, OIDC, OAuth) and AD/LDAP user sync start at the Professional plan, while high availability clustering starts at Enterprise. Confirm the Mattermost edition you run before designing sign-in for bot-facing or human users. High availability also needs shared file storage on each node, and local storage will not work correctly. For n8n, multi-main setup is limited to Enterprise self-hosted deployments, so plan the failover path for both systems together.

Mattermost pricing

How a chat message reaches a workflow and back

A message starts with a user in a Mattermost channel, travels through the Mattermost server to an n8n webhook or trigger, and runs through the workflow steps before the reply is posted back into the channel. The diagram draws the internal network boundary, the TLS termination point and the credential read from the n8n database. Check that the Mattermost server, n8n and its database all sit inside the boundary, and that the encryption key is available to every process that reads credentials.

Chat message path from a Mattermost user through n8n and back, inside one network.

Common failures when posting from n8n to Mattermost

This table lists the failures teams most often hit when n8n posts alerts or approvals into Mattermost, with the likely cause and the first fix to try for each. Work down the rows in the order symptoms appear, since certificate and reachability problems block everything else. The main takeaway is that most failures trace to trust, permissions, identifiers or network paths rather than to the workflow logic itself.

FailureLikely causeFirst fix to try
Certificate trust error on the Mattermost calln8n runs on a host that does not trust the certificate authority that signed the internal Mattermost certificateAdd the internal CA to the n8n container or host trust store, restart n8n, then retest the credential
401 or 403 when postingThe bot or personal access token belongs to an account without permission to post in that channel, or the token was revokedConfirm the account is a channel member with post permission, then regenerate the token and update the n8n credential
Post fails with channel not foundThe workflow sends a channel display name where the API expects the internal channel IDLook up the channel ID through the Mattermost API or System Console, then use that ID in the node
Incoming webhook call times out or is refusedThe n8n host cannot reach the Mattermost URL, or the URL points at the wrong port or path behind a proxyTest the exact URL from the n8n host with a simple request, then correct the host, port or proxy route
Mattermost cannot reach n8n for a chat-triggered workflowThe webhook URL n8n generates uses an internal hostname or localhost that Mattermost cannot resolveSet the n8n webhook base URL to an address Mattermost can reach, then re-register the slash command or outgoing webhook
Duplicate messages after a retryA timeout occurred after Mattermost accepted the post, so the retry sends the message againEnable retry only on errors that prove the post failed, and add a stable reference in the message to spot repeats
Workflow runs but credentials fail on workers in queue modeThe encryption key on the main instance differs from the key on worker or webhook processor nodesSet the same encryption key on every main, worker and webhook processor, then restart all of them
Messages arrive with formatting or mentions brokenMarkdown or user mention syntax is escaped or built from the wrong field in an expressionPreview the raw expression output in n8n, then correct the field reference and the markdown syntax in the message

Questions buyers ask before outside help on n8n and Mattermost

What drives the cost of an n8n and Mattermost integration project?

The main drivers are how many channels and teams receive messages, how complex the approval logic is, how many workflows must be built and tested, and how much hosting and certificate work sits underneath. Each channel mapping, bot or token setup, and approval branch adds design and test effort. Ask for a written quote that lists each channel, each workflow and each approval path as a separate line, plus the hosting and certificate work and the test cycles. Cost is usually one-time build work, followed by recurring effort for upgrades and changes to workflows.

Can our team set up n8n and Mattermost without outside help?

Yes, if you have people who can run n8n and Mattermost on infrastructure you control and who understand bot accounts, API tokens and webhooks. The Mattermost node covers common operations, and the HTTP Request node covers API calls it does not. The harder parts are approval logic that must be reviewed, credential handling, and keeping the setup working through upgrades. Outside help makes most sense when the team lacks time, the workflows touch regulated data, or the scope needs a documented, tested result.

What do we need to provide for a Mattermost and n8n project?

Plan to provide administrator access to Mattermost so bot accounts, teams and channels can be created, plus owners for each channel who confirm which messages and approvals belong there. You will also need n8n access for the instance that runs the workflows, a test environment that mirrors production as closely as practical, and a named contact who can approve workflow designs. Confirm in writing who holds credentials after handover and how access will be removed when the project ends.

How long does an n8n and Mattermost integration take?

Duration depends on scope: the number of channels, the number of workflows, the approval rules, and how many environments must be tested before production. Hosting and certificate work for a new instance can extend the schedule if it is not already in place. Ask for a timeline in the written scope that splits design, build, testing and handover into separate phases, and state which dependencies, such as access approvals or certificate issuance, sit with your team.

Does the Mattermost plan we choose change what the integration can do?

The Mattermost plan changes the platform features around the integration, not the posting itself. Mattermost lists SSO (SAML, OIDC, OAuth) and AD/LDAP user sync from the Professional plan, high availability clustering and FIPS 140-3 compliance from Enterprise, and air-gapped deployment in Enterprise Advanced. Mattermost sells these as prepaid annual subscriptions by seat, and its pricing page lists no public prices, so request a quote from Mattermost for your seat count. Confirm which features you need before you design the workflows.

Does the n8n edition change whether this integration works?

The Mattermost node is part of n8n's integrations, and n8n states that all plans include every integration. Where editions differ is in features around the workflows: n8n lists SSO and LDAP, environments with Git, and log streaming only on the Business and Enterprise plans. Your choice of self-hosted Community edition or a paid plan therefore affects access control and change management more than message delivery. Confirm the license terms with n8n, since the Sustainable Use License limits use to internal business purposes, non-commercial and personal use.

What should we check during testing and after go-live?

Test each channel with a bot account that has only the permissions it needs, confirm that approvals only trigger the intended action, and verify that credentials are not exposed in logs or shared channels. Check that workflows fail visibly when Mattermost is unreachable, and that alerts reach the right channel after a restart. After go-live, plan to retest after each n8n and Mattermost upgrade, since Mattermost publishes a new server version each month and n8n ships minor releases roughly weekly. Ask for the test plan and the retest schedule in the written quote.

Keeping the integration working through upgrades

The main risk after go-live is an upgrade that changes what the integration sends or receives, because n8n and Mattermost ship on different cadences. n8n uses semantic versioning and ships minor releases roughly weekly, so a Mattermost node or its API handling can change between any two of your maintenance windows. Mattermost releases a new server version in binary form on the 16th of each month, and its support windows are fixed dates: v11.11 was released on 2026-09-16 with support ending 2026-12-15, and v12.0 was released on 2026-10-16 with support ending 2027-01-15. Plan your Mattermost server upgrades around those end-of-support dates, and confirm the current window on the Mattermost server releases page before you schedule work.

Build a test-before-upgrade routine that covers each workflow using the Mattermost node. Keep a staging n8n instance connected to a non-production Mattermost server, and replay the workflows that post alerts, post approval requests, handle button callbacks and receive slash commands. Check the message payload, channel and thread IDs, file attachments and the credential type in each run, then compare the results with the production baseline. Pin the n8n image to an exact version tag rather than a floating tag such as latest, and pin the Mattermost server image in the same way, so an upgrade happens only when someone decides it should. Confirm that the n8n version you intend to use is still supported before you pin it.

Review release notes for both products before each change, and record what you checked. Read the n8n release notes for changes to the Mattermost node, to webhook handling and to the Mattermost credential, and read the Mattermost server release notes for changes to the API, to bot accounts, to webhook or outgoing integration behavior and to SSO settings. Ask your Mattermost administrator to confirm that any bot account, personal access token or incoming webhook used by n8n still has the permissions it needs after the upgrade. Keep the rollback path simple: retain the previous image tag and a database backup taken before the upgrade, and confirm with your own environment owner how long that backup is kept.

How DeployOpen scopes and delivers this integration

DeployOpen plans and builds the n8n and Mattermost integration inside your own infrastructure, so the workflows, credentials and channel traffic stay under your control. We agree the scope, build and test the Mattermost node and its workflows, then document and hand them over to your team, with ongoing support available as a retainer.

How we scope

  • Confirm which Mattermost channels, alerts, approvals and chat triggers the written scope covers.
  • Record which n8n edition, hosting model and execution volume the integration must support.
  • Agree in writing how Mattermost bot accounts, tokens and n8n credentials will be created and stored.

How we build

  • Configure the n8n Mattermost node credentials and test posts against a non-production channel first.
  • Build alert, approval and chat-triggered workflows, with the HTTP Request node for API calls the node does not cover.
  • Verify network paths from n8n to Mattermost and webhook reachability from Mattermost inside your network.

How we hand over

  • Deliver workflow exports, credential inventory and a written runbook for changing channels and tokens.
  • Document the test cases used for each workflow, including failed post and duplicate trigger handling.
  • Walk your administrators through restarting workflows, rotating bot tokens and reviewing execution history.

How we support

  • Offer ongoing support and upgrades for n8n and Mattermost as a retainer, scoped in writing.
  • Retest affected workflows after n8n or Mattermost upgrades before changes reach production.
  • Confirm support boundaries, response expectations and change handling in the agreed scope before work starts.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.