๐ŸŽฃ Capture and enrich leads with GPT-4o, Postgres, Slack, Gmail and your CRM

โšก 132 views ยท ๐ŸŽฃ Lead Generation & Enrichment

๐Ÿ’ก Pro Tip โ€” For lead enrichment, ScraperNode can pull LinkedIn profiles, company data, and job listings directly into your pipeline โ€” useful for building prospect lists without manual research.

View All Scrapers

Description

Overview

This workflow captures incoming leads from a webhook, enriches them using AI, and automates the entire sales pipeline. It validates data, scores leads as hot, warm, or cold, assigns them to sales reps, syncs with CRM systems, and triggers notifications and follow-ups.

It helps teams respond faster, prioritize high-value leads, and streamline sales operations with minimal manual effort.


How It Works

  1. Webhook Trigger

    • Captures lead data from forms or landing pages.
  2. Workflow Configuration

    • Defines:
      • CRM API endpoint
      • Slack notification channel
      • Sales reps list for assignment
  3. Validation

    • Ensures required fields (name and email) are present.
    • Routes invalid submissions to error handling.
  4. Data Normalization

    • Structures lead data (name, email, phone, company, message).
  5. AI Lead Enrichment

    • Classifies lead as:
      • Hot
      • Warm
      • Cold
    • Generates:
      • Score reasoning
      • Estimated deal value
      • Company insights
      • Recommended next actions
  6. Database Storage

    • Stores enriched lead data in Postgres.
  7. Sales Assignment

    • Assigns leads using round-robin distribution logic.
  8. CRM Integration

    • Sends lead data to CRM (e.g., HubSpot, GoHighLevel)
    • Optionally creates Salesforce leads
  9. Automated Communication

    • Sends welcome email to the lead
    • Notifies sales team via Slack
  10. Activity Logging


Setup Instructions

  1. Webhook Setup

    • Configure endpoint (lead-capture)
    • Connect your form or frontend
  2. OpenAI Credentials

    • Add API key for lead scoring and enrichment
  3. Database Setup

    • Configure Postgres credentials
    • Create tables:
      • leads
      • activity_log
  4. CRM Integration

    • Add API credentials for your CRM
    • Set endpoint URL
  5. Salesforce (Optional)

    • Configure Salesforce credentials if used
  6. Slack Integration

    • Add Slack credentials
    • Set channel ID for notifications
  7. Email Setup

    • Connect Gmail account for sending emails
  8. Configure Sales Reps

    • Add email list in configuration node

Use Cases


Requirements


Key Features


Summary

A complete AI-driven lead management system that captures, enriches, scores, and routes leads automatically. It enables faster response times, better lead prioritization, and scalable sales automation for modern teams.

๐Ÿ”— Nodes Used

HTTP Request, Postgres, Slack, Webhook, Salesforce, Gmail

๐Ÿ“ฅ Import

Download workflow.json and import into n8n: Workflow menu โ†’ Import from File

๐Ÿ“– Importing guide ยท ๐Ÿ”‘ Credential setup