{
  "name": "Benchmark Activo — RSS a Slack",
  "nodes": [
    {
      "parameters": {
        "content": "## 📰 Benchmark Activo — RSS a Slack\n\n**Qué hace:** Cada hora lee el feed RSS de un competidor y publica las novedades en un canal de Slack.\n\n**Cómo usarlo:**\n1. Importa este archivo: Workflows → Import from File.\n2. En *RSS Feed Read*, reemplaza la URL por el feed real de tu competidor (ej. blog.competidor.com/rss o /feed).\n3. En *Send to Slack*, conecta tu credencial de Slack y elige el canal (recomendado: #benchmark-competencia).\n4. Activa el workflow (toggle arriba a la derecha).\n\n**Tip:** duplica los nodos RSS para monitorear varios competidores en paralelo.",
        "height": 380,
        "width": 420
      },
      "name": "Instrucciones",
      "type": "n8n-nodes-base.stickyNote",
      "position": [180, -140]
    },
    {
      "parameters": {
        "rule": {
          "interval": [{"field": "minutes", "minutesInterval": 60}]
        }
      },
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [250, 300]
    },
    {
      "parameters": {
        "url": "https://blog.competidor.com/rss",
        "options": {}
      },
      "name": "RSS Feed Read",
      "type": "n8n-nodes-base.rssFeedRead",
      "position": [450, 300]
    },
    {
      "parameters": {
        "conditions": {
          "options": {"caseSensitive": true, "typeValidation": "strict"},
          "conditions": [{
            "id": "filter-1",
            "leftValue": "={{ $json.title }}",
            "rightValue": "",
            "operator": {"type": "string", "operation": "notEmpty"}
          }]
        }
      },
      "name": "Filter: Has Title",
      "type": "n8n-nodes-base.if",
      "position": [650, 300]
    },
    {
      "parameters": {
        "keepOnlySet": true,
        "values": [
          {"name": "text", "value": "={{ '📰 *' + $json.title + '*\n' + $json.contentSnippet + '\n🔗 ' + $json.link }}" }
        ]
      },
      "name": "Format Message",
      "type": "n8n-nodes-base.set",
      "position": [850, 300]
    },
    {
      "parameters": {
        "channel": "#benchmark",
        "text": "={{ $json.text }}"
      },
      "name": "Send to Slack",
      "type": "n8n-nodes-base.slack",
      "position": [1050, 300]
    }
  ],
  "connections": {
    "Schedule Trigger": {
      "main": [[{"node": "RSS Feed Read", "type": "main", "index": 0}]]
    },
    "RSS Feed Read": {
      "main": [[{"node": "Filter: Has Title", "type": "main", "index": 0}]]
    },
    "Filter: Has Title": {
      "main": [
        [{"node": "Format Message", "type": "main", "index": 0}],
        []
      ]
    },
    "Format Message": {
      "main": [[{"node": "Send to Slack", "type": "main", "index": 0}]]
    }
  }
}
