{
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "0a986ad8-37ca-4869-9071-2236cefddd49",
      "name": "Trigger Slack File Message",
      "type": "n8n-nodes-base.slackTrigger",
      "position": [
        -2460,
        -200
      ],
      "parameters": {
        "options": {},
        "trigger": [
          "message"
        ],
        "watchWorkspace": true
      },
      "credentials": {
        "slackApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "bb609575-b106-4786-8fe6-85f9eaed45c0",
      "name": "Download Media from Slack",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -2100,
        -200
      ],
      "parameters": {
        "url": "={{ $('Trigger Slack File Message').item.json.files[0].url_private_download }}",
        "options": {
          "response": {
            "response": {}
          }
        },
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth"
      },
      "credentials": {
        "httpHeaderAuth": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "5248c9ad-adbb-419d-a193-cf97efc14541",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2560,
        -260
      ],
      "parameters": {
        "width": 320,
        "height": 220,
        "content": "This node listens for new messages in Slack that include file attachments."
      },
      "typeVersion": 1
    },
    {
      "id": "b363e861-cf22-4be9-a534-414d98190da0",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2180,
        -260
      ],
      "parameters": {
        "width": 320,
        "height": 220,
        "content": "This node downloads the file from the Slack message using the private download URL. "
      },
      "typeVersion": 1
    }
  ],
  "connections": {
    "Trigger Slack File Message": {
      "main": [
        [
          {
            "node": "Download Media from Slack",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}