n8n prompt

n8n: Lead Capture to CRM Automation

Webhook → lead enrichment → CRM creation → team notification workflow.

Build an n8n workflow that automatically processes new leads from {{lead_source}} and adds them to {{crm_name}}.

## Trigger: {{lead_source}} form submission / webhook
## CRM: {{crm_name}}
## Enrichment: {{enrichment_tool}}
## Notification: {{notification_channel}}

### Workflow Steps

**Node 1: Webhook Trigger**
- Listen for POST from {{lead_source}}
- Extract: name, email, company, phone, message, source
- Validate required fields (email is mandatory)

**Node 2: Check for Duplicate**
- Search {{crm_name}} by email
- IF exists: update existing contact and go to Step 6
- IF new: continue to Step 3

**Node 3: Lead Enrichment ({{enrichment_tool}})**
- Input: email and company name
- Enrich with: job title, company size, industry, LinkedIn URL, phone
- Handle API errors gracefully (continue with available data)

**Node 4: Lead Scoring**
Apply score based on:
- Company size: {{scoring_rules}}
- Source quality: {{source_scoring}}
- Completeness of data
Output: score (0-100) + tier (hot/warm/cold)

**Node 5: Create in {{crm_name}}**
Create contact with all enriched fields.
Create deal/lead record linked to contact.
Assign to: {{assignment_rule}}

**Node 6: Send Notification to {{notification_channel}}**
Message format:
"🔥 New {{tier}} Lead: [Name] at [Company]
Score: [X]/100 | Source: [source]
[LinkedIn URL if available]
View in CRM: [link]"

**Node 7: Add to Email Sequence**
If score > {{hot_threshold}}: add to {{hot_sequence}}.
If score > {{warm_threshold}}: add to {{warm_sequence}}.

**Error Handling**
All nodes: on error, send alert to {{error_channel}} with full error details.

Fill in: {{lead_source}}, {{crm_name}}, {{enrichment_tool}}, {{notification_channel}}, {{scoring_rules}}, {{source_scoring}}, {{assignment_rule}}, {{tier}}, {{hot_threshold}}, {{hot_sequence}}, {{warm_threshold}}, {{warm_sequence}}, {{error_channel}}. In Loopy you fill these in a form and copy the finished prompt in one click.