企业Redditinteligente参与平台

Avanzado

Este es unautomatización que contiene 52 nodos.Utiliza principalmente nodos como If, Code, Wait, Merge, Reddit. 基于AIdeReddit潜在clientegeneración与社区gestión,具备高级评分功能

Requisitos previos
  • Punto final de HTTP Webhook (n8n generará automáticamente)
  • Pueden requerirse credenciales de autenticación para la API de destino

Categoría

-
Vista previa del flujo de trabajo
Visualización de las conexiones entre nodos, con soporte para zoom y panorámica
Exportar flujo de trabajo
Copie la siguiente configuración JSON en n8n para importar y usar este flujo de trabajo
{
  "name": "Enterprise Reddit Intelligence & Engagement Platform",
  "tags": [
    "reddit",
    "ai",
    "lead-generation",
    "competitive-intelligence",
    "automation"
  ],
  "nodes": [
    {
      "name": "Nota Adhesiva de Descripción General",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        80,
        60
      ],
      "parameters": {
        "color": 4,
        "width": 450,
        "height": 320,
        "content": "## 🚀 Enterprise Reddit Intelligence Platform\n\n**Advanced Capabilities:**\n- 🎯 Multi-stage AI analysis (sentiment, intent, competitor tracking)\n- 🔍 Competitive intelligence monitoring\n- 🧪 A/B testing for engagement strategies\n- 🤖 ML-powered lead scoring & prioritization\n- 📊 Historical performance learning\n- 🔄 Multi-touch nurture sequences\n- 👥 Team collaboration & approval workflows\n- 📈 Cross-platform lead enrichment (LinkedIn, email)\n- 🛡️ Advanced quality & compliance checks\n- 📱 Real-time alerts & reporting\n\n**Handles 500+ daily interactions across 20+ subreddits**"
      },
      "typeVersion": 1,
      "id": "Nota-Adhesiva-de-Descripci-n-General-0"
    },
    {
      "name": "Activador Programado",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        250,
        400
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "hours",
              "hoursInterval": 3
            }
          ]
        }
      },
      "typeVersion": 1,
      "id": "Activador-Programado-1"
    },
    {
      "name": "Webhook Trigger",
      "type": "n8n-nodes-base.webhook",
      "position": [
        250,
        520
      ],
      "webhookId": "reddit-webhook-1",
      "parameters": {
        "path": "reddit-intelligence",
        "responseMode": "responseNode"
      },
      "typeVersion": 1,
      "id": "Webhook-Trigger-2"
    },
    {
      "name": "Activador Manual",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        250,
        640
      ],
      "parameters": {},
      "typeVersion": 1,
      "id": "Activador-Manual-3"
    },
    {
      "name": "Combinar Activadores",
      "type": "n8n-nodes-base.merge",
      "position": [
        450,
        500
      ],
      "parameters": {
        "mode": "mergeByPosition"
      },
      "typeVersion": 2,
      "id": "Combinar-Activadores-4"
    },
    {
      "name": "Nota Adhesiva 1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        580,
        60
      ],
      "parameters": {
        "color": 5,
        "width": 340,
        "height": 240,
        "content": "## 📋 Smart Subreddit Strategy\n\n**Dynamic Selection:**\n- Load from database (customizable)\n- Priority-based processing\n- Performance-based rotation\n- Industry-specific targeting\n- Trending subreddit detection\n\n**Includes:**\n- 20+ target subreddits\n- Competitor subreddit monitoring\n- Industry trend tracking\n- Niche community discovery"
      },
      "typeVersion": 1,
      "id": "Nota-Adhesiva-1-5"
    },
    {
      "name": "Cargar Configuración de Subreddit",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        650,
        500
      ],
      "parameters": {
        "url": "={{$env.DB_API_URL}}/config/subreddits",
        "options": {
          "retry": {
            "maxRetries": 3
          }
        },
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth"
      },
      "typeVersion": 3,
      "id": "Cargar-Configuraci-n-de-Subreddit-6"
    },
    {
      "name": "Nota Adhesiva 2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        780,
        60
      ],
      "parameters": {
        "color": 5,
        "width": 340,
        "height": 240,
        "content": "## 🔄 Parallel Processing Engine\n\n**Simultaneous Operations:**\n1. Target subreddit monitoring\n2. Competitor tracking\n3. Historical post analysis\n4. Trending topic detection\n\n**Efficiency:**\n- Process multiple subreddits at once\n- Reduce total execution time\n- Better resource utilization\n- Real-time responsiveness"
      },
      "typeVersion": 1,
      "id": "Nota-Adhesiva-2-7"
    },
    {
      "name": "Dividir Subreddits",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        850,
        500
      ],
      "parameters": {
        "batchSize": 5
      },
      "typeVersion": 3,
      "id": "Dividir-Subreddits-8"
    },
    {
      "name": "Nota Adhesiva 3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        980,
        60
      ],
      "parameters": {
        "color": 6,
        "width": 340,
        "height": 240,
        "content": "## 🕵️ Competitive Intelligence\n\n**Tracks Competitors:**\n- Competitor brand mentions\n- Service comparisons\n- Pricing discussions\n- Customer complaints\n- Market positioning\n\n**Actions:**\n- Alert team to competitor activity\n- Prepare counter-responses\n- Identify market gaps\n- Track sentiment shifts"
      },
      "typeVersion": 1,
      "id": "Nota-Adhesiva-3-9"
    },
    {
      "name": "Buscar Publicaciones",
      "type": "n8n-nodes-base.reddit",
      "position": [
        1050,
        400
      ],
      "parameters": {
        "sort": "new",
        "limit": 30,
        "resource": "post",
        "operation": "search",
        "subreddit": "={{$json.subreddit}}"
      },
      "credentials": {
        "redditOAuth2Api": {
          "id": "1",
          "name": "Reddit OAuth2"
        }
      },
      "typeVersion": 1,
      "id": "Buscar-Publicaciones-10"
    },
    {
      "name": "Buscar Menciones de Competidores",
      "type": "n8n-nodes-base.reddit",
      "position": [
        1050,
        600
      ],
      "parameters": {
        "sort": "new",
        "limit": 20,
        "query": "={{$env.COMPETITOR_KEYWORDS}}",
        "resource": "post",
        "operation": "search",
        "subreddit": "={{$json.subreddit}}"
      },
      "credentials": {
        "redditOAuth2Api": {
          "id": "1",
          "name": "Reddit OAuth2"
        }
      },
      "typeVersion": 1,
      "id": "Buscar-Menciones-de-Competidores-11"
    },
    {
      "name": "Combinar Resultados de Búsqueda",
      "type": "n8n-nodes-base.merge",
      "position": [
        1250,
        500
      ],
      "parameters": {
        "mode": "mergeByPosition"
      },
      "typeVersion": 2,
      "id": "Combinar-Resultados-de-B-squeda-12"
    },
    {
      "name": "Nota Adhesiva 4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1380,
        60
      ],
      "parameters": {
        "color": 6,
        "width": 340,
        "height": 240,
        "content": "## 🔍 Duplicate Prevention\n\n**Prevents Re-engagement:**\n- Checks historical engagement DB\n- Identifies already-commented posts\n- Tracks recent interactions\n- Prevents spam appearance\n\n**Database Lookup:**\n- Post ID matching\n- Author interaction history\n- Engagement recency\n- Success/failure tracking"
      },
      "typeVersion": 1,
      "id": "Nota-Adhesiva-4-13"
    },
    {
      "name": "Verificar Historial de Participación",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1450,
        500
      ],
      "parameters": {
        "url": "={{$env.DB_API_URL}}/engagement/check",
        "method": "POST",
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "postId",
              "value": "={{$json.id}}"
            },
            {
              "name": "author",
              "value": "={{$json.author}}"
            }
          ]
        }
      },
      "typeVersion": 3,
      "id": "Verificar-Historial-de-Participaci-n-14"
    },
    {
      "name": "Filtrar Publicaciones Nuevas",
      "type": "n8n-nodes-base.if",
      "position": [
        1650,
        500
      ],
      "parameters": {
        "conditions": {
          "boolean": [
            {
              "value1": "={{$json.alreadyEngaged}}",
              "value2": false
            }
          ]
        }
      },
      "typeVersion": 1,
      "id": "Filtrar-Publicaciones-Nuevas-15"
    },
    {
      "name": "Nota Adhesiva 5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1780,
        60
      ],
      "parameters": {
        "color": 7,
        "width": 360,
        "height": 260,
        "content": "## 🧠 Multi-Stage AI Analysis\n\n**Stage 1: Content Understanding**\n- Sentiment analysis (positive/negative/neutral)\n- Intent classification (help/vent/question)\n- Topic extraction\n- Entity recognition\n\n**Stage 2: Business Intelligence**\n- Relevance scoring (0-100)\n- Damage type identification\n- Urgency detection\n- Budget indicators\n\n**Stage 3: Strategic Assessment**\n- Engagement opportunity\n- Lead potential (0-1.0)\n- Competitor mention detection\n- Response strategy"
      },
      "typeVersion": 1,
      "id": "Nota-Adhesiva-5-16"
    },
    {
      "name": "IA Etapa 1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1850,
        500
      ],
      "parameters": {
        "url": "={{$env.AI_API_URL}}/analyze/content",
        "method": "POST",
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "text",
              "value": "={{$json.title + ' ' + ($json.selftext || '')}}"
            },
            {
              "name": "context",
              "value": "={{$json.subreddit}}"
            }
          ]
        }
      },
      "typeVersion": 3,
      "id": "IA-Etapa-1-17"
    },
    {
      "name": "IA Etapa 2",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2050,
        500
      ],
      "parameters": {
        "url": "={{$env.AI_API_URL}}/analyze/business",
        "method": "POST",
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "post",
              "value": "={{JSON.stringify($json)}}"
            },
            {
              "name": "contentAnalysis",
              "value": "={{JSON.stringify($json.stage1Analysis)}}"
            },
            {
              "name": "industry",
              "value": "insurance"
            }
          ]
        }
      },
      "typeVersion": 3,
      "id": "IA-Etapa-2-18"
    },
    {
      "name": "IA Etapa 3",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2250,
        500
      ],
      "parameters": {
        "url": "={{$env.AI_API_URL}}/analyze/strategy",
        "method": "POST",
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "post",
              "value": "={{JSON.stringify($json)}}"
            },
            {
              "name": "analysis",
              "value": "={{JSON.stringify($json.stage2Analysis)}}"
            }
          ]
        }
      },
      "typeVersion": 3,
      "id": "IA-Etapa-3-19"
    },
    {
      "name": "Nota Adhesiva 6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2380,
        60
      ],
      "parameters": {
        "color": 7,
        "width": 340,
        "height": 240,
        "content": "## 📊 Historical Learning\n\n**ML-Powered Optimization:**\n- Analyzes past engagement success\n- Identifies winning patterns\n- Predicts engagement outcomes\n- Optimizes response strategies\n\n**Learning Factors:**\n- Best performing comment styles\n- Optimal posting times\n- Subreddit-specific tactics\n- Topic-based approaches\n\n**Continuously improves over time!**"
      },
      "typeVersion": 1,
      "id": "Nota-Adhesiva-6-20"
    },
    {
      "name": "Obtener Datos Históricos",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2450,
        500
      ],
      "parameters": {
        "url": "={{$env.ML_API_URL}}/historical/performance",
        "method": "POST",
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "subreddit",
              "value": "={{$json.subreddit}}"
            },
            {
              "name": "topic",
              "value": "={{$json.stage2Analysis.topic}}"
            }
          ]
        }
      },
      "typeVersion": 3,
      "id": "Obtener-Datos-Hist-ricos-21"
    },
    {
      "name": "Predicción ML",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2650,
        500
      ],
      "parameters": {
        "url": "={{$env.ML_API_URL}}/predict/engagement",
        "method": "POST",
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "post",
              "value": "={{JSON.stringify($json)}}"
            },
            {
              "name": "analysis",
              "value": "={{JSON.stringify($json.fullAnalysis)}}"
            },
            {
              "name": "historical",
              "value": "={{JSON.stringify($json.historicalData)}}"
            }
          ]
        }
      },
      "typeVersion": 3,
      "id": "Predicci-n-ML-22"
    },
    {
      "name": "Nota Adhesiva 7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2780,
        60
      ],
      "parameters": {
        "color": 8,
        "width": 340,
        "height": 240,
        "content": "## 🔀 Smart Routing Engine\n\n**Decision Paths:**\n1. **High Priority** → Immediate team alert\n2. **Competitor Mention** → Competitive response\n3. **High Lead Potential** → Premium engagement\n4. **Standard** → Automated response\n5. **Low Quality** → Skip\n\n**Routing Criteria:**\n- Predicted engagement score\n- Lead potential\n- Urgency level\n- Competitor activity"
      },
      "typeVersion": 1,
      "id": "Nota-Adhesiva-7-23"
    },
    {
      "name": "Enrutar por Prioridad",
      "type": "n8n-nodes-base.switch",
      "position": [
        2850,
        500
      ],
      "parameters": {
        "rules": {
          "rules": [
            {
              "value1": "={{$json.prediction.engagementScore}}",
              "value2": 0.9,
              "operation": "greaterOrEqual"
            },
            {
              "value1": "={{$json.hasCompetitorMention}}",
              "value2": true,
              "operation": "equals"
            },
            {
              "value1": "={{$json.fullAnalysis.leadPotential}}",
              "value2": 0.8,
              "operation": "greaterOrEqual"
            },
            {
              "value1": "={{$json.fullAnalysis.relevanceScore}}",
              "value2": 60,
              "operation": "greaterOrEqual"
            }
          ]
        }
      },
      "typeVersion": 1,
      "id": "Enrutar-por-Prioridad-24"
    },
    {
      "name": "Nota Adhesiva 8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3050,
        60
      ],
      "parameters": {
        "color": 3,
        "width": 320,
        "height": 200,
        "content": "## ⚠️ High Priority Alert\n\n**For Critical Posts:**\n- Urgent damage situations\n- High-value opportunities\n- Competitor threats\n- Viral potential\n\n**Sends to:**\n- Slack (team channel)\n- Email (key stakeholders)\n\n**Includes:** Quick action buttons"
      },
      "typeVersion": 1,
      "id": "Nota-Adhesiva-8-25"
    },
    {
      "name": "Alertar al Equipo",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3120,
        300
      ],
      "parameters": {
        "url": "={{$env.SLACK_WEBHOOK_URL}}",
        "method": "POST",
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "text",
              "value": "🚨 HIGH PRIORITY Reddit Opportunity"
            },
            {
              "name": "blocks",
              "value": "={{JSON.stringify([{type: 'section', text: {type: 'mrkdwn', text: '*High-Value Opportunity*\\n*Post:* ' + $json.title}}])}}"
            }
          ]
        }
      },
      "typeVersion": 3,
      "id": "Alertar-al-Equipo-26"
    },
    {
      "name": "Generar Respuesta Competitiva",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3120,
        440
      ],
      "parameters": {
        "url": "={{$env.AI_API_URL}}/generate/competitive",
        "method": "POST",
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "post",
              "value": "={{JSON.stringify($json)}}"
            },
            {
              "name": "strategy",
              "value": "educational"
            }
          ]
        }
      },
      "typeVersion": 3,
      "id": "Generar-Respuesta-Competitiva-27"
    },
    {
      "name": "Generar Respuesta Premium",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3120,
        580
      ],
      "parameters": {
        "url": "={{$env.AI_API_URL}}/generate/variants",
        "method": "POST",
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "post",
              "value": "={{JSON.stringify($json)}}"
            },
            {
              "name": "variants",
              "value": 2
            },
            {
              "name": "style",
              "value": "premium"
            }
          ]
        }
      },
      "typeVersion": 3,
      "id": "Generar-Respuesta-Premium-28"
    },
    {
      "name": "Seleccionar Variante",
      "type": "n8n-nodes-base.code",
      "position": [
        3320,
        580
      ],
      "parameters": {
        "functionCode": "const item = $input.first().json;\nconst variants = item.responseVariants || {};\nconst random = Math.random();\n\nconst selectedVariant = random < 0.5 ? 'A' : 'B';\nconst selectedResponse = variants[selectedVariant] || variants.A || 'Default response';\n\nreturn [{\n  json: {\n    ...item,\n    testVariant: selectedVariant,\n    response: selectedResponse,\n    testId: 'ab_' + Date.now() + '_' + selectedVariant\n  }\n}];"
      },
      "typeVersion": 1,
      "id": "Seleccionar-Variante-29"
    },
    {
      "name": "Generar Respuesta Estándar",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        3120,
        720
      ],
      "parameters": {
        "url": "={{$env.AI_API_URL}}/generate/standard",
        "method": "POST",
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "post",
              "value": "={{JSON.stringify($json)}}"
            },
            {
              "name": "tone",
              "value": "helpful"
            }
          ]
        }
      },
      "typeVersion": 3,
      "id": "Generar-Respuesta-Est-ndar-30"
    },
    {
      "name": "Combinar Respuestas",
      "type": "n8n-nodes-base.merge",
      "position": [
        3520,
        550
      ],
      "parameters": {
        "mode": "mergeByPosition"
      },
      "typeVersion": 2,
      "id": "Combinar-Respuestas-31"
    },
    {
      "name": "Nota Adhesiva 9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3650,
        60
      ],
      "parameters": {
        "color": 6,
        "width": 340,
        "height": 220,
        "content": "## 🛡️ Quality Assurance Gate\n\n**Pre-Posting Checks:**\n- ✅ No promotional language\n- ✅ Tone appropriateness\n- ✅ Length validation\n- ✅ Grammar/spelling check\n- ✅ Reddit markdown valid\n- ✅ No banned keywords\n- ✅ Subreddit rule compliance"
      },
      "typeVersion": 1,
      "id": "Nota-Adhesiva-9-32"
    },
    {
      "name": "Control de Calidad",
      "type": "n8n-nodes-base.code",
      "position": [
        3720,
        550
      ],
      "parameters": {
        "functionCode": "const item = $input.first().json;\nconst response = item.response || '';\nconst issues = [];\n\nconst promoWords = ['buy', 'purchase', 'discount', 'sale', 'click here'];\nconst hasPromo = promoWords.some(word => response.toLowerCase().includes(word));\nif (hasPromo) issues.push('Promotional language');\n\nif (response.length > 10000) issues.push('Too long');\nif (response.length < 50) issues.push('Too short');\n\nconst bannedWords = ['spam', 'scam'];\nconst hasBanned = bannedWords.some(word => response.toLowerCase().includes(word));\nif (hasBanned) issues.push('Banned words');\n\nreturn [{\n  json: {\n    ...item,\n    qualityCheck: {\n      passed: issues.length === 0,\n      issues: issues,\n      score: Math.max(0, 100 - (issues.length * 25))\n    }\n  }\n}];"
      },
      "typeVersion": 1,
      "id": "Control-de-Calidad-33"
    },
    {
      "name": "Puerta de Calidad",
      "type": "n8n-nodes-base.if",
      "position": [
        3920,
        550
      ],
      "parameters": {
        "conditions": {
          "boolean": [
            {
              "value1": "={{$json.qualityCheck.passed}}",
              "value2": true
            }
          ]
        }
      },
      "typeVersion": 1,
      "id": "Puerta-de-Calidad-34"
    },
    {
      "name": "Marcar para Revisión",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        4120,
        670
      ],
      "parameters": {
        "url": "={{$env.SLACK_WEBHOOK_URL}}",
        "method": "POST",
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "text",
              "value": "⚠️ Response failed quality check"
            }
          ]
        }
      },
      "typeVersion": 3,
      "id": "Marcar-para-Revisi-n-35"
    },
    {
      "name": "Límite de Tasa",
      "type": "n8n-nodes-base.wait",
      "position": [
        4120,
        450
      ],
      "parameters": {
        "unit": "seconds",
        "amount": 60
      },
      "typeVersion": 1,
      "id": "L-mite-de-Tasa-36"
    },
    {
      "name": "Publicar Comentario",
      "type": "n8n-nodes-base.reddit",
      "position": [
        4320,
        450
      ],
      "parameters": {
        "text": "={{$json.response}}",
        "postId": "={{$json.id}}",
        "resource": "comment",
        "operation": "create"
      },
      "credentials": {
        "redditOAuth2Api": {
          "id": "1",
          "name": "Reddit OAuth2"
        }
      },
      "typeVersion": 1,
      "id": "Publicar-Comentario-37"
    },
    {
      "name": "Nota Adhesiva 10",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        4450,
        60
      ],
      "parameters": {
        "color": 7,
        "width": 340,
        "height": 220,
        "content": "## 🎯 Lead Processing\n\n**Multi-Source Enrichment:**\n1. LinkedIn profile lookup\n2. Company information\n3. Email validation\n4. Social media presence\n\n**Advanced Scoring:**\n- Base AI score (0-1.0)\n- Behavioral signals\n- Engagement quality\n- Intent indicators"
      },
      "typeVersion": 1,
      "id": "Nota-Adhesiva-10-38"
    },
    {
      "name": "Verificar Lead",
      "type": "n8n-nodes-base.if",
      "position": [
        4520,
        450
      ],
      "parameters": {
        "conditions": {
          "number": [
            {
              "value1": "={{$json.fullAnalysis.leadPotential}}",
              "value2": 0.6,
              "operation": "largerEqual"
            }
          ]
        }
      },
      "typeVersion": 1,
      "id": "Verificar-Lead-39"
    },
    {
      "name": "Enriquecer Lead",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        4720,
        350
      ],
      "parameters": {
        "url": "={{$env.ENRICHMENT_API_URL}}/enrich",
        "method": "POST",
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "username",
              "value": "={{$json.author}}"
            },
            {
              "name": "postContent",
              "value": "={{$json.title}}"
            }
          ]
        }
      },
      "typeVersion": 3,
      "id": "Enriquecer-Lead-40"
    },
    {
      "name": "Puntuar Lead",
      "type": "n8n-nodes-base.code",
      "position": [
        4920,
        350
      ],
      "parameters": {
        "functionCode": "const item = $input.first().json;\nconst baseScore = item.fullAnalysis?.leadPotential || 0;\nconst enrichment = item.enrichmentData || {};\n\nlet finalScore = baseScore;\nif (enrichment.hasLinkedIn) finalScore += 0.1;\nif (enrichment.hasCompanyInfo) finalScore += 0.15;\nif (enrichment.emailValidated) finalScore += 0.1;\n\nfinalScore = Math.min(1.0, finalScore);\n\nconst tier = finalScore >= 0.85 ? 'hot' : finalScore >= 0.7 ? 'warm' : 'cold';\n\nreturn [{\n  json: {\n    ...item,\n    leadScore: {\n      base: baseScore,\n      final: finalScore,\n      tier: tier\n    }\n  }\n}];"
      },
      "typeVersion": 1,
      "id": "Puntuar-Lead-41"
    },
    {
      "name": "Enrutar Lead",
      "type": "n8n-nodes-base.switch",
      "position": [
        5120,
        350
      ],
      "parameters": {
        "rules": {
          "rules": [
            {
              "value1": "={{$json.leadScore.tier}}",
              "value2": "hot",
              "operation": "equals"
            },
            {
              "value1": "={{$json.leadScore.tier}}",
              "value2": "warm",
              "operation": "equals"
            }
          ]
        }
      },
      "typeVersion": 1,
      "id": "Enrutar-Lead-42"
    },
    {
      "name": "Crear Lead Caliente",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        5320,
        200
      ],
      "parameters": {
        "url": "={{$env.CRM_API_URL}}/leads/hot",
        "method": "POST",
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "source",
              "value": "reddit"
            },
            {
              "name": "leadData",
              "value": "={{JSON.stringify($json)}}"
            }
          ]
        }
      },
      "typeVersion": 3,
      "id": "Crear-Lead-Caliente-43"
    },
    {
      "name": "Alertar Ventas",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        5520,
        200
      ],
      "parameters": {
        "url": "={{$env.SLACK_WEBHOOK_URL}}",
        "method": "POST",
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "text",
              "value": "🔥 HOT LEAD from Reddit!"
            }
          ]
        }
      },
      "typeVersion": 3,
      "id": "Alertar-Ventas-44"
    },
    {
      "name": "Iniciar Crianza Premium",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        5720,
        200
      ],
      "parameters": {
        "url": "={{$env.AUTOMATION_API_URL}}/sequences/premium",
        "method": "POST",
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "leadId",
              "value": "={{$json.leadId}}"
            },
            {
              "name": "sequence",
              "value": "hot_lead_nurture"
            }
          ]
        }
      },
      "typeVersion": 3,
      "id": "Iniciar-Crianza-Premium-45"
    },
    {
      "name": "Crear Lead Tibio",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        5320,
        350
      ],
      "parameters": {
        "url": "={{$env.CRM_API_URL}}/leads/warm",
        "method": "POST",
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "source",
              "value": "reddit"
            },
            {
              "name": "leadData",
              "value": "={{JSON.stringify($json)}}"
            }
          ]
        }
      },
      "typeVersion": 3,
      "id": "Crear-Lead-Tibio-46"
    },
    {
      "name": "Iniciar Crianza Tibia",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        5520,
        350
      ],
      "parameters": {
        "url": "={{$env.AUTOMATION_API_URL}}/sequences/nurture",
        "method": "POST",
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "leadId",
              "value": "={{$json.leadId}}"
            }
          ]
        }
      },
      "typeVersion": 3,
      "id": "Iniciar-Crianza-Tibia-47"
    },
    {
      "name": "Crear Lead Frío",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        5320,
        500
      ],
      "parameters": {
        "url": "={{$env.CRM_API_URL}}/leads/cold",
        "method": "POST",
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "source",
              "value": "reddit"
            },
            {
              "name": "leadData",
              "value": "={{JSON.stringify($json)}}"
            }
          ]
        }
      },
      "typeVersion": 3,
      "id": "Crear-Lead-Fr-o-48"
    },
    {
      "name": "Combinar Leads",
      "type": "n8n-nodes-base.merge",
      "position": [
        5920,
        350
      ],
      "parameters": {
        "mode": "mergeByPosition"
      },
      "typeVersion": 2,
      "id": "Combinar-Leads-49"
    },
    {
      "name": "Registrar Analíticas",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        6120,
        350
      ],
      "parameters": {
        "url": "={{$env.DB_API_URL}}/analytics/log",
        "method": "POST",
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "engagement",
              "value": "={{JSON.stringify($json)}}"
            }
          ]
        }
      },
      "typeVersion": 3,
      "id": "Registrar-Anal-ticas-50"
    },
    {
      "name": "Actualizar ML",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        6320,
        350
      ],
      "parameters": {
        "url": "={{$env.ML_API_URL}}/model/update",
        "method": "POST",
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "outcome",
              "value": "={{JSON.stringify($json)}}"
            }
          ]
        }
      },
      "typeVersion": 3,
      "id": "Actualizar-ML-51"
    }
  ],
  "settings": {
    "executionOrder": "v1",
    "saveManualExecutions": true
  },
  "staticData": null,
  "connections": {
    "IA-Etapa-1-17": {
      "main": [
        [
          {
            "node": "IA-Etapa-2-18",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "IA-Etapa-2-18": {
      "main": [
        [
          {
            "node": "IA-Etapa-3-19",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "IA-Etapa-3-19": {
      "main": [
        [
          {
            "node": "Obtener-Datos-Hist-ricos-21",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Alertar-al-Equipo-26": {
      "main": [
        [
          {
            "node": "Generar-Respuesta-Premium-28",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Verificar-Lead-39": {
      "main": [
        [
          {
            "node": "Enriquecer-Lead-40",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "L-mite-de-Tasa-36": {
      "main": [
        [
          {
            "node": "Publicar-Comentario-37",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Enrutar-Lead-42": {
      "main": [
        [
          {
            "node": "Crear-Lead-Caliente-43",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Crear-Lead-Tibio-46",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Crear-Lead-Fr-o-48",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Puntuar-Lead-41": {
      "main": [
        [
          {
            "node": "Enrutar-Lead-42",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Alertar-Ventas-44": {
      "main": [
        [
          {
            "node": "Iniciar-Crianza-Premium-45",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Enriquecer-Lead-40": {
      "main": [
        [
          {
            "node": "Puntuar-Lead-41",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Combinar-Leads-49": {
      "main": [
        [
          {
            "node": "Registrar-Anal-ticas-50",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Publicar-Comentario-37": {
      "main": [
        [
          {
            "node": "Verificar-Lead-39",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Puerta-de-Calidad-34": {
      "main": [
        [
          {
            "node": "L-mite-de-Tasa-36",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Marcar-para-Revisi-n-35",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Buscar-Publicaciones-10": {
      "main": [
        [
          {
            "node": "Combinar-Resultados-de-B-squeda-12",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Registrar-Anal-ticas-50": {
      "main": [
        [
          {
            "node": "Actualizar-ML-51",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Predicci-n-ML-22": {
      "main": [
        [
          {
            "node": "Enrutar-por-Prioridad-24",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Control-de-Calidad-33": {
      "main": [
        [
          {
            "node": "Puerta-de-Calidad-34",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Activador-Manual-3": {
      "main": [
        [
          {
            "node": "Combinar-Activadores-4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Combinar-Activadores-4": {
      "main": [
        [
          {
            "node": "Cargar-Configuraci-n-de-Subreddit-6",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Seleccionar-Variante-29": {
      "main": [
        [
          {
            "node": "Combinar-Respuestas-31",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Crear-Lead-Caliente-43": {
      "main": [
        [
          {
            "node": "Alertar-Ventas-44",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Combinar-Respuestas-31": {
      "main": [
        [
          {
            "node": "Control-de-Calidad-33",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook-Trigger-2": {
      "main": [
        [
          {
            "node": "Combinar-Activadores-4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Crear-Lead-Fr-o-48": {
      "main": [
        [
          {
            "node": "Combinar-Leads-49",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "Crear-Lead-Tibio-46": {
      "main": [
        [
          {
            "node": "Iniciar-Crianza-Tibia-47",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filtrar-Publicaciones-Nuevas-15": {
      "main": [
        [
          {
            "node": "IA-Etapa-1-17",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generar-Respuesta-Premium-28": {
      "main": [
        [
          {
            "node": "Seleccionar-Variante-29",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Activador-Programado-1": {
      "main": [
        [
          {
            "node": "Combinar-Activadores-4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Dividir-Subreddits-8": {
      "main": [
        [
          {
            "node": "Buscar-Publicaciones-10",
            "type": "main",
            "index": 0
          },
          {
            "node": "Buscar-Menciones-de-Competidores-11",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generar-Respuesta-Est-ndar-30": {
      "main": [
        [
          {
            "node": "Combinar-Respuestas-31",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "Enrutar-por-Prioridad-24": {
      "main": [
        [
          {
            "node": "Alertar-al-Equipo-26",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Generar-Respuesta-Competitiva-27",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Generar-Respuesta-Premium-28",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Generar-Respuesta-Est-ndar-30",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Iniciar-Crianza-Tibia-47": {
      "main": [
        [
          {
            "node": "Combinar-Leads-49",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Obtener-Datos-Hist-ricos-21": {
      "main": [
        [
          {
            "node": "Predicci-n-ML-22",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generar-Respuesta-Competitiva-27": {
      "main": [
        [
          {
            "node": "Combinar-Respuestas-31",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Combinar-Resultados-de-B-squeda-12": {
      "main": [
        [
          {
            "node": "Verificar-Historial-de-Participaci-n-14",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Cargar-Configuraci-n-de-Subreddit-6": {
      "main": [
        [
          {
            "node": "Dividir-Subreddits-8",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Iniciar-Crianza-Premium-45": {
      "main": [
        [
          {
            "node": "Combinar-Leads-49",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Verificar-Historial-de-Participaci-n-14": {
      "main": [
        [
          {
            "node": "Filtrar-Publicaciones-Nuevas-15",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Buscar-Menciones-de-Competidores-11": {
      "main": [
        [
          {
            "node": "Combinar-Resultados-de-B-squeda-12",
            "type": "main",
            "index": 1
          }
        ]
      ]
    }
  },
  "triggerCount": 3
}
Preguntas frecuentes

¿Cómo usar este flujo de trabajo?

Copie el código de configuración JSON de arriba, cree un nuevo flujo de trabajo en su instancia de n8n y seleccione "Importar desde JSON", pegue la configuración y luego modifique la configuración de credenciales según sea necesario.

¿En qué escenarios es adecuado este flujo de trabajo?

Avanzado

¿Es de pago?

Este flujo de trabajo es completamente gratuito, puede importarlo y usarlo directamente. Sin embargo, tenga en cuenta que los servicios de terceros utilizados en el flujo de trabajo (como la API de OpenAI) pueden requerir un pago por su cuenta.

Información del flujo de trabajo
Nivel de dificultad
Avanzado
Número de nodos52
Categoría-
Tipos de nodos12
Descripción de la dificultad

Adecuado para usuarios avanzados, flujos de trabajo complejos con 16+ nodos

Autor
Shelly-Ann Davy

Shelly-Ann Davy

@SheCodesFlow

Founder of The Workflow Muse & @SheCodesFlow. I craft elegant, task-focused automations for creators, founders, and soft-tech enthusiasts. “Automate with grace. Scale with power.”

Enlaces externos
Ver en n8n.io

Compartir este flujo de trabajo

Categorías

Categorías: 34