Skip to main content

Generate personalized cold email icebreakers from LinkedIn or website data with GPT-4

Workflow preview

Workflow preview
100%
Generate personalized cold email icebreakers from LinkedIn or website data with GPT-4 preview
Open on n8n.io

1. Workflow Overview

Multi Channel Cold Email Generator (LinkedIn + Website Fallback) Description This workflow automates the generation of hyper personalized cold emails. It intelligently switches between two data sou...

Best for

  • Lead Generation automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.manualtrigger, n8n-nodes-base.googlesheets, n8n-nodes-base.splitinbatches, n8n-nodes-base.if, n8n-nodes-base.httprequest, n8n-nodes-base.aggregate, @n8n/n8n-nodes-langchain.openai, n8n-nodes-base.set

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Matthew.

Original n8n.io source

1.1 Workflow description

Title
Generate personalized cold email icebreakers from LinkedIn or website data with GPT-4
Workflow name
Generate personalized cold email icebreakers from LinkedIn or website data with GPT-4

Multi-Channel Cold Email Generator (LinkedIn + Website Fallback)

Description

This workflow automates the generation of hyper-personalized cold emails. It intelligently switches between two data sources: LinkedIn Activity and Company Website.

If the lead has recent LinkedIn posts, the AI generates an icebreaker referencing their specific thoughts or news. If no posts are found, the workflow falls back to scraping their company website and generating an angle based on their business proposition.

How it Works

  1. Fetch Data: Pulls a list of leads from a Google Sheet.
  2. Scrape LinkedIn: Uses Apify to attempt to scrape recent posts for the lead.
  3. Conditional Logic:
  • Path A (Posts Found): Aggregates the posts, analyzes the context using GPT-4, and writes an email referencing the content.
  • Path B (No Posts): Scrapes the URL provided in companyWebsite, converts the HTML to Markdown, analyzes the company value prop, and writes an email based on that.
  1. Save Results: Writes the generated Icebreaker, Intro, and CompanyType back to the original Google Sheet.

Requirements

  • n8n: Self-hosted or Cloud.
  • Google Sheets Account: A sheet containing columns for email_final, linkedin_url, and companyWebsite.
  • Apify Account: You must have the LinkedIn Scraper actor (ID: A3cAPGpwBEG8RJwse or similar) configured and an API Token.
  • OpenAI API Key: Access to GPT-4 model is recommended for best quality.

Setup Instructions

  1. Import the JSON: Copy the provided JSON template and paste it into your n8n canvas.
  2. Configure Credentials:
  • Set up your Google Sheets and OpenAI credentials in n8n.
  1. Apify Token:
  • Locate the Apify LinkedIn Scraper node (HTTP Request).
  • In Header Parameters > Authorization, replace YOUR_APIFY_API_TOKEN with your actual Apify Bearer token.
  1. Google Sheet Configuration:
  • Open the Fetch Leads node. Select your generic Sheet and specific Workbook.
  • Open both Update Row nodes (there are two: one for the Website branch, one for the LinkedIn branch) and ensure they point to the same Sheet/Workbook.
  1. Customize AI Prompts:
  • Open the two Write Email Copy nodes.
  • In the system prompt, look for [YOUR_BUSINESS_TYPE] and [YOUR_COMPANY_NAME]. Replace these with your actual business details to ensure the AI generates relevant outreach.

Customization

  • Model Selection: You can switch the OpenAI model to gpt-3.5-turbo to save costs, though the quality of the "Icebreakers" may decrease.
  • Output Columns: The workflow currently outputs Icebreaker, intro, and companyType. You can modify the Update Row nodes to map these to different column headers in your sheet if needed.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - When clicking ‘Execute workflow’

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 2 - Fetch Leads

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.6

Block 3 - Loop Over Leads

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 4 - Posts Found?

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 5 - Apify LinkedIn Scraper

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 6 - Aggregate Posts

Type / Role
n8n-nodes-base.aggregate - aggregate
Config choices
Version 1

Block 7 - Analyze LinkedIn Context

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 8 - Map Lead Data

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 9 - Pass-through (Website)

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 10 - Pass-through (LinkedIn)

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 11 - Merge Loops

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 12 - Scrape Company Website

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 13 - Convert HTML to Markdown

Type / Role
n8n-nodes-base.markdown - markdown
Config choices
Version 1

Block 14 - Update Row (Website Data)

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.6

Block 15 - Analyze Website Context

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 16 - Write Email Copy (Website Context)

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 17 - Write Email Copy (LinkedIn Context)

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 18 - Update Row (LinkedIn Data)

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.6

Block 19 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 20 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 21 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 22 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 23 - Header Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Generate personalized cold email icebreakers from LinkedIn or website data with GPT-4
Complexity advanced
Nodes 23
Categories Lead Generation, AI Summarization
Author Matthew
Published 20 Jan 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/12837/12837.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Generate personalized cold email icebreakers from LinkedIn or website data with GPT-4 do?

Multi Channel Cold Email Generator (LinkedIn + Website Fallback) Description This workflow automates the generation of hyper personalized cold emails. It intelligently switches between two data sou...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Lead Generation, AI Summarization use case.