Automate Slack message summaries using this powerful n8n workflow. Trigger via a slash command, leverage Claude AI, and post ephemeral results. Get started with n8n templates today.
Download this n8n workflow template and start using it instantly.
Team leads and managers overwhelmed by high-volume Slack channels.
Users looking for advanced examples of integrating LLMs (Large Language Models) like Claude into live applications.
Automation specialists seeking effective n8n templates for workplace productivity.
Developers needing to implement custom Slack slash commands using an n8n workflow.
Keeping up with busy Slack channels can be a massive time sink. This innovative n8n workflow provides an instant solution by summarizing recent activity on demand using a simple Slack slash command (/summarize). When triggered, this automation securely pulls recent messages, structures the data, and passes it to the Anthropic Claude AI model. The powerful Claude AI then generates a comprehensive summary, grouping threads and even suggesting actionable replies. The result is posted back to the user privately (ephemerally) in the channel, ensuring the channel feed remains clean. This specific n8n workflow is a prime example of high-utility AI automation, demonstrating how an n8n node can bridge communication platforms and advanced machine learning models efficiently. It is one of the most practical n8n templates available for streamlining communication.
This comprehensive n8n workflow operates through the following sequence:
/summarize slash command in Slack. The Slash Command Webhook n8n trigger receives the POST request.Parse Request n8n node, a Code node, extracts crucial context from the Slack payload, including the channelid, user token, and userid.Fetch Unread Messages HTTP Request n8n node uses the extracted channel ID and bearer token to call the Slack API (conversations.history), retrieving the last 20 messages in the channel.Prepare Prompt for Claude Code n8n node formats the list of raw messages into a structured, chronologically ordered text string suitable for complex LLM analysis.Claude AI: Summarize LangChain n8n node, which uses the Anthropic Chat Model (configured with Claude 4 Sonnet) to perform the high-level summarization and reply suggestion task.Build Slack Blocks n8n node takes the summarized text output from Claude and structures it into a Slack message block format.Post to Slack (Ephemeral) HTTP Request n8n node sends the beautifully formatted summary back to the initiating user in the correct channel using the chat.postEphemeral API, completing the n8n workflow.To deploy this powerful n8n workflow using one of our advanced n8n templates, follow these steps:
Anthropic Chat Model n8n node with your Anthropic API Key. This is essential for the Claude AI functionality./summarize). Configure this command to point to the Webhook URL provided by the initial Slash Command Webhook n8n trigger node. Ensure the webhook path is set to /summarize.channels:history, chat:write, chat:write.ephemeral) to read messages and post replies. Slash Command Webhook (n8n trigger):
Function: Serves as the primary n8n trigger, listening for POST requests from the custom Slack slash command.
Key Configuration: Path set to /summarize.
Parse Request (Code n8n node):
Function: Safely extracts the necessary channel ID, user ID, and temporary token from the Slack command payload, making them accessible in subsequent n8n nodes.
Fetch Unread Messages (HTTP Request n8n node):
Function: Interacts with the Slack API (conversations.history) to retrieve the last 20 messages in the channel where the slash command was used.
Key Configuration: Uses the dynamic token provided by the trigger for Authorization (Bearer Token).
Anthropic Chat Model (LLM n8n node):
Function: Defines the AI provider and model used for processing. This n8n node is configured to use Claude 4 Sonnet, providing state-of-the-art summarization capabilities.
Claude AI: Summarize (Langchain n8n node):
Function: Executes the prompt chain against the Anthropic model, directing the AI to summarize messages, group threads, and suggest replies.
Post to Slack (Ephemeral) (HTTP Request n8n node):
Function: The final action in the n8n workflow, sending the AI-generated summary back to the user privately via the chat.postEphemeral API endpoint.
Use this advanced n8n workflow to scrape Glassdoor data via Decodo API, applying Google Gemini's AI capabilities for structured data extraction and intelligent summarization, outputting a complete JSON report.

Automate weekly team reports by summarizing Slack messages using a powerful n8n workflow. This n8n templates uses AI to analyze conversations, identify wins, and post a final report.

Use this powerful n8n workflow to automatically summarize weekly Microsoft Teams channel activity using OpenAI, generating individual and team reports posted every Monday.

Automate Apple App Store review analysis using an advanced n8n workflow. Fetch daily reviews, store them in Pinecone, summarize weekly with OpenAI (GPT-4.1-mini), and send reports via Slack.

Use this powerful n8n workflow to summarize customer calls using OpenAI, automatically update contact notes in HubSpot, and intelligently route the full transcript to the relevant internal department via Gmail, Slack, and WhatsApp. Ideal n8n templates for sales operations.









































