AI-Powered Cold Email Generation from LinkedIn Profiles - n8n Workflow

Use this powerful n8n workflow to automate B2B lead generation. Extract LinkedIn data, enrich contacts with Dropcontact, and write hyper-personalized cold emails using GPT-4, sent directly via Gmail. Get started with n8n templates today.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?


  • Sales Development Representatives (SDRs): Seeking to scale personalized outreach without manual drafting.

  • Marketing Agencies: Automating prospecting campaigns using rich data sources.

  • Growth Hackers: Looking for effective n8n templates to combine multiple APIs for high-value tasks.

  • n8n Automation Specialists: Users who need a complex, multi-step n8n workflow demonstrating advanced AI integration.

Overview

Manual cold outreach is time-consuming, and generic emails rarely convert. This advanced n8n workflow solves the scalability challenge by automating the entire research, personalization, and sending pipeline. By leveraging specialized third-party tools (Dumpling AI and Dropcontact) alongside GPT-4, this n8n node sequence ensures every email is contextually relevant, based on fresh LinkedIn company data. This n8n workflow transforms a simple LinkedIn URL into a completed, personalized sales touchpoint, providing significant efficiency gains for any B2B sales operation. It’s one of the most effective n8n templates available for leveraging AI in sales.

How it Works

This comprehensive n8n workflow initiates when a user submits a LinkedIn URL via a dedicated form (the initial n8n trigger).


  1. Input Submission: The process starts with the n8n form trigger, capturing the target's LinkedIn Profile URL.

  2. Company Extraction: The URL is immediately passed to the Extract Company Info (Dumpling AI) n8n node, which uses an HTTP Request to pull detailed company descriptions and metadata from LinkedIn.

  3. Contact Enrichment: The resulting company data (name, website, location) is fed into the Enrich Contact (Dropcontact) n8n node. This service attempts to find the corresponding full name and, critically, the professional email address for the lead.

  4. AI Content Generation: The enriched data (including the name and detailed company description) is passed to the Generate Cold Email (GPT-4) n8n node. This OpenAI integration uses a highly structured system prompt to generate a personalized subject line and a concise, HTML-formatted cold email, adhering to strict copywriting guidelines.

  5. Email Delivery: The generated subject and email body are used by the Send Cold Email via Gmail n8n node, which executes the final delivery of the personalized message.

  6. Lead Tracking: Finally, the Log Lead to Airtable n8n node ensures that all key company and contact details are logged in a CRM-style database for follow-up and tracking, completing the end-to-end n8n workflow.

Installation Guide

To deploy this powerful n8n workflow, follow these steps:


  1. Import: Copy the provided JSON and import it directly into your n8n instance as a new n8n workflow.

  2. Credentials Setup: This n8n workflow requires multiple credentials. You must set up the following connections:

Dumpling AI: Configure an HTTP Header Auth credential using your API key for the Extract Company Info (Dumpling AI) n8n node.
Dropcontact: Set up your Dropcontact API credential.
OpenAI: Configure your OpenAI API key credential, necessary for the Generate Cold Email (GPT-4) n8n node.
Gmail: Authenticate your Gmail OAuth2 credential for sending the emails.
* Airtable: Set up an Airtable Personal Access Token credential.

  1. Airtable Configuration: In the Log Lead to Airtable n8n node, select your desired Base and Table where leads will be stored.

  2. Gmail Recipient Update: In the Send Cold Email via Gmail n8n node, update the Send To parameter. It is currently set to a placeholder ([email protected]) and must be dynamically linked to the email address found by the Dropcontact n8n node (e.g., {{ $('Enrich Contact (Dropcontact)').item.json.email[0].email }}).

  3. Activate: Save and activate the n8n workflow. Use the generated webhook URL from the Form Trigger to start testing submissions.

Node Details

Trigger on LinkedIn Profile Submission (Form Trigger): The starting n8n trigger. It creates a simple web form prompting the user for the 'profile URL', kicking off the automated process.
Extract Company Info (Dumpling AI) (HTTP Request n8n node): Calls the Dumpling AI API to scrape and structure high-quality data (like company description and website) directly from the submitted LinkedIn URL. Uses generic HTTP Header authentication.
Enrich Contact (Dropcontact n8n node): Takes the company details (name, country, website) and performs email enrichment, returning the specific lead's full name and professional email address. This data is crucial for personalization.
Generate Cold Email (GPT-4) (OpenAI n8n node): The core AI engine. It uses the GPT-4 model with a detailed system prompt defining its role as an expert copywriter. The prompt forces the output into a strict JSON format containing both the subject line and the HTML email body, ensuring consistent structure for downstream nodes.
Send Cold Email via Gmail (Gmail n8n node): Sends the generated HTML email. The Subject and Message parameters are populated dynamically using JSON path expressions pointing to the output of the OpenAI n8n node ({{ $json.message.content.subject }}). This node uses a standard Gmail credential.
Log Lead to Airtable (Airtable n8n node): Serves as the final step in this n8n workflow, creating a new record in Airtable to log essential lead metrics like Name, Website, and LinkedIn Company URL for historical tracking.

Related n8n Workflows

Free

Nodes: 7 Nodes
Updated: December 26 2025
View all
Created by
Yang
Yang

Featured*