Real-Time Lead Qualification and Routing for Webflow Forms - n8n Workflow

Use this robust n8n workflow to automate instant lead qualification from Webflow form submissions. Enrich contact data via Datagma and route leads for 1:1 or group demos based on professional criteria. Ideal for optimizing your sales process.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?


  • Marketing teams using Webflow forms for lead capture.

  • Sales Operations professionals needing real-time lead routing based on professional data.

  • Users looking for advanced n8n templates integrating data enrichment APIs.

  • Businesses that need to distinguish between high-value and standard leads immediately after form submission.

Overview

Optimizing lead routing is critical for converting prospects quickly. This advanced n8n workflow solves the problem of delayed qualification by providing instantaneous feedback to the originating Webflow form.

When a user submits their email via a Webflow form, this n8n automation immediately springs into action. It validates whether the email domain is professional, enriches the data using the Datagma API to ascertain firmographics like company size, and then applies custom business logic (e.g., qualifying leads from companies with >100 employees). The n8n node structure ensures this process takes only seconds, allowing the Webflow frontend to dynamically display the correct next action—such as a link for a personalized 1:1 demo (Result 1) or a general group demo (Result 2).

This robust n8n workflow significantly enhances sales efficiency and improves the user experience by delivering a tailored journey immediately after submission.

How it Works

This comprehensive n8n workflow is initiated by a specific n8n trigger, which is a Webflow form submission.


  1. Trigger Reception: The Receive form submission from Webflow n8n node acts as the primary n8n trigger, listening for an incoming POST request containing the lead data (specifically the email). The n8n workflow then starts processing.

  2. Domain Extraction: The Get domain from email n8n node uses a Set operation to extract the domain name from the submitted email.

  3. Email Verification: The Verify professional email Code n8n node compares the domain against a huge predefined list of known free email providers (like Gmail, Yahoo, etc.). This determines if the lead is using a professional address.

  4. Data Enrichment: The Enrich with Datagma HTTP Request n8n node contacts the Datagma API using the extracted domain, pulling crucial company details (employees, industry, funding).

  5. Data Standardization: The Simplify Datagma Output Set n8n node cleans and formats the enriched data, preparing it for the qualification stage, including converting text fields like employeesAmountInLinkedin into usable integer values.

  6. Qualification Logic: The Qualify Account Code n8n node applies the core routing criteria. In this example, if the retrieved company size is greater than 100, the result is set to '1' (high priority/1:1 demo); otherwise, it defaults to '2' (standard/group demo). This Code n8n node is the main point for customization.

  7. Real-Time Response: Finally, the Send result to Webflow Respond to Webhook n8n node sends the qualification result (1 or 2) back to the originating Webflow form in a structured JSON response. This completion allows the Webflow site to dynamically update the visible content based on the output of this entire n8n workflow.

Installation Guide

To deploy this powerful n8n workflow, follow these steps:


  1. Import: Copy the provided JSON data and paste it directly into your n8n instance using the 'New' button and selecting 'Import from JSON'. This imports the complete n8n template.

  2. Webflow Webhook Setup: Note the unique path generated by the Receive form submission from Webflow n8n trigger node. Configure your Webflow form to send POST requests to this specific webhook URL. Ensure the form submits the email field in the request body.

  3. Datagma Credentials: Access the Enrich with Datagma HTTP Request n8n node. In the Query Parameters section, locate the apiId field and replace the placeholder YOURAPIKEY with your actual Datagma API key.

  4. Customization: Review the Qualify Account Code n8n node. Adjust the qualification logic (e.g., changing the employee threshold from 100, or adding criteria based on industry or funding_amount) to perfectly match your sales requirements.

  5. Activation: Save the n8n workflow and activate it to begin processing real-time Webflow submissions.

Node Details

Receive form submission from Webflow (Webhook n8n node): Acts as the primary n8n trigger. Configured to handle POST requests and respond back using the response node, enabling real-time communication with Webflow.
Get domain from email (Set n8n node): Essential data manipulation step. Uses the expression ={{ $json.body.email.split("@")[1] }} to isolate the company domain for enrichment and verification.
Verify professional email (Code n8n node): Executes custom JavaScript logic to check if the extracted domain belongs to a consumer email provider. This filter improves the quality of the data passed to Datagma.
Enrich with Datagma (HTTP Request n8n node): The core enrichment step of this n8n workflow. It sends the domain to the Datagma API to retrieve extensive company firmographic data. Requires API key configuration.
Simplify Datagma Output (Set n8n node): Maps and cleans the nested output from the Datagma response into easily digestible variables like companysize and industry. Key configuration includes converting the employees string to an integer.
Qualify Account (Code n8n node): Contains the business logic for lead routing. It checks if company
size > 100 to set the output variable result to 1 or 2. This dynamic n8n node ensures rapid decision-making.
Send result to Webflow (Respond to Webhook n8n node): Sends the final qualification result back to the Webflow interface. Configured with standard CORS headers (Access-Control-Allow-Origin: ) to ensure smooth communication between the Webflow site and your n8n instance.

Related n8n Workflows

Free

Nodes: 6 Nodes
Updated: December 26 2025
View all
Created by
Lucas Perret
Lucas Perret

Featured*