AI-Driven Multi-Step Sales Sequence Generator using Apollo and LinkedIn - n8n Workflow

Automate lead generation using this advanced n8n workflow to scrape prospect data from Apollo and LinkedIn, analyze profiles with OpenAI, and generate hyper-personalized 4-step email sequences.

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 B2B marketers who need to scale hyper-personalized cold outreach.

  • Automation enthusiasts looking for complex n8n templates integrating multiple AI and scraping services.

  • Businesses seeking to efficiently automate their lead research and email copywriting processes using a powerful n8n node structure.

Overview

Generic cold email campaigns suffer from low response rates. This robust n8n workflow template solves the personalization scaling problem by automating the entire research and content generation process. It operates in two main phases: first, gathering targeted leads from Apollo and saving them to Google Sheets; and second, using a scheduled n8n trigger to pull those leads, scrape detailed LinkedIn and company information, and leverage an OpenAI n8n node for deep analysis and generating highly tailored 4-step email sequences.

By ensuring every email sequence is contextually relevant based on the latest available public data, this n8n automation significantly boosts the effectiveness of outbound sales efforts, transforming raw prospect data into ready-to-send, high-conversion email drafts.

How it Works

This n8n workflow is divided into two major operational branches:

Phase 1: Prospecting and Data Acquisition (Manual Trigger)


  1. Trigger: The process begins when the user submits data through the Enter Target Audience Form n8n trigger, defining the criteria (e.g., industry, role).

  2. Apollo Scraping: The workflow generates the necessary query parameters and constructs a URL to scrape lead data using the Apollo Scraper HTTP Request n8n node.

  3. Filtering & Saving: Extracted information is processed (Extract Info), filtered for quality, and then the viable prospects are saved to a designated Google Sheet using the Save Prospects n8n node.

Phase 2: Personalization and Sequence Generation (Scheduled Trigger)


  1. Daily Run: The Schedule Trigger acts as the main n8n trigger for the second phase, initiating the flow daily to process new prospects.

  2. Data Retrieval: The Get Prospects Google Sheets n8n node pulls the list of leads needing personalization.

  3. Looping and Conditional Logic: The Loop Over Items n8n node processes each prospect individually. An If Linkedin Exists? n8n node checks if a LinkedIn profile URL is available.

  4. Deep Scraping: If LinkedIn data exists, the Linkedin Scraper and Company Scraper HTTP Request n8n nodes gather detailed information.

  5. AI Analysis: The gathered data is fed into the Analyse Data OpenAI n8n node, which performs a high-level analysis of the prospect's background, company, and pain points.

  6. Content Generation: Based on the AI analysis, subsequent OpenAI n8n nodes (Generate LinkedIn Opener and Genrate Emails) craft a personalized LinkedIn message and a comprehensive 4-step email sequence.

  7. Final Formatting: Custom Code n8n nodes are used to assign sender emails, check time zones, and add crucial opt-out tokens, preparing the email content for deployment.

  8. Save Results: The final sequence drafts are saved back into two separate Google Sheets: Save Emails (the content) and Save Analysis (the scraped data and analysis), completing this powerful n8n workflow.

Installation Guide

To deploy this comprehensive n8n workflow, follow these steps:


  1. Import the n8n Workflow: Copy the provided JSON and import it directly into your n8n instance using the 'New' -> 'Import from JSON' feature.

  2. Service Credentials Setup: This n8n template requires several external service credentials:

Google Sheets: Set up credentials for reading (Prospects) and writing (Save Prospects, Save Emails, Save Analysis).
OpenAI/LangChain: Configure your OpenAI API Key for the four AI n8n node components.
* Scraping Services: The HTTP Request n8n nodes for Apollo and LinkedIn/Company scraping will require specific credentials, API keys, or custom headers depending on the third-party service provider you utilize (e.g., specific web scraping API).

  1. Sheet Configuration: Ensure your Google Sheets are set up with the correct headers expected by the Get Prospects and Save Prospects n8n nodes.

  2. Activate: Once credentials are confirmed, activate both the Enter Target Audience form (for manual prospecting runs) and the Schedule Trigger (for automated sequencing runs). Ensure the scraping n8n node configurations are correctly pointing to the required APIs.

Node Details

This complex n8n workflow leverages several specialized n8n node types:

Schedule Trigger: A crucial n8n trigger that dictates when the outreach sequence generation part of the n8n workflow runs (e.g., daily).
Form Trigger: Initiates the prospecting phase, allowing users to input target audience parameters quickly.
Google Sheets (4 instances): Used for initial input, saving raw prospects, reading prospects for processing, and finally saving the generated email sequences and analysis. The Get Prospects n8n node is vital for initiating the personalization loop.
HTTP Request (Apollo Scraper, Linkedin Scraper, Company Scraper): These n8n node instances are responsible for real-time data extraction from Apollo and public profile sources. This often requires integration with a paid scraping API.
OpenAI/LangChain (Analyse Data, Generate LinkedIn Opener, Genrate Emails): The core AI components of this n8n template. They interpret complex scraped data and craft highly human-like, contextually relevant marketing copy.
If n8n node (If Linkedin Exists?): Controls the flow based on data availability, ensuring scraping only occurs when relevant URLs are present, optimizing resource usage within the n8n workflow.


  • Code n8n node: Used extensively for precise data manipulation, URL creation (Create Apollo URL), time zone checks, and adding specific campaign parameters like opt-out tokens.

Related n8n Workflows

Paid

Nodes: 11 Nodes
Updated: December 26 2025
View all
Created by
Gain FLow AI
Gain FLow AI

GainFlow AI is your go-to AI automation agency, specializing in Python and no-code solutions to eliminate repetitive tasks for individuals and businesses. Free up your time and boost efficiency. For inquiries, Fill this form - https://docs.google.com/forms/d/e/1FAIpQLSfIiXdw4HMcI2HM-Obng13j_RFiKv7X-mjOVm_mcy2ucRA8EA/viewform or reach out to us at [email protected].

Featured*