Skip to main content

Automated Slack channel inactivity audit & report generator for workspace cleanup

Workflow preview

Workflow preview
100%
Automated Slack channel inactivity audit & report generator for workspace cleanup preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Automated Slack Channel Audit Workflow with Chatbot and GPT 4.1 Automatically scans all pu...

Best for

  • AI Summarization automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.slack, n8n-nodes-base.filter, n8n-nodes-base.code, n8n-nodes-base.scheduletrigger, n8n-nodes-base.stickynote

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Trung Tran.

Original n8n.io source

1.1 Workflow description

Title
Automated Slack channel inactivity audit & report generator for workspace cleanup
Workflow name
Automated Slack channel inactivity audit & report generator for workspace cleanup

Automated Slack Channel Audit Workflow with Chatbot and GPT-4.1

> Automatically scans all public Slack channels weekly to detect those with no activity in the past 30 days, then generates and sends a detailed inactivity report to admins for review and action. Helps keep your Slack workspace clean, relevant, and clutter-free.

πŸ§‘β€πŸ’Ό Who’s it for

This workflow is built for:

  • Slack Workspace Admins
  • IT or Ops Managers
  • HR/Compliance Teams …who want to maintain a clean and active Slack workspace by regularly reviewing inactive channels.

βš™οΈ How it works / What it does

This automated n8n workflow:

  1. Runs weekly via a scheduled trigger.
  2. Fetches all public Slack channels in the workspace.
  3. Checks message history of each channel for activity.
  4. Filters channels that have had no discussion in the past 30 days.
  5. Generates a Slack-friendly report with key metadata (name, member count, purpose, etc.).
  6. Sends the report to a Slack channel for admin review and possible action (e.g., archive, engage, repurpose).

πŸ› οΈ How to set up

  1. Configure your Slack App

    • Go to https://api.slack.com/apps β†’ Create App
    • Add the following OAuth scopes to your Bot Token:
      • channels:read β†’ to get list of public channels
      • channels:history β†’ to fetch message history
      • users:read β†’ to personalize report (optional)
      • chat:write β†’ to post the report to a Slack channel
  2. Install the app in your workspace

    • Copy the Bot User OAuth Token
    • Add it to your n8n Slack credentials under "Slack API"
  3. Customize the schedule in the "Weekly Schedule Trigger" node to control report frequency.

  4. Connect your Slack workspace to the workflow using your credentials.

βœ… Requirements

  • n8n (self-hosted or cloud)
  • Slack App with:
    • channels:read
    • channels:history
    • chat:write
  • Active channels and member data
  • A designated Slack channel to receive the report

πŸ”§ How to customize the workflow

Component Customization Options
⏱️ Schedule Trigger Change to daily, monthly, etc.
πŸ“… Inactivity Threshold Modify Filter channel with last discussion 30 days ago to 60/90 days
πŸ“Š Report Formatting Tweak the Consume slack report node to change formatting or summary
πŸ’¬ Output Channel Change target channel in Send Channel Inactivity Report
🚫 Auto-archiving Add logic to archive channels with 0 members or activity (using Slack API)

πŸ“ Slack Permissions Reference

Action Slack Scope Required
Get all public channels channels:read
Get message history of a channel channels:history
Post message to Slack chat:write
Get user info (optional) users:read

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Get many channels

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.3

Block 2 - Get the history of a channel

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.3

Block 3 - Filter channel with last discussion 30 days ago

Type / Role
n8n-nodes-base.filter - filter
Config choices
Version 2.2

Block 4 - Collect expired channel information

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 5 - Consume slack report

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 6 - Send Channel Inactivity Report

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.3

Block 7 - Weekly Schedule Trigger

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 8 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 9 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 10 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - Sticky Note6

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - Sticky Note7

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 16 - Sticky Note8

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Automated Slack channel inactivity audit & report generator for workspace cleanup
Complexity advanced
Nodes 16
Categories AI Summarization, Multimodal AI
Author Trung Tran
Published 22 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/7728/7728.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Automated Slack channel inactivity audit & report generator for workspace cleanup do?

Automated Slack Channel Audit Workflow with Chatbot and GPT 4.1 Automatically scans all pu...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your AI Summarization, Multimodal AI use case.