{
  "name": "Send cryptocurrency price threshold alerts from CoinGecko to Discord",
  "nodes": [
    {
      "id": "33a95d3d-6ed1-4930-aad4-9332ffdca917",
      "name": "CoinGecko",
      "type": "n8n-nodes-base.coinGecko",
      "position": [
        -40,
        -60
      ]
    },
    {
      "id": "273ef562-bc09-41f1-86d4-105b98ff5752",
      "name": "When clicking ‘Execute workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -440,
        -200
      ]
    },
    {
      "id": "32a3380a-1f73-476d-a5ae-60c8f2b74968",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -440,
        20
      ]
    },
    {
      "id": "7ab0b8b0-55cb-44a7-8364-e258dc35878f",
      "name": "Set Low and High",
      "type": "n8n-nodes-base.set",
      "position": [
        180,
        -60
      ]
    },
    {
      "id": "f473f8df-9f4b-4cba-940a-7c2fac36301f",
      "name": "Check movement",
      "type": "n8n-nodes-base.if",
      "position": [
        480,
        -60
      ]
    },
    {
      "id": "cd5bbd3e-9e4b-4270-91db-525656e63da2",
      "name": "Check Direction",
      "type": "n8n-nodes-base.if",
      "position": [
        740,
        -60
      ]
    },
    {
      "id": "deea1b59-20ec-462e-8721-c30c253d2774",
      "name": "Message High",
      "type": "n8n-nodes-base.discord",
      "position": [
        1260,
        -160
      ]
    },
    {
      "id": "4724b211-3046-431d-875e-df88cfeb298a",
      "name": "Message Low",
      "type": "n8n-nodes-base.discord",
      "position": [
        1260,
        80
      ]
    },
    {
      "id": "5f95d096-759a-4563-abac-a4e7484ce6f9",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -560,
        -340
      ],
      "parameters": {
        "width": 360,
        "height": 520,
        "content": "# Triggers\nSet the trigger time\n– Run manually or on a schedule."
      }
    },
    {
      "id": "f1cccde7-715e-420d-90a9-0e3a0941cc68",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -120,
        -340
      ],
      "parameters": {
        "width": 480,
        "height": 520,
        "content": "# Coin and Price Thresholds\nSelect a coin and define price limits\n– Fetch current price from CoinGecko\n– Set your custom low and high price thresholds.\n\n"
      }
    },
    {
      "id": "c0bccb72-5d15-40b6-9fc3-743af1a767b9",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        440,
        -340
      ],
      "parameters": {
        "width": 480,
        "height": 520,
        "content": "# Logic\nCheck if price crosses defined thresholds\n– Compare the current price with your limits\n– Determine if the movement is above or below threshold.\n\n"
      }
    },
    {
      "id": "ddf127e2-4432-4552-b685-03a44b61da76",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        960,
        -340
      ],
      "parameters": {
        "width": 580,
        "height": 580,
        "content": "# Send Alert on Discord\nNotify when price is too high or too low\n– Send a “High” alert if price is above threshold\n– Send a “Low” alert if price is below threshold.\n\nSet your connection and channel"
      }
    },
    {
      "id": "76028425-c4df-4d52-945d-93140f700bbc",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1180,
        60
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "727a423a-f836-4624-ac03-8c0eb94c9460",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1180,
        -180
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "66a1ccf8-07d0-4244-8e81-ae6f912ea13a",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1600,
        -360
      ],
      "parameters": {
        "width": 580,
        "height": 620,
        "content": "# 📈 Crypto Price Alert Workflow\n\nThis workflow monitors the price of a selected cryptocurrency using CoinGecko API and sends alerts to Discord when the price goes above or below your defined threshold"
      }
    }
  ],
  "connections": {
    "CoinGecko": {
      "main": [
        [
          {
            "node": "Set Low and High",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check movement": {
      "main": [
        [
          {
            "node": "Check Direction",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Direction": {
      "main": [
        [
          {
            "node": "Message High",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Message Low",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "CoinGecko",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Low and High": {
      "main": [
        [
          {
            "node": "Check movement",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "CoinGecko",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}