Hyper-Personalized B2B Email Outreach Generator - n8n Workflow

Automate hyper-personalized B2B outreach using a powerful n8n workflow. Scrape leads from Apollo, enrich data via LinkedIn, use GPT-4.1 for custom email generation, and track results in Supabase and SendGrid.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?

Sales development representatives (SDRs) and marketing professionals seeking high-conversion outreach.
Users who need to automate lead enrichment before outreach.
Developers and growth hackers interested in advanced AI-driven n8n templates.
Teams looking for a customizable alternative to expensive sales engagement platforms.

Overview

This comprehensive n8n workflow is designed to break through generic cold email barriers by leveraging deep personalization powered by AI. Instead of relying on basic merge tags, this n8n automation extracts specific, relevant context from a prospect’s LinkedIn profile—including recent posts, summary, and work history—to formulate a highly relevant ‘Pain Point + Solution’ message. The workflow uses external data scraping tools (like Apollo and RapidAPI) and GPT-4.1 (via the LangChain n8n node) to draft subject lines and email bodies tailored to the individual. This robust n8n workflow significantly boosts response rates for B2B campaigns. The entire process, from data gathering to status update in Supabase, is managed efficiently within this single n8n setup.

How it Works

This n8n workflow operates in two main phases: Lead Collection (optional) and Hyper-Personalized Outreach (primary flow).


  1. Input and Enrichment: The outreach sequence begins when the dedicated n8n trigger (either manual or 'When chat message received') processes a lead's LinkedIn URL. A Code n8n node extracts the handle, followed by HTTP Request nodes fetching rich LinkedIn profile data (summary, position) and recent activity (last 5 posts) using a RapidAPI scraper.

  2. Data Verification: A Merge n8n node and Aggregate n8n node combine the profile details and posts. The Check Null Values IF n8n node verifies that essential personalization data (like first name and summary) is available before proceeding.

  3. AI Profiling & Relevance: If data exists, the workflow uses the User Profiling according to Product LangChain Agent (powered by an OpenAI Chat Model n8n node, GPT-4.1) to analyze the lead's profile and determine if they are relevant to the product offering, identifying a specific 'Pain Point + Solution'. A Structured Output Parser extracts this structured insight.

  4. Filtering & Tracking: The Relevance Check IF n8n node routes leads. Irrelevant leads are immediately marked 'False' in Supabase via the Irrelevant Leads n8n node.

  5. Draft Generation: For relevant leads, the Story LangChain Agent takes the combined profile history and the identified 'Pain Point + Solution' to generate a hyper-personalized email subject and body, using another Structured Output Parser for consistent output.

  6. Formatting and Delivery: The generated draft is fed into the HTML Modifier n8n node (another LangChain Agent), which finalizes the content and formatting. Finally, the SendGrid n8n node sends the personalized email to the prospect.

  7. Final Status Update: The Successful Outreach Supabase n8n node updates the lead status to 'True' to complete the tracking loop for this advanced n8n workflow.

Installation Guide


  1. Import: Import this n8n workflow JSON into your n8n instance.

  2. Credentials: You must configure credentials for the following services:

OpenAI: For the LangChain Agent nodes (requires sufficient tokens, as noted in the Sticky Note).
RapidAPI: The LinkedIn scrapers (LinkedIn Data and LinkedIn Posts n8n node) require a valid x-rapidapi-key.
Apify: The Apollo Scraper n8n node requires an Apify token for lead collection.
SendGrid: For sending the final emails.
* Supabase: Configure connections and ensure your tables (Data, C-Suite) match the expected fields (e.g., linkedin_url, email, status).

  1. Configuration: Update the API keys and specific table names (e.g., 'C-Suite') in the respective n8n node parameters to match your setup.

  2. Testing: Use the 'When clicking ‘Test workflow’' n8n trigger to test the Apollo scraping path, or manually provide a LinkedIn URL to test the hyper-personalization path.

Node Details

When chat message received (n8n trigger): Serves as the primary start point for processing a single lead for personalization, expecting a LinkedIn URL as input.
Apollo Scraper (HTTP Request n8n node): Collects raw lead data (emails, URLs) from Apollo.io via the Apify API for bulk import.
LinkedIn Data / LinkedIn Posts (HTTP Request n8n node): Essential for enrichment. Uses RapidAPI to retrieve deep profile insights, summary, job titles, and the text content of the last five posts, providing rich data for the AI.
Code n8n node: Cleans the raw LinkedIn URL to extract the user handle, which is necessary for querying the post data.
Check Null Values (IF n8n node): A crucial flow control step that halts processing and flags the lead if critical personalization data (name, summary, posts) is missing.
User Profiling according to Product (LangChain Agent n8n node): This GPT-4.1 powered n8n node analyzes the prospect's profile data against your product offering to determine relevance and synthesize a core pain point and solution.
Story (LangChain Agent n8n node): Generates the hyper-personalized email Subject and Body text based on the AI-identified pain point and the lead’s personal history.
HTML Modifier (LangChain Agent n8n node): Used to refine and format the final email body content before delivery.
SendGrid n8n node: Handles the final delivery of the dynamically generated, personalized email.
Supabase n8n node (Multiple Instances): Used for initial lead storage and for updating the outreach status (True or False) of leads based on relevance and successful delivery, ensuring robust tracking throughout the n8n workflow.

Related n8n Workflows

Free

Nodes: 15 Nodes
Updated: December 26 2025
View all
Created by
Misek
Misek

Hi, just a new creator and want to do my part to learn and develop myself while also giving back to the community which helped me in my journey.

Featured*