{
  "name": "Get a Discord Alert Whenever Your Keyword Trends on YouTube",
  "nodes": [
    {
      "name": "YouTube — Search",
      "type": "n8n-nodes-base.youTube",
      "typeVersion": 1,
      "parameters": {
        "operation": "search",
        "keyword": "YOUR_KEYWORD"
      },
      "notes": "Search for your keyword on a schedule.",
      "position": [
        260,
        300
      ]
    },
    {
      "name": "Remove Duplicates",
      "type": "n8n-nodes-base.removeDuplicates",
      "typeVersion": 1,
      "parameters": {},
      "notes": "Compare against previously seen IDs.",
      "position": [
        500,
        300
      ]
    },
    {
      "name": "Notify Discord",
      "type": "n8n-nodes-base.discord",
      "typeVersion": 1,
      "parameters": {
        "text": "=New mention: {{ $json.title }} — {{ $json.link }}"
      },
      "notes": "Connect this channel's credential.",
      "position": [
        740,
        300
      ]
    },
    {
      "name": "Respond / Finish",
      "type": "n8n-nodes-base.noOp",
      "typeVersion": 1,
      "parameters": {},
      "notes": "End of flow — extend with extra steps as needed.",
      "position": [
        980,
        300
      ]
    }
  ],
  "connections": {
    "YouTube — Search": {
      "main": [
        [
          {
            "node": "Remove Duplicates",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Remove Duplicates": {
      "main": [
        [
          {
            "node": "Notify Discord",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Notify Discord": {
      "main": [
        [
          {
            "node": "Respond / Finish",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
