Slack automation
Workflow Description
Deploy an intelligent agent that receives Slack messages via webhook, processes them using OpenAI models with conversation memory, maintains context through a sliding window buffer, and responds reliably through automated workflows and tool integrations.
How it works
- 1.Receive incoming Slack message via webhook and extract message content and metadata
- 2.Store conversation history and context in a memory buffer window for continuity
- 3.Process message through an AI agent connected to OpenAI language models
- 4.Evaluate conditional logic to determine required response type and workflow path
- 5.Execute necessary tools and sub-workflows based on agent decision
- 6.Send structured response back to Slack channel via webhook integration
Use cases
- Provide intelligent team support by answering questions without manual intervention
- Generate automated reports and data analysis shared directly in Slack channels
- Route and assign tasks automatically based on message content and context
Requirements
- Valid OpenAI API key with access to chat models
- Active Slack workspace with bot permissions for sending and receiving messages
- Configured webhook URL for secure communication between Slack and n8n platform
Service Value
Ideal as a smart automation service combining integrations and AI to produce ready-to-use results.
Apps Used
Details
How to Use
- 1.Click "Download Template"
- 2.Open your n8n dashboard
- 3.Go to Workflows > Import from File
- 4.Select downloaded file and configure credentials
Nodes Used (20)
Verify Webhook
Webhook
OpenAI Chat Model
OpenAI
No Operation, do nothing
No Op
Window Buffer Memory
Memory Buffer Window
Check if Bot
If
Send Initial Message
Slack
Delete Initial Message
Slack
Send Message
Slack
Sticky Note
Sticky Note
Sticky Note1
Sticky Note
Sticky Note2
Sticky Note
Sticky Note3
Sticky Note
Sticky Note4
Sticky Note
Sticky Note5
Sticky Note
Sticky Note6
Sticky Note
Sticky Note7
Sticky Note
Sticky Note8
Sticky Note
Receive DMs
Webhook
Call Confluence Workflow Tool
Tool Workflow
AI Agent
Agent