Mattermost Channel Provisioning and Welcome Message - n8n Workflow

Automate Mattermost team management using this efficient n8n workflow. Create new channels, add users, and post introductory messages instantly. Use this powerful n8n template for standardized project setup.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?


  • Project Managers and Team Leads needing standardized channel creation.

  • IT Administrators responsible for managing communication platform provisioning.

  • Users looking for ready-to-use ChatOps n8n templates.

  • Developers interested in automating repetitive team setup tasks using a specialized n8n node.

Overview

Standardizing team communication setup is crucial for efficiency. This powerful n8n workflow addresses the pain point of manually creating channels, adding necessary team members, and ensuring a consistent welcome. By utilizing this sequence, organizations can launch new projects or initiatives faster, ensuring all necessary parties are immediately connected in the designated Mattermost channel. This specific n8n workflow is designed to execute three crucial steps sequentially, ensuring the channel ID is dynamically passed between the Mattermost n8n nodes, offering a robust and reliable automation solution right out of the box. If you are looking for specific n8n templates related to team management, this is an excellent starting point.

How it Works

This automation is initiated by a manual n8n trigger, designed for testing or integration via a webhook in a production environment.


  1. Trigger Execution: The workflow starts with the 'On clicking 'execute'' n8n trigger.

  2. Channel Creation: The first Mattermost n8n node executes, creating a new channel (display name 'Docs') within a specified Mattermost Team ID.

  3. Dynamic ID Capture: Crucially, this node returns the unique ID of the newly created channel.

  4. User Provisioning: The second Mattermost n8n node receives this dynamic channel ID and performs the 'Add User' operation, assigning a predefined User ID to the channel.

  5. Welcome Message: Finally, the third Mattermost n8n node utilizes the same dynamic channel ID to post a predefined welcome message ('Hey! Welcome to the channel!') into the newly formed communication space. This entire n8n workflow ensures instant setup and communication.

Installation Guide

To deploy and utilize this Mattermost n8n workflow effectively, follow these steps:


  1. Import the JSON: Copy the provided JSON data and paste it into your n8n instance using the 'New' menu > 'Import from JSON'.

  2. Credential Setup: You must configure Mattermost API credentials. Set up a dedicated credential connection named 'Mattermost Credentials' and ensure it has the necessary permissions to create channels, add users, and post messages.

  3. Configure Node Parameters: Edit the first two Mattermost n8n nodes ('Mattermost' and 'Mattermost1').

In the first 'Mattermost' n8n node, replace the placeholder teamId with your actual Mattermost team ID.
In the 'Mattermost1' n8n node, replace the hardcoded userId with the ID of the user you intend to add to the new channel.

  1. Execution: After saving, you can test the entire n8n workflow by clicking 'Execute Workflow'.

Node Details

On clicking 'execute' (Manual Trigger n8n Trigger)
Function: Acts as the starting point for this specific n8n workflow, allowing manual testing or initiation via a webhook.
Key Configuration: Standard manual trigger setup.
Mattermost (Channel Creation n8n Node)
Function: Creates the desired channel ('Docs') on the specified Team.
Key Configuration: Resource: Channel, Operation: Create, Requires specific teamId.
Mattermost1 (Add User n8n Node)
Function: Adds a designated user to the channel created in the previous step.
Key Configuration: Resource: Channel, Operation: Add User. The Channel ID parameter uses a dynamic expression ={{$node["Mattermost"].json["id"]}} to reference the ID generated by the previous n8n node.
Mattermost2 (Post Message n8n Node)
Function: Posts a predefined welcome message to the newly provisioned channel.
Key Configuration: Uses the dynamic Channel ID and contains the static welcome message.

Related n8n Workflows

Free

Nodes: 2 Nodes
Updated: December 26 2025
View all
Created by
ghagrawal17
ghagrawal17

Featured*