Slack Slash Command Chatbot

n8n AI Productivity Customer Support

Contributed by Sabrina Ramonov 🍄. From the community directory at agents.sabrina.dev, republished with permission and full credit.

This is a response chatbot in public channels through slash commands. I explain more in detail through the YouTube video, but it's only available in Korean.

How it works?

When you request the created slash command in Slack, the request comes to the webhook. Then, the Switch Node branches appropriately according to each slash command request. Here, a slash command called /ask is connected to the chatbot, and the chatbot generates answers to the questions asked. The final node responds to the channel.

Set up steps

1. Create a Slack app.

2. Add chat:write permission in Slack OAuth & Permissions > Scopes.

3. Create a Command in Slack Slash Commands menu and enter the n8n Webhook node's URL.

4. Complete creating the Slash Commands.

5. Enter the created command in the Switch node.

Tools used: Slack

Download the workflow template (JSON)

Original tutorial

Want this running in your business? KOBA42 builds and operates automations like this one.