{
  "name": "SEC EDGAR 10-K & 8-K Filing Monitor to Slack / Discord Webhook",
  "nodes": [
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "hours",
              "hoursInterval": 4
            }
          ]
        }
      },
      "id": "22222222-0000-0000-0000-000000000001",
      "name": "Every 4 Hours",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.1,
      "position": [
        250,
        300
      ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.apify.com/v2/acts/captainhandsome~sec-edgar-filings-search/runs",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendBody": true,
        "contentType": "raw",
        "rawContentType": "application/json",
        "body": "={\n  \"tickers\": [\"AAPL\", \"MSFT\", \"NVDA\", \"TSLA\"],\n  \"form_types\": [\"10-K\", \"8-K\"],\n  \"max_items\": 10\n}",
        "options": {}
      },
      "id": "22222222-0000-0000-0000-000000000002",
      "name": "Search SEC EDGAR",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.1,
      "position": [
        480,
        300
      ]
    },
    {
      "parameters": {
        "amount": 20,
        "unit": "seconds"
      },
      "id": "22222222-0000-0000-0000-000000000003",
      "name": "Wait for SEC Run",
      "type": "n8n-nodes-base.wait",
      "typeVersion": 1,
      "position": [
        700,
        300
      ]
    },
    {
      "parameters": {
        "method": "GET",
        "url": "=https://api.apify.com/v2/datasets/{{ $json.data.defaultDatasetId }}/items?clean=true&format=json",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "options": {}
      },
      "id": "22222222-0000-0000-0000-000000000004",
      "name": "Get Recent Filings",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.1,
      "position": [
        920,
        300
      ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "YOUR_SLACK_OR_DISCORD_WEBHOOK_URL",
        "sendBody": true,
        "contentType": "raw",
        "rawContentType": "application/json",
        "body": "={\n  \"text\": \"*New SEC Filing Detected*\\n*Company:* {{ $json.company_name }} ({{ $json.ticker }})\\n*Form:* {{ $json.form_type }}\\n*Filed:* {{ $json.filing_date }}\\n*Link:* {{ $json.filing_url }}\"\n}",
        "options": {}
      },
      "id": "22222222-0000-0000-0000-000000000005",
      "name": "Send Notification",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.1,
      "position": [
        1140,
        300
      ]
    }
  ],
  "connections": {
    "Every 4 Hours": {
      "main": [
        [
          {
            "node": "Search SEC EDGAR",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Search SEC EDGAR": {
      "main": [
        [
          {
            "node": "Wait for SEC Run",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait for SEC Run": {
      "main": [
        [
          {
            "node": "Get Recent Filings",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Recent Filings": {
      "main": [
        [
          {
            "node": "Send Notification",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "meta": {
    "templateId": "apify-sec-edgar-filing-alerts",
    "instanceId": "community-template",
    "description": "Monitor real-time SEC 10-K and 8-K material event filings for target stock tickers using captainhandsome/sec-edgar-filings-search and dispatch instant webhook alerts."
  }
}
