{
  "name": "Twitter/X Mentions \u2192 Slack",
  "nodes": [
    {
      "parameters": {
        "search": "@yourbrand"
      },
      "id": "twitter",
      "name": "Twitter Search",
      "type": "n8n-nodes-base.twitter",
      "typeVersion": 1,
      "position": [
        250,
        300
      ]
    },
    {
      "parameters": {
        "jsCode": "const t=$input.first().json; return {text:t.text,author:'@'+t.user.screen_name,url:'https://twitter.com/'+t.user.screen_name+'/status/'+t.id_str};"
      },
      "id": "fmt",
      "name": "Format",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        450,
        300
      ]
    },
    {
      "parameters": {
        "channel": "social-mentions",
        "text": "={{ 'New mention from '+$json.author+': '+$json.text }}"
      },
      "id": "slack",
      "name": "Slack Alert",
      "type": "n8n-nodes-base.slack",
      "typeVersion": 2.1,
      "position": [
        650,
        300
      ]
    }
  ],
  "connections": {
    "Twitter Search": {
      "main": [
        [
          {
            "node": "Format",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format": {
      "main": [
        [
          {
            "node": "Slack Alert",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}