{
  "name": "Generate AI trading alerts from CoinGecko and Alpha Vantage via Slack, email and SMS",
  "nodes": [
    {
      "id": "df58effa-87e1-49b9-97ea-61f70e0df077",
      "name": "Sticky Note - Main Overview",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2128,
        48
      ],
      "parameters": {
        "width": 820,
        "height": 720,
        "content": "## AI Trading Alert Bot\n\nAutomates market data fetching, technical analysis, and AI-powered buy/sell signal generation. Monitors multiple cryptocurrencies and stocks in real-time, analyzes price trend"
      }
    },
    {
      "id": "e241f436-9465-4416-987e-c1bd09529e25",
      "name": "Sticky Note - Group 1: Trigger",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1216,
        144
      ],
      "parameters": {
        "width": 468,
        "height": 465,
        "content": "## 1. Trigger\n\nAutomatically runs every 15 minutes to fetch fresh market data and generate trading signals"
      }
    },
    {
      "id": "a0b528ba-0f7a-40d8-a39d-e0be3723646f",
      "name": "Sticky Note - Group 2: Data Collection",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -704,
        160
      ],
      "parameters": {
        "width": 668,
        "height": 353,
        "content": "## 2. Fetch & Prepare Data\n\nCollects real-time market data from APIs and prepares it for technical analysis in parallel"
      }
    },
    {
      "id": "0a5bcdee-af88-48d6-af7c-39caad584c53",
      "name": "Sticky Note - Group 3: Analysis & AI",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -16,
        -160
      ],
      "parameters": {
        "width": 684,
        "height": 905,
        "content": "## 3. Analysis & Signal Generation\n\nCalculates technical indicators and uses AI/ML model to generate buy/sell signals with confidence scores"
      }
    },
    {
      "id": "947d885d-6a03-41ed-a63e-baf777e03785",
      "name": "Sticky Note - Group 4: Alert & Execute",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        704,
        32
      ],
      "parameters": {
        "width": 960,
        "height": 697,
        "content": "## 4. Validate, Alert & Store\n\nFilters signals, sends notifications across multiple channels, logs trades, and stores in database"
      }
    },
    {
      "id": "e3fc0d75-1aba-4ff4-b964-3a442811c1fc",
      "name": "Market Data Trigger - Every 15 minutes",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -1088,
        352
      ]
    },
    {
      "id": "60e75270-eef8-440f-ae79-dd86ad82e51e",
      "name": "Fetch cryptocurrency prices from CoinGecko",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -864,
        256
      ]
    },
    {
      "id": "d1da9648-5725-4cd0-924c-a830e03b45e3",
      "name": "Fetch stock prices from Alpha Vantage",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -864,
        448
      ]
    },
    {
      "id": "0472f691-42f8-42c8-9d76-bf9994a211c6",
      "name": "Combine crypto and stock market data",
      "type": "n8n-nodes-base.merge",
      "position": [
        -640,
        352
      ]
    },
    {
      "id": "0b9f2def-882f-4cee-8045-d336f27e16c6",
      "name": "Calculate technical indicators",
      "type": "n8n-nodes-base.code",
      "position": [
        -416,
        352
      ]
    },
    {
      "id": "3fac4998-d581-4eb8-915d-cef725e0ab8b",
      "name": "Call AI model for signal prediction",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -192,
        352
      ]
    },
    {
      "id": "57960c95-154b-461f-b4c1-b4a470ded867",
      "name": "Analyze AI signals and confidence",
      "type": "n8n-nodes-base.code",
      "position": [
        32,
        352
      ]
    },
    {
      "id": "617614c7-0653-4794-b391-ff61f23daf70",
      "name": "Validate signal strength and filter",
      "type": "n8n-nodes-base.filter",
      "position": [
        256,
        352
      ]
    },
    {
      "id": "6e7fe960-95fd-42de-89a6-481b0f626327",
      "name": "Store trade signal in PostgreSQL",
      "type": "n8n-nodes-base.postgres",
      "position": [
        480,
        352
      ]
    },
    {
      "id": "ccb1db3e-3a2e-47f2-aa8c-3e625ab4dba5",
      "name": "Route by signal action",
      "type": "n8n-nodes-base.switch",
      "position": [
        704,
        352
      ]
    },
    {
      "id": "80d775b9-32e2-4524-a10b-32c5a33ad281",
      "name": "Generate trading alert message",
      "type": "n8n-nodes-base.code",
      "position": [
        928,
        352
      ]
    },
    {
      "id": "4df28f21-bcf8-4a76-bfc1-ef2ba9175c7b",
      "name": "Send Slack notification",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1152,
        160
      ]
    },
    {
      "id": "007071f0-fc96-4b3e-9f91-1a5724f162fa",
      "name": "Send Email alert",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        1152,
        352
      ]
    },
    {
      "id": "794e696c-8471-4c44-b5cd-af540408ed39",
      "name": "Send SMS alert (Twilio)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1152,
        544
      ]
    },
    {
      "id": "79e9381e-dbe8-4e3c-8114-29e9bd56c1a7",
      "name": "Log trade execution and success",
      "type": "n8n-nodes-base.code",
      "position": [
        1376,
        352
      ]
    }
  ],
  "connections": {
    "Send Email alert": {
      "main": [
        [
          {
            "node": "Log trade execution and success",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Route by signal action": {
      "main": [
        [
          {
            "node": "Generate trading alert message",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Generate trading alert message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send SMS alert (Twilio)": {
      "main": [
        [
          {
            "node": "Log trade execution and success",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Slack notification": {
      "main": [
        [
          {
            "node": "Log trade execution and success",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Calculate technical indicators": {
      "main": [
        [
          {
            "node": "Call AI model for signal prediction",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate trading alert message": {
      "main": [
        [
          {
            "node": "Send Slack notification",
            "type": "main",
            "index": 0
          },
          {
            "node": "Send Email alert",
            "type": "main",
            "index": 0
          },
          {
            "node": "Send SMS alert (Twilio)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Store trade signal in PostgreSQL": {
      "main": [
        [
          {
            "node": "Route by signal action",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Analyze AI signals and confidence": {
      "main": [
        [
          {
            "node": "Validate signal strength and filter",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Call AI model for signal prediction": {
      "main": [
        [
          {
            "node": "Analyze AI signals and confidence",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Validate signal strength and filter": {
      "main": [
        [
          {
            "node": "Store trade signal in PostgreSQL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Combine crypto and stock market data": {
      "main": [
        [
          {
            "node": "Calculate technical indicators",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch stock prices from Alpha Vantage": {
      "main": [
        [
          {
            "node": "Combine crypto and stock market data",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Market Data Trigger - Every 15 minutes": {
      "main": [
        [
          {
            "node": "Fetch cryptocurrency prices from CoinGecko",
            "type": "main",
            "index": 0
          },
          {
            "node": "Fetch stock prices from Alpha Vantage",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch cryptocurrency prices from CoinGecko": {
      "main": [
        [
          {
            "node": "Combine crypto and stock market data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}