n8n is a fair-code licensed tool that helps you automate tasks, sync data between various sources, and react to events — all via a visual workflow editor. Our team has been using Mattermost for internal communication since the very beginning, and in time we have developed a ChatOps practice by integrating Mattermost with our workflows.

In this article, we present five of our favorite use cases of n8n with Mattermost, for both work productivity and team engagement.

Ensure gender-inclusive language

We value diversity and want to have a workplace where each of our team members feels heard and included. To ensure this, we created a gender inclusive bot for our Mattermost channels.

If someone addresses the group as “guys” or “gals”, the bot promptly replies with: “May I suggest “folks” or “y’all”? We use gender inclusive language here. 😄”

You can find this workflow here and tweak it for your team.

gender-neutral n8n

Schedule coffee chats

Since we started working from home, we miss having spontaneous chats over a cup of coffee in the office kitchen. But we found a way to keep this habit and catch up with the team even remotely.

We created a workflow that runs every Monday morning, randomly divides the members of a Mattermost channel into groups, announces the pairs in the chat, and creates an appointment for a coffee chat in each person’s calendar.

Read our blog post to learn how to set up this workflow for your team.

A Mattermost chat window with a message posted by the n8n bot announcing the groups for the weekly coffee chats
A Mattermost chat window with a message posted by the n8n bot announcing the groups for the weekly coffee chats.

Track Twitter mentions

We love to see how people all over the world use n8n for creative workflows. Many users share their workflows on Twitter and we want to keep track of these mentions, so that our team gets inspired and knows how to improve the product.

To this end, we created a workflow that searches for tweets that mention @n8n_io and posts them into a dedicated Mattermost channel every minute.

Read our blog post to learn how to set up this workflow for yourself.

A Mattermost chat window with snippets of tweets posted by the n8n bot.
A Mattermost chat window with snippets of tweets posted by the n8n bot.

Announce version releases

We are continuously improving our product and regularly release new versions.

In order to keep everyone up to date with the latest changes, we automated the announcement of n8n version releases in Mattermost. When a new version is created, it triggers a workflow, which posts the version update in the channel. From here, one of our developers can push the new version to staging or production on n8n cloud with a click directly in the chat window.

Announcements like these put a smile on our face!

A Mattermost chat window with messages about n8n version releases posted by the n8n bot
A Mattermost chat window with messages about n8n version releases posted by the n8n bot.

Custom slash commands

Mattermost provides slash commands, which are useful for performing operations quickly by simply typing a word. On top of the basic ones, we created several custom slash commands integrated with n8n workflows for different purposes.

/brand command

The /brand command returns n8n’s brand assets — like our brand color, icon and logo, marketing copy, and useful administrative links. This slash command is especially useful to the Design and Marketing teams, when in need of a quick reference.

Messages showing n8n's brand color, logo, and description, posted by the n8n bot in a Mattermost channel
Messages showing n8n's brand color, logo, and description, posted by the n8n bot in a Mattermost channel.

/call command

Sometimes, we need to hop on a call spontaneously to discuss or clarify some things. We use Whereby for ad-hoc meetings, and to make the call setup process even easier, we created a custom Mattermost slash command /call.

When someone invokes it, it posts their Whereby URL in the Mattermost channel with the message: “Please join a call with me at: [Whereby-URL]”.

Read our blog post to learn how to set up this workflow for your team.

n8n bot

/devrel command

Our DevRel team handles many projects in parallel, from the documentation and blog posts to user interviews and community engagement. Naturally, various questions about content or technical details arise.

To get help, we created the slash command /devrel, which returns a link to a request form where team members can describe their issue or question, which is then converted into a Jira ticket for the team.

Message showing a link to a typeform posted in a Mattermost chat window
Message showing a link to a typeform posted in a Mattermost chat window.

/docs command

Our developers and technical writers are constantly writing and updating the documentation of n8n nodes. To help them keep track of the documentation status, we created the slash command /docs, which returns the number of undocumented nodes and the current coverage of the documentation in the Mattermost channel.

Message about the number of undocumented nodes and current coverage, posted by the n8n bot in a Mattermost channel
Message about the number of undocumented nodes and current coverage, posted by the n8n bot in a Mattermost channel.

/graphic command

Almost every week, we make a release of n8n with new nodes, features, or improvements, and share the news on our social media channels along with an image. This image used to be created manually by someone in our team — a repetitive task that could easily be automated.

For that, we created a custom slash command /graphic that only requires the version number and links to the logos of the new nodes, and then outputs the release graphic directly into the chat window.

This workflow is particularly helpful for design and marketing teams.

Tweet posted by n8n_io announcing the release of version 0.110.3, with an attached image showing the version number and three logos of new nodes
Tweet posted by n8n_io announcing the release of version 0.110.3, with an attached image showing the version number and three logos of new nodes.

Conclusion

To sum up, we showed you five different n8n workflows used with Mattermost that make our lives easier and team happier. n8n’s open ecosystem of integrations allows you to connect and incorporate Mattermost with your favorite services and products to create a unified automation workflow for a wide range of use cases.

Feel free to share your ideas and reach out to us on Twitter.

n8n is a free and open fair-code licensed node-based workflow automation tool. It can be self-hosted, easily extended, and used with internal tools. n8n has 100+ different nodes to automate workflows. Get started with n8n by heading over to our docs and blog. 💙

Start automating!

The best part is, you can start automating for free with n8n. The easiest way to get started is to download the desktop app, or sign up for a free n8n cloud trial. Thanks to n8n’s fair-code license, you can also self-host n8n for free.

This article was originally published on April 7th, 2021 on the Mattermost blog.