{
  "name": "FOMC / CPI High-Impact USD Alerts \u2192 Telegram",
  "nodes": [
    {
      "parameters": {
        "content": "## FOMC / CPI Telegram Alerts\n\nPolls the **economic-calendar-pro** Apify actor every morning, filters for high-impact USD events (FOMC, CPI, NFP, etc.) happening today, and sends them to a Telegram chat.\n\n### Setup\n1. **Apify token** \u2014 open the *Fetch Economic Calendar* node and replace `YOUR_APIFY_TOKEN` in the Authorization header (get one free at apify.com \u2192 Settings \u2192 Integrations).\n2. **Telegram** \u2014 create a bot with @BotFather, add Telegram credentials in n8n, and set your `chatId` in the *Send Telegram Alert* node.\n3. Adjust the schedule (default: 07:00 daily) and the impact/currency filter to taste.\n\nActor: https://apify.com/ichigowa/economic-calendar-pro",
        "height": 420,
        "width": 380
      },
      "id": "a1b2c3d4-0001-4000-8000-000000000001",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -460,
        -80
      ]
    },
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "cronExpression",
              "expression": "0 7 * * 1-5"
            }
          ]
        }
      },
      "id": "a1b2c3d4-0002-4000-8000-000000000002",
      "name": "Every Weekday 07:00",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.2,
      "position": [
        0,
        0
      ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.apify.com/v2/acts/ichigowa~economic-calendar-pro/run-sync-get-dataset-items",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "Authorization",
              "value": "Bearer YOUR_APIFY_TOKEN"
            },
            {
              "name": "Content-Type",
              "value": "application/json"
            }
          ]
        },
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "{\n  \"weeks\": [\n    \"this\"\n  ],\n  \"currencies\": [\n    \"USD\"\n  ],\n  \"impacts\": [\n    \"High\"\n  ]\n}",
        "options": {
          "timeout": 120000
        }
      },
      "id": "a1b2c3d4-0003-4000-8000-000000000003",
      "name": "Fetch Economic Calendar",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        220,
        0
      ]
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": false,
            "typeValidation": "loose"
          },
          "conditions": [
            {
              "leftValue": "={{ $json.impact }}",
              "rightValue": "High",
              "operator": {
                "type": "string",
                "operation": "equals"
              }
            },
            {
              "leftValue": "={{ $json.currency }}",
              "rightValue": "USD",
              "operator": {
                "type": "string",
                "operation": "equals"
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "id": "a1b2c3d4-0004-4000-8000-000000000004",
      "name": "High-Impact USD Only",
      "type": "n8n-nodes-base.filter",
      "typeVersion": 2,
      "position": [
        440,
        0
      ]
    },
    {
      "parameters": {
        "chatId": "YOUR_TELEGRAM_CHAT_ID",
        "text": "=\ud83d\udd14 *{{ $json.title }}*\nCurrency: {{ $json.currency }} | Impact: {{ $json.impact }}\nTime (UTC): {{ $json.date_utc }}\nForecast: {{ $json.forecast || 'n/a' }} | Previous: {{ $json.previous || 'n/a' }}{{ $json.actual ? '\\nActual: ' + $json.actual : '' }}",
        "additionalFields": {
          "parse_mode": "Markdown"
        }
      },
      "id": "a1b2c3d4-0005-4000-8000-000000000005",
      "name": "Send Telegram Alert",
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1.2,
      "position": [
        660,
        0
      ]
    }
  ],
  "connections": {
    "Every Weekday 07:00": {
      "main": [
        [
          {
            "node": "Fetch Economic Calendar",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Economic Calendar": {
      "main": [
        [
          {
            "node": "High-Impact USD Only",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "High-Impact USD Only": {
      "main": [
        [
          {
            "node": "Send Telegram Alert",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  }
}