AutomationFlowsCRM & Sales › AI Lead Qualifier: Webhook to Salesforce

AI Lead Qualifier: Webhook to Salesforce

Original n8n title: AI Lead Qualifier

AI Lead Qualifier. Uses httpRequest, openAi, salesforce, slack. Webhook trigger; 8 nodes.

Webhook trigger★★★★☆ complexityAI-powered8 nodesHTTP RequestOpenAISalesforceSlackGmail
CRM & Sales Trigger: Webhook Nodes: 8 Complexity: ★★★★☆ AI nodes: yes Added:

This workflow follows the Gmail → HTTP Request recipe pattern — see all workflows that pair these two integrations.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "name": "AI Lead Qualifier",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "new-lead"
      },
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        250,
        300
      ]
    },
    {
      "parameters": {
        "model": "gpt-4",
        "messages": {
          "values": [
            {
              "content": "Score this lead 1-10 based on urgency and fit:\nName: {{$json.name}}\nEmail: {{$json.email}}\nMessage: {{$json.message}}\nCompany: {{$json.company}}\n\nRespond with JSON: {score: 1-10, reason: \"brief reason\", priority: \"high/medium/low\"}"
            }
          ]
        }
      },
      "name": "AI Score",
      "type": "n8n-nodes-base.openAi",
      "position": [
        500,
        300
      ]
    },
    {
      "parameters": {
        "conditions": {
          "number": [
            {
              "value1": "={{$json.score}}",
              "operation": "largerEqual",
              "value2": 7
            }
          ]
        }
      },
      "name": "Route by Score",
      "type": "n8n-nodes-base.if",
      "position": [
        750,
        300
      ]
    },
    {
      "parameters": {
        "channel": "#high-priority-leads",
        "text": "\ud83d\udd25 HIGH PRIORITY LEAD\nName: {{$json.name}}\nScore: {{$json.score}}/10\nReason: {{$json.reason}}\nMessage: {{$json.message}}"
      },
      "name": "Slack Alert",
      "type": "n8n-nodes-base.slack",
      "position": [
        1000,
        200
      ]
    }
  ],
  "connections": {
    "Webhook": {
      "main": [
        [
          {
            "node": "AI Score",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Score": {
      "main": [
        [
          {
            "node": "Route by Score",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Route by Score": {
      "main": [
        [
          {
            "node": "Slack Alert",
            "type": "main",
            "index": 0
          }
        ],
        []
      ]
    }
  }
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

AI Lead Qualifier. Uses httpRequest, openAi, salesforce, slack. Webhook trigger; 8 nodes.

Source: https://github.com/mlnjsh/n8n-workflows-mega/blob/main/workflows/ai-agents/06-ai-lead-qualifier.json — original creator credit. Request a take-down →

More CRM & Sales workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

CRM & Sales

AI-Powered Lead Qualification & Routing System. Uses supabase, httpRequest, openAi, slack. Webhook trigger; 47 nodes.

Supabase, HTTP Request, OpenAI +2
CRM & Sales

This template is perfect for: Marketing Teams looking to automatically qualify inbound leads from campaigns Sales Teams wanting to prioritize high-value prospects instantly Agencies offering lead qual

Form Trigger, Slack, OpenAI +5
CRM & Sales

Who is this for? Event sales teams & conference organizers processing 100+ sponsor/partner emails weekly who need instant lead qualification, Salesforce automation, & pipeline analytics. _

Sentiment Analysis, Gmail, Gmail Trigger +8
CRM & Sales

Email Sentiment Router for Event Sales Leads

Sentiment Analysis, Gmail, Gmail Trigger +8
CRM & Sales

Automate lead intake, AI qualification, and next‑step outreach. Qualified leads get a scheduled meeting, Zoom details, an email confirmation, CRM update, and Mailchimp enrollment. Not‑qualified leads

Google Gemini, HTTP Request, Google Calendar +5