πŸ“– Slack slash commands AI chat bot

⚑ 3,792 views Β· πŸ“– Internal Wiki & Knowledge Base

πŸ’‘ Pro Tip β€” YouTube’s API quotas can be a bottleneck when you’re pulling data at scale. ScraperNode is a community node with dedicated scrapers for channels, videos, and comments β€” no quota limits, just structured data.

View All Scrapers

Description

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.



μŠ¬λž˜μ‹œ μ»€λ§¨λ“œλ₯Ό ν†΅ν•œ 곡개 μ±„λ„μ—μ„œμ˜ 응닡 챗봇 μž…λ‹ˆλ‹€. 유튜브 μ˜μƒμ— 더 μžμ„Έν•˜κ²Œ μ„€λͺ… λ“œλ¦½λ‹ˆλ‹€.

μ„€λͺ…

μŠ¬λž™μ— μƒμ„±ν•œ μŠ¬λž˜μ‹œ μ»€λ§¨λ“œλ₯Ό μŠ¬λž™μ—μ„œ μš”μ²­ν•˜λ©΄ 웹훅에 μš”μ²­μ΄ λ“€μ–΄μ˜΅λ‹ˆλ‹€. 이후 Switch Nodeμ—μ„œ 각 μŠ¬λž˜μ‹œ μ»€λ§¨λ“œμ˜ μš”μ²­μ— 따라 μ•Œλ§žκ²Œ λΆ„κΈ°ν•©λ‹ˆλ‹€. μ—¬κΈ°μ—μ„œλŠ” /askβ€‹λΌλŠ” μŠ¬λž˜μ‹œ μ»€λ§¨λ“œκ°€ μ±—λ΄‡μœΌλ‘œ μ—°κ²°λ˜μ–΄ 있고, μ±—λ΄‡μ—μ„œ μ§ˆλ¬Έν•œ λ‚΄μš©μ˜ 닡변을 μƒμ„±ν•©λ‹ˆλ‹€. λ§ˆμ§€λ§‰ λ…Έλ“œμ—μ„œ μ±„λ„λ‘œ 응닡을 ν•©λ‹ˆλ‹€.

μ„€μ • 방법

  1. Slack 앱을 λ§Œλ“œμ„Έμš”.
  2. Slack OAuth&Permissions>Scopes μ—μ„œ chat:write κΆŒν•œμ„ μΆ”κ°€ν•˜μ„Έμš”.
  3. Slack Slash Commands λ©”λ‰΄μ—μ„œ Commandλ₯Ό μƒμ„±ν•˜κ³ , n8n Webhook λ…Έλ“œμ˜ url을 μž…λ ₯ν•˜μ„Έμš”.
  4. Slash Slash Commands 생성을 μ™„λ£Œν•˜μ„Έμš”.
  5. Switch λ…Έλ“œμ— μƒμ„±ν•œ μ»€λ§¨λ“œλ₯Ό μž…λ ₯ν•˜μ„Έμš”.

πŸ”— Nodes Used

Slack, Webhook, Basic LLM Chain, OpenAI Chat Model

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup