---
title: "Lead Enrichment Workflow"
description: "Automatically enrich new leads with company and contact data"
type: "prompt"
category: "atomic"
tags: ["workflow", "automation", "leads", "sales"]
url: "https://theglitch.ai/academy/prompts/lead-enrichment"
---

# Lead Enrichment Workflow

Automatically enrich new leads with company and contact data

## The Prompt

```
Trigger: New lead in CRM
    ↓
Extract: Email domain → company
    ↓
Enrich: Fetch company data
    ↓
Research: AI summary of company
    ↓
Update: Add enriched data to CRM
    ↓
Notify: Alert sales rep
```


# Lead Enrichment Workflow

Automatically gather additional data when new leads enter your CRM.

## Workflow Overview

```
Trigger: New lead in CRM
    ↓
Extract: Email domain → company
    ↓
Enrich: Fetch company data
    ↓
Research: AI summary of company
    ↓
Update: Add enriched data to CRM
    ↓
Notify: Alert sales rep
```

## Implementation (n8n)

**Nodes:**
1. CRM Trigger (HubSpot/Salesforce/Pipedrive)
2. Function (extract email domain)
3. Clearbit/Apollo API (company data)
4. AI Node (generate summary)
5. CRM Update (write enriched data)
6. Slack/Email (notify rep)

**AI prompt for summary:**
```
Based on this company data, write a 2-sentence sales brief:

Company: {{$json.company_name}}
Industry: {{$json.industry}}
Size: {{$json.employee_count}}
Website: {{$json.website}}
Description: {{$json.description}}

Include: What they likely need, potential pain points.
Tone: Direct, no fluff.
```

## Data Points to Capture

| Field | Source | Use |
|-------|--------|-----|
| Company size | Clearbit | Qualification |
| Industry | Clearbit | Segmentation |
| Tech stack | BuiltWith | Personalization |
| Recent news | Google News API | Conversation starter |
| LinkedIn | Apollo | Direct outreach |

## Cost Considerations

- Clearbit: ~$0.05-0.15 per lookup
- Apollo: ~$0.02-0.05 per lookup
- AI generation: ~$0.001-0.01 per summary

**Tip:** Cache lookups by domain to avoid duplicate charges.

## Error Handling

- If enrichment fails: Flag lead for manual research
- If email is personal (gmail, etc.): Skip enrichment, notify rep
- If company not found: Use AI to research website directly

---

**Related:** [Building Your First AI Agent](/articles/agents/building-first-agent)

