{
  "name": "Social Media Brand Monitor",
  "nodes": [
    {
      "parameters": {
        "operation": "search",
        "searchText": "yourbrandname",
        "returnAll": false,
        "limit": 10
      },
      "id": "twitter-search",
      "name": "Search Twitter",
      "type": "n8n-nodes-base.twitter",
      "typeVersion": 1,
      "position": [
        250,
        300
      ]
    },
    {
      "parameters": {
        "conditions": {
          "string": [
            {
              "value1": "={{ $json.text }}",
              "operation": "contains",
              "value2": "yourbrandname"
            }
          ]
        }
      },
      "id": "filter-brand",
      "name": "Mentions Brand?",
      "type": "n8n-nodes-base.if",
      "typeVersion": 1,
      "position": [
        500,
        300
      ]
    },
    {
      "parameters": {
        "channel": "#social-mentions",
        "text": "=@{{ $json.user.screen_name }}: {{ $json.text }}\nhttps://twitter.com/{{ $json.user.screen_name }}/status/{{ $json.id }}"
      },
      "id": "slack-alert",
      "name": "Alert Slack",
      "type": "n8n-nodes-base.slack",
      "typeVersion": 1,
      "position": [
        750,
        300
      ]
    },
    {
      "parameters": {
        "operation": "append",
        "documentId": {
          "value": "social-mentions",
          "mode": "raw"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "platform": "twitter",
            "username": "={{ $json.user.screen_name }}",
            "text": "={{ $json.text }}",
            "url": "=https://twitter.com/{{ $json.user.screen_name }}/status/{{ $json.id }}"
          }
        }
      },
      "id": "log-sheets",
      "name": "Log Mentions",
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4,
      "position": [
        1000,
        300
      ]
    }
  ],
  "connections": {
    "Search Twitter": {
      "main": [
        [
          {
            "node": "Mentions Brand?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Mentions Brand?": {
      "main": [
        [
          {
            "node": "Alert Slack",
            "type": "main",
            "index": 0
          }
        ],
        []
      ]
    },
    "Alert Slack": {
      "main": [
        [
          {
            "node": "Log Mentions",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {},
  "staticData": null
}