workflows.fit
Back to n8n workflows
n8n templateFreeBy Mutasem

🤖 Advanced Slackbot with n8n

Use case Slackbots are super powerful. At n8n, we have been using them to get a lot done.. But it can become hard to manage and maintain many different operations that a workflow can do. This is the base workflow we u...

DevelopmentCore NodesData & StorageCommunicationHITLSlackHttp RequestIf
Loading interactive preview...

Template notes

Use case Slackbots are super powerful. At n8n, we have been using them to get a lot done.. But it can become hard to manage and maintain many different operations that a workflow can do.

This is the base workflow we use for our most powerful internal Slackbots. They handle a lot from running e2e tests for Github branch to deleting a user. By splitting the workflow into many subworkflows, we are able to handle each command seperately, making it easier to debug as well as support new usecases.

In this template, you can find eveything to setup your own Slackbot (and I made it simple, there's only one node to configure 😉). After that, you need to build your commands directly.

This bot can create a new thread on an alerts channel and respond there. ![Screenshot 20240301 at 07.54.07.png](fileId:769) ![Screenshot 20240301 at 08.03.33.png](fileId:767)

Or reply directly to the user. ![Screenshot 20240301 at 07.53.41.png](fileId:766)

It responds for help request to return a help page. ![Screenshot 20240301 at 08.16.40.png](fileId:764)

It automatically handles unknown commands. ![Screenshot 20240301 at 08.16.54.png](fileId:765)

It also supports flags and environment variables. For example /cloudbot-test info mutasem --full-info -e env=prod would give you the following info, when calling subworkflow. ![Screenshot 20240301 at 08.34.31.png](fileId:768)