{
  "name": "Get a Telegram Alert Whenever Your Keyword Trends on X (Twitter)",
  "nodes": [
    {
      "name": "X (Twitter) — Search",
      "type": "n8n-nodes-base.twitter",
      "typeVersion": 2,
      "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 Telegram",
      "type": "n8n-nodes-base.telegram",
      "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": {
    "X (Twitter) — Search": {
      "main": [
        [
          {
            "node": "Remove Duplicates",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Remove Duplicates": {
      "main": [
        [
          {
            "node": "Notify Telegram",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Notify Telegram": {
      "main": [
        [
          {
            "node": "Respond / Finish",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
