Lead Capture to CRM Automation Workflow
Automatically capture leads from web forms, landing pages, and chatbots, then route them to your CRM with AI-enriched contact data, lead scoring, and instant sales team notifications. This workflow eliminates manual data entry and ensures no lead falls through the cracks.
Tools Used
Overview
This workflow monitors form submissions in real-time using webhooks, maps the data to your CRM fields, enriches each lead with AI-powered scoring and classification, creates the contact in your CRM, and instantly notifies your sales team via Slack — all without any manual effort. It works with any web form tool (Typeform, Gravity Forms, Tally, or custom forms) and any CRM (HubSpot, Salesforce, Pipedrive).
Prerequisites
- A HubSpot, Salesforce, or Pipedrive account with API access
- A web form tool (Typeform, Gravity Forms, Tally, or custom HTML form)
- An n8n account (free self-hosted or cloud plan)
- An OpenAI API key (for AI lead scoring)
- A Slack workspace (for team notifications)
How to Set It Up
Estimated setup time: 30 minutes
Set Up the Form Submission Webhook
Create a new workflow in n8n and add a Webhook trigger node. Configure your form tool (Typeform, Gravity Forms, etc.) to send a POST request to the webhook URL whenever a new submission comes in. This creates a real-time connection between your form and the automation.
Test with a dummy submission first to see the exact payload shape — field names vary between form tools.
Map Form Fields to CRM Properties
Add a Set node to normalize the incoming data. Map form fields (name, email, company, phone, message) to standardized property names that match your CRM's contact schema. This ensures consistent data regardless of which form tool you use.
Include a fallback for optional fields using n8n expressions: {{ $json.phone || 'Not provided' }}
Add AI Lead Scoring with OpenAI
Connect an OpenAI node to analyze the lead's information and assign a quality score (1-100). The AI evaluates the company name, email domain (free vs business), message intent, and other signals to determine lead quality. High-scoring leads get prioritized by your sales team.
Use GPT-4o-mini for cost efficiency — it handles lead scoring well at ~$0.001 per lead.
Create the CRM Contact
Add a HubSpot (or Salesforce/Pipedrive) node to create a new contact with all the mapped fields plus the AI-generated lead score. Set the lifecycle stage to 'Lead' and assign the contact owner based on territory or round-robin rules.
Use the 'Upsert' operation instead of 'Create' to avoid duplicate contacts — it updates existing records if the email already exists.
Notify Your Sales Team via Slack
Add a Slack node to send a formatted message to your #sales-leads channel. Include the lead's name, company, email, AI score, and a direct link to the CRM contact record. For high-priority leads (score > 80), mention the assigned sales rep directly.
Use Slack Block Kit formatting for a professional-looking notification with action buttons.
Add Error Handling & Activate
Add an Error Trigger node that sends a notification if any step fails (e.g., CRM API rate limit, OpenAI timeout). Connect it to a separate Slack message or email alert. Once everything is tested, activate the workflow to run 24/7.
Enable n8n's built-in retry mechanism (Settings → Retry On Fail) for transient API errors.
Download the Template
Import this pre-built workflow into n8n and start automating your lead capture in minutes. No coding required.
Open n8n → Settings → Import from File → Select the downloaded JSON
Frequently Asked Questions
Yes! The template is designed to be CRM-agnostic. Simply swap the HubSpot node for a Salesforce node in n8n and map the same fields. The AI scoring and Slack notification steps remain identical.
Using OpenAI's GPT-4o-mini model, each lead scoring request costs approximately $0.001 (one-tenth of a cent). Even at 1,000 leads per month, that's only $1/month for AI-powered scoring.
No coding required! n8n provides a visual drag-and-drop interface. The downloadable template includes all nodes pre-configured — you just need to add your API keys and customize the field mapping for your specific form.
The workflow handles this by using the CRM's 'upsert' operation, which checks if a contact with the same email already exists. If found, it updates the existing record instead of creating a duplicate.
Absolutely. After the Slack notification, you can add nodes for automated welcome emails, calendar booking links, or even trigger a separate drip campaign workflow. The modular design makes it easy to extend.
Need Help Implementing This Workflow?
Our AI automation experts can customize this workflow for your specific tech stack and business processes. Get it deployed in days, not weeks.