Slack Media File Downloader - n8n Workflow

Automate downloading media and files shared in Slack using this specialized n8n workflow. Instantly save attachments from any Slack channel or workspace using the n8n trigger.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?

n8n users seeking practical Slack automation.
Teams who need to archive shared media and files outside of the Slack platform.
Developers needing reliable n8n templates for handling file transfers.
Administrators monitoring file sharing within their Slack workspace.

Overview

This specialized n8n workflow provides a robust solution for instantly capturing and downloading media files shared within your Slack workspace. Leveraging a dedicated n8n trigger, the automation starts the moment a file attachment is detected in a message. This is a crucial n8n workflow for organizations requiring external archival, backup processes, or further automated handling of incoming visual and media assets. Unlike simple monitoring, this n8n template actively pulls the binary data, ensuring you have immediate access to the shared content.

How it Works

The process begins with the Slack Trigger n8n node, titled 'Trigger Slack File Message'. This powerful n8n trigger is configured to listen for new 'message' events across the workspace, specifically activating only when a file is included. Once triggered, the n8n workflow immediately extracts the critical urlprivatedownload link from the incoming data payload. The subsequent 'Download Media from Slack' n8n node, which is an HTTP Request node, uses this dynamic URL. It executes a secure download operation, using dedicated HTTP Header Authentication credentials (containing the necessary Slack token) to access the private file. This ensures the media file is successfully transferred to your n8n instance for subsequent processing or storage.

Installation Guide

To deploy this n8n workflow template, follow these steps:


  1. Import the JSON: Copy the provided JSON data and paste it into your n8n instance via the 'New' menu -> 'Import from JSON'.

  2. Slack Trigger Credentials: You must configure the 'Trigger Slack File Message' n8n node with a Slack API credential that has the necessary scopes (files:read, channels:read, groups:read, im:read, mpim:read) to monitor messages and files across your workspace.

  3. HTTP Request Credentials: Configure the 'Download Media from Slack' n8n node with an HTTP Header Auth credential. This credential must contain your Slack User OAuth Token (which should be used as the bearer token in the Authorization header) to permit private file downloads.

  4. Activation: Ensure the n8n workflow is activated (set to 'Active') so that the n8n trigger begins listening for incoming Slack file messages.

Node Details

Trigger Slack File Message (Slack Trigger n8n node):
Function: Serves as the primary n8n trigger for the entire n8n workflow. It initiates execution whenever a new message containing a file attachment is posted in any monitored channel or direct message.
Key Configuration: Listens for the message trigger type and monitors the entire workspace.

Download Media from Slack (HTTP Request n8n node):
Function: This critical n8n node executes the actual file transfer, downloading the media from the secure Slack URL.
Key Configuration: The URL is dynamically generated using an expression: ={{ $('Trigger Slack File Message').item.json.files[0].urlprivatedownload }}. It uses generic credential authentication (HTTP Header Auth) to pass the required Authorization header for accessing private files, a necessary step in this type of n8n workflow.

Related n8n Workflows

Free

Nodes: 3 Nodes
Updated: December 26 2025
View all
Created by

Full Stack Website Developer & Automation Expert

Featured*