π 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.
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
- Create a Slack app.
- Add
chat:writepermission in Slack OAuth&Permissions>Scopes. - Create a Command in Slack Slash Commands menu and enter the n8n Webhook nodeβs URL.
- Complete creating the Slash Commands.
- Enter the created command in the Switch node.
μ¬λμ 컀맨λλ₯Ό ν΅ν κ³΅κ° μ±λμμμ μλ΅ μ±λ΄ μ λλ€. μ νλΈ μμμ λ μμΈνκ² μ€λͺ λ립λλ€.
μ€λͺ
μ¬λμ μμ±ν μ¬λμ 컀맨λλ₯Ό μ¬λμμ μμ²νλ©΄ μΉν
μ μμ²μ΄ λ€μ΄μ΅λλ€. μ΄ν Switch Nodeμμ κ° μ¬λμ 컀맨λμ μμ²μ λ°λΌ μλ§κ² λΆκΈ°ν©λλ€. μ¬κΈ°μμλ /askβλΌλ μ¬λμ 컀맨λκ° μ±λ΄μΌλ‘ μ°κ²°λμ΄ μκ³ , μ±λ΄μμ μ§λ¬Έν λ΄μ©μ λ΅λ³μ μμ±ν©λλ€. λ§μ§λ§ λ
Έλμμ μ±λλ‘ μλ΅μ ν©λλ€.
μ€μ λ°©λ²
- Slack μ±μ λ§λμΈμ.
- Slack OAuth&Permissions>Scopes μμ
chat:writeκΆνμ μΆκ°νμΈμ. - Slack Slash Commands λ©λ΄μμ Commandλ₯Ό μμ±νκ³ , n8n Webhook λ Έλμ urlμ μ λ ₯νμΈμ.
- Slash Slash Commands μμ±μ μλ£νμΈμ.
- Switch λ Έλμ μμ±ν 컀맨λλ₯Ό μ λ ₯νμΈμ.
π Nodes Used
Slack, Webhook, Basic LLM Chain, OpenAI Chat Model
π₯ Import
Download workflow.json and import into n8n:
Workflow menu β Import from File