The Problem
Your sales team wastes hours qualifying leads manually. By the time they reach out, the prospect has gone cold.
The Solution: Automated Lead Scoring Pipeline
Typeform Webhook
→ n8n: Extract fields
→ Clearbit: Enrich company data
→ OpenAI: Score 1-100 + reasoning
→ IF score >= 70 → Slack #hot-leads
→ ELSE → Add to nurture sequence (Mailchimp)
→ Google Sheets: Log everything
Step 1 — Capture the Lead
Set up a Webhook node in n8n. Configure your Typeform to POST to this URL on every submission. Key fields to capture:
- Name, email, company
- Company size (dropdown)
- Budget range
- Use case description (free text)
Step 2 — Enrich with Clearbit
{
"endpoint": "https://company.clearbit.com/v2/companies/find",
"params": { "domain": "{{ $json.company_domain }}" }
}
This gives you industry, employee count, estimated revenue, and tech stack.
Step 3 — AI Scoring Prompt
You are a B2B lead scoring assistant. Given the following lead data,
return a JSON object: { "score": <1-100>, "reasoning": "<2 sentences>" }.
Scoring criteria:
- Company size 50-500 employees: +20
- SaaS / tech industry: +15
- Budget > $5k/month: +25
- Clear use case described: +20
- Role is decision-maker: +20
Step 4 — Route and Notify
Use a Switch node to branch:
| Score Range | Action |
|---|
| 70-100 | Slack #hot-leads + assign in HubSpot |
| 40-69 | Add to Mailchimp nurture campaign |
| 0-39 | Log only, revisit monthly |
Results
After deploying this pipeline, teams typically see a 3x faster response time to high-quality leads.
Read more about n8n for startups or dive into AI workflows with OpenAI.