AutomationFlowsUse cases › Lead-gen automation

Lead-gen automation with n8n.

This page is for marketing managers and sales teams looking to automate lead generation processes, from capturing form submissions to nurturing prospects and handing off qualified leads. You'll find practical workflow patterns using n8n, including real examples you can import and adapt to handle form-to-CRM routing, lead scoring, and follow-ups.

What automating lead-gen automation actually involves

Automating lead generation starts with capturing data from various entry points, such as website forms or landing pages, and ensuring that information flows reliably into your customer relationship management system. Key decisions include how to enrich leads with tracking details like UTM parameters to understand traffic sources, and whether to apply automated scoring to prioritise high-potential prospects before they reach sales. Integrations matter here: you might connect a form tool like Typeform or HubSpot to a CRM such as Salesforce or Pipedrive, while deciding on data validation steps to avoid duplicates or incomplete records.

The process extends to actions like scoring leads using AI tools for qualification, notifying sales teams via Slack for handoffs, and setting up remarketing for abandoned forms to recapture interest. Data flows typically involve triggers from form submissions, enrichment via APIs for UTM tracking, and conditional logic to route leads— for instance, sending low-scoring leads to nurture sequences in Mailchimp while pinging high-scorers directly. Concrete choices include selecting webhook endpoints for real-time triggers and integrating with GPT models for scoring based on form content, all while handling compliance like GDPR for data storage.

The key building blocks

Reference architecture

In a typical lead-gen automation setup with n8n, the workflow begins with a Webhook node listening for form submissions, which triggers an HTTP Request to enrich the data with UTM details from the user's session. This feeds into an OpenAI node where GPT evaluates the lead's potential by processing the form text against your ideal customer profile, producing a score that an IF node uses to decide next steps—such as routing to a Slack integration for immediate sales notification or queuing for email nurture.

For abandoned forms, a separate Schedule node runs periodic checks against a Google Sheets log of partial submissions, integrating with Mailchimp to send targeted remarketing emails. The entire flow culminates in a CRM node, like the native HubSpot integration, which syncs the final lead data while handling errors with a Set node for custom logging. This architecture connects disparate tools without custom code, allowing you to scale from hundreds to thousands of leads monthly by chaining these n8n nodes in a single, visual workflow.

What can go wrong

Workflows in the catalog that solve this

Explore our catalog for ready-to-import workflows like "Typeform to HubSpot with UTM Enrichment" or "GPT-Powered Lead Scoring for Salesforce," which handle form-to-CRM routing and automated qualification out of the box. You'll also find patterns in the "Marketing Automation" category for Slack handoffs and remarketing sequences tailored to abandoned carts or forms. With 18,000+ importable workflows across integrations like OpenAI, Slack, and major CRMs, you can quickly adapt these to your stack.

Browse the catalog →