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 →
{
"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.
gmailOAuth2httpHeaderAuthopenAiApisalesforceOAuth2ApislackApi
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 →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
AI-Powered Lead Qualification & Routing System. Uses supabase, httpRequest, openAi, slack. Webhook trigger; 47 nodes.
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
Who is this for? Event sales teams & conference organizers processing 100+ sponsor/partner emails weekly who need instant lead qualification, Salesforce automation, & pipeline analytics. _
Email Sentiment Router for Event Sales Leads
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