AI-Powered Reddit Lead Generation & Community Management with Advanced Scoring

Experte

Dies ist ein Automatisierungsworkflow mit 52 Nodes. Hauptsächlich werden If, Code, Wait, Merge, Reddit und andere Nodes verwendet.

Voraussetzungen
  • HTTP Webhook-Endpunkt (wird von n8n automatisch generiert)
  • Möglicherweise sind Ziel-API-Anmeldedaten erforderlich

Kategorie

-
Workflow-Vorschau
Visualisierung der Node-Verbindungen, mit Zoom und Pan
Workflow exportieren
Kopieren Sie die folgende JSON-Konfiguration und importieren Sie sie in n8n
{
  "name": "Enterprise Reddit Intelligence & Engagement Platform",
  "tags": [
    "reddit",
    "ai",
    "lead-generation",
    "competitive-intelligence",
    "automation"
  ],
  "nodes": [
    {
      "name": "Haftnotiz Overview",
      "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": "Haftnotiz-Overview-0"
    },
    {
      "name": "Zeitplan-Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        250,
        400
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "hours",
              "hoursInterval": 3
            }
          ]
        }
      },
      "typeVersion": 1,
      "id": "Zeitplan-Trigger-1"
    },
    {
      "name": "Webhook-Trigger Trigger",
      "type": "n8n-nodes-base.webhook",
      "position": [
        250,
        520
      ],
      "webhookId": "reddit-webhook-1",
      "parameters": {
        "path": "reddit-intelligence",
        "responseMode": "responseNode"
      },
      "typeVersion": 1,
      "id": "Webhook-Trigger-Trigger-2"
    },
    {
      "name": "Manueller Trigger",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        250,
        640
      ],
      "parameters": {},
      "typeVersion": 1,
      "id": "Manueller-Trigger-3"
    },
    {
      "name": "Zusammenführen Triggers",
      "type": "n8n-nodes-base.merge",
      "position": [
        450,
        500
      ],
      "parameters": {
        "mode": "mergeByPosition"
      },
      "typeVersion": 2,
      "id": "Zusammenf-hren-Triggers-4"
    },
    {
      "name": "Haftnotiz1",
      "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": "Haftnotiz1-5"
    },
    {
      "name": "Load Subreddit Config",
      "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": "Load-Subreddit-Config-6"
    },
    {
      "name": "Haftnotiz2",
      "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": "Haftnotiz2-7"
    },
    {
      "name": "Split Subreddits",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        850,
        500
      ],
      "parameters": {
        "batchSize": 5
      },
      "typeVersion": 3,
      "id": "Split-Subreddits-8"
    },
    {
      "name": "Haftnotiz3",
      "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": "Haftnotiz3-9"
    },
    {
      "name": "Search Posts",
      "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": "Search-Posts-10"
    },
    {
      "name": "Search Competitor Mentions",
      "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": "Search-Competitor-Mentions-11"
    },
    {
      "name": "Zusammenführen Search Results",
      "type": "n8n-nodes-base.merge",
      "position": [
        1250,
        500
      ],
      "parameters": {
        "mode": "mergeByPosition"
      },
      "typeVersion": 2,
      "id": "Zusammenf-hren-Search-Results-12"
    },
    {
      "name": "Haftnotiz4",
      "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": "Haftnotiz4-13"
    },
    {
      "name": "Check Engagement History",
      "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": "Check-Engagement-History-14"
    },
    {
      "name": "Filter New Posts",
      "type": "n8n-nodes-base.if",
      "position": [
        1650,
        500
      ],
      "parameters": {
        "conditions": {
          "boolean": [
            {
              "value1": "={{$json.alreadyEngaged}}",
              "value2": false
            }
          ]
        }
      },
      "typeVersion": 1,
      "id": "Filter-New-Posts-15"
    },
    {
      "name": "Haftnotiz5",
      "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": "Haftnotiz5-16"
    },
    {
      "name": "AI Stage 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": "AI-Stage-1-17"
    },
    {
      "name": "AI Stage 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": "AI-Stage-2-18"
    },
    {
      "name": "AI Stage 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": "AI-Stage-3-19"
    },
    {
      "name": "Haftnotiz6",
      "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": "Haftnotiz6-20"
    },
    {
      "name": "Get Historical Data",
      "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": "Get-Historical-Data-21"
    },
    {
      "name": "ML Prediction",
      "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": "ML-Prediction-22"
    },
    {
      "name": "Haftnotiz7",
      "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": "Haftnotiz7-23"
    },
    {
      "name": "Route by Priority",
      "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": "Route-by-Priority-24"
    },
    {
      "name": "Haftnotiz8",
      "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": "Haftnotiz8-25"
    },
    {
      "name": "Alert Team",
      "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": "Alert-Team-26"
    },
    {
      "name": "Generate Competitive",
      "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": "Generate-Competitive-27"
    },
    {
      "name": "Generate 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": "Generate-Premium-28"
    },
    {
      "name": "Select Variant",
      "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": "Select-Variant-29"
    },
    {
      "name": "Generate Standard",
      "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": "Generate-Standard-30"
    },
    {
      "name": "Zusammenführen Responses",
      "type": "n8n-nodes-base.merge",
      "position": [
        3520,
        550
      ],
      "parameters": {
        "mode": "mergeByPosition"
      },
      "typeVersion": 2,
      "id": "Zusammenf-hren-Responses-31"
    },
    {
      "name": "Haftnotiz9",
      "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": "Haftnotiz9-32"
    },
    {
      "name": "Quality Check",
      "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": "Quality-Check-33"
    },
    {
      "name": "Quality Gate",
      "type": "n8n-nodes-base.if",
      "position": [
        3920,
        550
      ],
      "parameters": {
        "conditions": {
          "boolean": [
            {
              "value1": "={{$json.qualityCheck.passed}}",
              "value2": true
            }
          ]
        }
      },
      "typeVersion": 1,
      "id": "Quality-Gate-34"
    },
    {
      "name": "Flag Review",
      "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": "Flag-Review-35"
    },
    {
      "name": "Rate Begrenzen",
      "type": "n8n-nodes-base.wait",
      "position": [
        4120,
        450
      ],
      "parameters": {
        "unit": "seconds",
        "amount": 60
      },
      "typeVersion": 1,
      "id": "Rate-Begrenzen-36"
    },
    {
      "name": "Post Comment",
      "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": "Post-Comment-37"
    },
    {
      "name": "Haftnotiz10",
      "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": "Haftnotiz10-38"
    },
    {
      "name": "Check Lead",
      "type": "n8n-nodes-base.if",
      "position": [
        4520,
        450
      ],
      "parameters": {
        "conditions": {
          "number": [
            {
              "value1": "={{$json.fullAnalysis.leadPotential}}",
              "value2": 0.6,
              "operation": "largerEqual"
            }
          ]
        }
      },
      "typeVersion": 1,
      "id": "Check-Lead-39"
    },
    {
      "name": "Enrich 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": "Enrich-Lead-40"
    },
    {
      "name": "Score 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": "Score-Lead-41"
    },
    {
      "name": "Route 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": "Route-Lead-42"
    },
    {
      "name": "Create Hot Lead",
      "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": "Create-Hot-Lead-43"
    },
    {
      "name": "Alert Sales",
      "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": "Alert-Sales-44"
    },
    {
      "name": "Start Premium Nurture",
      "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": "Start-Premium-Nurture-45"
    },
    {
      "name": "Create Warm Lead",
      "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": "Create-Warm-Lead-46"
    },
    {
      "name": "Start Warm Nurture",
      "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": "Start-Warm-Nurture-47"
    },
    {
      "name": "Create Cold Lead",
      "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": "Create-Cold-Lead-48"
    },
    {
      "name": "Zusammenführen Leads",
      "type": "n8n-nodes-base.merge",
      "position": [
        5920,
        350
      ],
      "parameters": {
        "mode": "mergeByPosition"
      },
      "typeVersion": 2,
      "id": "Zusammenf-hren-Leads-49"
    },
    {
      "name": "Log Analytics",
      "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": "Log-Analytics-50"
    },
    {
      "name": "Update 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": "Update-ML-51"
    }
  ],
  "settings": {
    "executionOrder": "v1",
    "saveManualExecutions": true
  },
  "staticData": null,
  "connections": {
    "AI-Stage-1-17": {
      "main": [
        [
          {
            "node": "AI-Stage-2-18",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI-Stage-2-18": {
      "main": [
        [
          {
            "node": "AI-Stage-3-19",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI-Stage-3-19": {
      "main": [
        [
          {
            "node": "Get-Historical-Data-21",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Alert-Team-26": {
      "main": [
        [
          {
            "node": "Generate-Premium-28",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check-Lead-39": {
      "main": [
        [
          {
            "node": "Enrich-Lead-40",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Rate Limit": {
      "main": [
        [
          {
            "node": "Post-Comment-37",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Route-Lead-42": {
      "main": [
        [
          {
            "node": "Create-Hot-Lead-43",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Create-Warm-Lead-46",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Create-Cold-Lead-48",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Score-Lead-41": {
      "main": [
        [
          {
            "node": "Route-Lead-42",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Alert-Sales-44": {
      "main": [
        [
          {
            "node": "Start-Premium-Nurture-45",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Enrich-Lead-40": {
      "main": [
        [
          {
            "node": "Score-Lead-41",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge Leads": {
      "main": [
        [
          {
            "node": "Log-Analytics-50",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Post-Comment-37": {
      "main": [
        [
          {
            "node": "Check-Lead-39",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Quality-Gate-34": {
      "main": [
        [
          {
            "node": "Rate Limit",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Flag-Review-35",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Search-Posts-10": {
      "main": [
        [
          {
            "node": "Merge Search Results",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Log-Analytics-50": {
      "main": [
        [
          {
            "node": "Update-ML-51",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "ML-Prediction-22": {
      "main": [
        [
          {
            "node": "Route-by-Priority-24",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Quality-Check-33": {
      "main": [
        [
          {
            "node": "Quality-Gate-34",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Manual Trigger": {
      "main": [
        [
          {
            "node": "Merge Triggers",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge Triggers": {
      "main": [
        [
          {
            "node": "Load-Subreddit-Config-6",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Select-Variant-29": {
      "main": [
        [
          {
            "node": "Merge Responses",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Create-Hot-Lead-43": {
      "main": [
        [
          {
            "node": "Alert-Sales-44",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge Responses": {
      "main": [
        [
          {
            "node": "Quality-Check-33",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook Trigger": {
      "main": [
        [
          {
            "node": "Merge Triggers",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create-Cold-Lead-48": {
      "main": [
        [
          {
            "node": "Merge Leads",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "Create-Warm-Lead-46": {
      "main": [
        [
          {
            "node": "Start-Warm-Nurture-47",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter-New-Posts-15": {
      "main": [
        [
          {
            "node": "AI-Stage-1-17",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate-Premium-28": {
      "main": [
        [
          {
            "node": "Select-Variant-29",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Merge Triggers",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split-Subreddits-8": {
      "main": [
        [
          {
            "node": "Search-Posts-10",
            "type": "main",
            "index": 0
          },
          {
            "node": "Search-Competitor-Mentions-11",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate-Standard-30": {
      "main": [
        [
          {
            "node": "Merge Responses",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "Route-by-Priority-24": {
      "main": [
        [
          {
            "node": "Alert-Team-26",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Generate-Competitive-27",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Generate-Premium-28",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Generate-Standard-30",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Start-Warm-Nurture-47": {
      "main": [
        [
          {
            "node": "Merge Leads",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Get-Historical-Data-21": {
      "main": [
        [
          {
            "node": "ML-Prediction-22",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate-Competitive-27": {
      "main": [
        [
          {
            "node": "Merge Responses",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge Search Results": {
      "main": [
        [
          {
            "node": "Check-Engagement-History-14",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Load-Subreddit-Config-6": {
      "main": [
        [
          {
            "node": "Split-Subreddits-8",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Start-Premium-Nurture-45": {
      "main": [
        [
          {
            "node": "Merge Leads",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check-Engagement-History-14": {
      "main": [
        [
          {
            "node": "Filter-New-Posts-15",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Search-Competitor-Mentions-11": {
      "main": [
        [
          {
            "node": "Merge Search Results",
            "type": "main",
            "index": 1
          }
        ]
      ]
    }
  },
  "triggerCount": 3
}
Häufig gestellte Fragen

Wie verwende ich diesen Workflow?

Kopieren Sie den obigen JSON-Code, erstellen Sie einen neuen Workflow in Ihrer n8n-Instanz und wählen Sie "Aus JSON importieren". Fügen Sie die Konfiguration ein und passen Sie die Anmeldedaten nach Bedarf an.

Für welche Szenarien ist dieser Workflow geeignet?

Experte

Ist es kostenpflichtig?

Dieser Workflow ist völlig kostenlos. Beachten Sie jedoch, dass Drittanbieterdienste (wie OpenAI API), die im Workflow verwendet werden, möglicherweise kostenpflichtig sind.

Workflow-Informationen
Schwierigkeitsgrad
Experte
Anzahl der Nodes52
Kategorie-
Node-Typen12
Schwierigkeitsbeschreibung

Für fortgeschrittene Benutzer, komplexe Workflows mit 16+ Nodes

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.”

Externe Links
Auf n8n.io ansehen

Diesen Workflow teilen

Kategorien

Kategorien: 34