Qualify webhook leads with GPT-4o-mini and create Asana tasks automatically

Go to Workflow
1 views
Built by Rahul Joshi Rahul Joshi
Created on June 06, 2026

Description

๐Ÿ“Š Description
Automate your inbound lead qualification pipeline by enriching raw lead data, scoring it with AI, and instantly creating follow-up tasks for your sales team. ๐ŸŽฏ๐Ÿค– This workflow receives new leads via webhook, enriches them using RocketReach to fetch verified emails and contact details, applies confidence-based filtering, and uses GPT-4o-mini to score each lead based on seniority, company fit, and data quality. High-quality leads automatically generate Asana tasks and Slack notifications, while low-quality leads are safely filtered out โ€” ensuring your team focuses only on the best opportunities. ๐Ÿš€๐Ÿ“‹
๐Ÿ” What This Template Does
1๏ธโƒฃ Receives inbound lead data via webhook (name, company, job title, LinkedIn URL). ๐ŸŒ
2๏ธโƒฃ Normalizes incoming data into a clean, structured format. ๐Ÿงพ
3๏ธโƒฃ Enriches lead profiles using RocketReach to fetch emails and phone numbers. ๐Ÿ“‡
4๏ธโƒฃ Calculates email confidence scores based on quality grades (Aโ€“D). ๐Ÿ“Š
5๏ธโƒฃ Filters out low-confidence leads automatically. ๐Ÿšซ
6๏ธโƒฃ Uses AI (GPT-4o-mini) to score qualified leads from 1โ€“10. ๐Ÿค–
7๏ธโƒฃ Assigns priority levels (High / Medium / Low) with reasoning. ๐Ÿง 
8๏ธโƒฃ Creates an Asana task for leads scoring above the threshold. โœ…
9๏ธโƒฃ Sends Slack notifications for both qualified and disqualified leads. ๐Ÿ’ฌ
๐Ÿ”Ÿ Returns a structured webhook response with scoring results. ๐Ÿ”
1๏ธโƒฃ1๏ธโƒฃ Sends Gmail alerts automatically if any workflow error occurs. ๐Ÿšจ
โญ Key Benefits
โœ… Eliminates manual lead enrichment and qualification
โœ… Uses verified contact data from RocketReach
โœ… AI scoring ensures consistent, unbiased lead evaluation
โœ… Automatically routes high-quality leads to sales via Asana
โœ… Keeps teams informed with real-time Slack notifications
โœ… Prevents sales effort from being wasted on low-quality leads
๐Ÿงฉ Features
Webhook-based inbound lead intake
RocketReach profile enrichment
Email confidence scoring logic
AI lead scoring with strict JSON output
Configurable quality and score thresholds
Automatic Asana task creation
Slack alerts for qualified and disqualified leads
Gmail-based error handling
Frontend-ready webhook responses
๐Ÿ” Requirements
RocketReach API key
OpenAI API key (GPT-4o-mini recommended)
Asana OAuth2 credentials
Slack API credentials
Gmail OAuth2 credentials (for error alerts)
Webhook client sending lead details (first_name, last_name, company, job_title, linkedin_url)
๐ŸŽฏ Target Audience
B2B sales teams handling inbound leads
Revenue operations (RevOps) teams
SaaS companies optimizing lead qualification
Lead generation agencies
Automation teams building AI-driven sales pipelines

Nodes Used (6)

Asana
n8n-nodes-base.asana
Code
n8n-nodes-base.code
Gmail
n8n-nodes-base.gmail
HTTP Request
n8n-nodes-base.httpRequest
OpenAI
@n8n/n8n-nodes-langchain.openAi
Slack
n8n-nodes-base.slack