Use this powerful n8n workflow template to automate cold outreach. Scrape LinkedIn profiles via Apify, enrich data, and generate highly personalized emails using the Claude 3.7 LLM via the OpenRouter n8n node, then send automatically via Gmail.
Download this n8n workflow template and start using it instantly.
Generating truly personalized cold emails at scale is a significant challenge. Generic outreach leads to low conversion rates. This comprehensive n8n workflow solves this by providing the AI with detailed, specific context about the recipient and their company, ensuring every email is unique and highly relevant.
The automation starts by fetching a list of leads from Google Sheets. For each lead, the n8n workflow performs a sequence of web scraping and data enrichment steps using Apify to retrieve LinkedIn profile and company data. This rich, structured data—including job history, skills, and company specialties—is then fed into the Langchain n8n node, powered by Claude 3.7 (via OpenRouter). The prompt is engineered to generate witty, concise, and highly personalized emails following strict sales guidelines. Finally, the resulting email is automatically sent via a Gmail n8n node, dramatically increasing the efficiency and effectiveness of your outbound sales efforts. This is a powerful demonstration of what a sophisticated n8n template can achieve.
This n8n workflow operates in a distinct, linear fashion, processing one lead at a time:
To deploy and utilize this powerful n8n workflow, follow these steps:
companyname, emailaddress, sendername, and detailed companyinfo. This information is vital for the AI's personalization context. Manual Trigger (When clicking ‘Execute workflow’): The starting n8n node, initiating the data pull.
Google Sheets (Get Leads): Function: Reads lead data from a defined spreadsheet, serving as the input for the entire process. Key Configuration: Document ID and Sheet Name (e.g., 'Leads / Unprocessed').
Split In Batches (Loop Over Items): Function: Ensures each lead item is processed sequentially through the complex enrichment and AI steps.
HTTP Request (Google Search for Person/Company LinkedIn): Function: Uses Apify's RAG Web Browser service to perform highly specific Google searches aimed at finding exact LinkedIn URLs. Key Configuration: Uses templated expressions like ${$json['First Name']} ${$json['Last Name']} ${$json['Company']} site:linkedin.com.
Filter (Only People/Company Links): Function: Filters search results using regular expressions to strictly ensure only valid LinkedIn profile or company URLs are passed to the scraping step. This is a critical logic n8n node.
HTTP Request (Get LinkedIn Person/Company): Function: Uses specialized Apify endpoints (linkedin-profile-detail and linkedin-company-detail) to scrape deep, structured JSON data about the target person and their company.
IF (Current Company Exists?): Function: A core logic n8n node that branches the workflow based on whether the person's scraped data already contains a direct company URL, minimizing unnecessary searches.
Set (Set Data): Function: Injects mandatory business context, sender details, and the detailed company pitch into the workflow data stream, providing the LLM with all necessary information.
Chain LLM (Generate Personalized Email): Function: The central intelligence n8n node. It combines all gathered data (LinkedIn JSON, business pitch) and the extensive AI persona prompt to generate the email content. Key Configuration: Uses Anthropic/Claude-3.7-Sonnet via OpenRouter.
Structured Output Parser: Function: Parses the structured JSON output from the LLM, making the subject and body directly accessible to the final Gmail n8n node.
{{ $json.output.subject }}). This finalizes the n8n workflow's execution.Use this powerful n8n workflow to automate B2B lead generation. Scrape Google Maps via Apify, analyze websites, and use the OpenAI n8n node to generate personalized sales emails, saving all results to Google Sheets. Find more advanced n8n templates.

Automate personalized promo card generation and email delivery using this robust n8n workflow. Features email verification, success logging to Google Sheets, and admin error alerts for fraud prevention.

Use this powerful n8n workflow to automate hyper-personalized music promotion and booking emails. It analyzes Gmail context, filters contacts, and uses advanced GPT integration for custom HTML drafts.

Use this powerful n8n workflow to automate highly personalized sales emails. Integrates MadKudu research, OpenAI content generation, and seamless synchronization into Outreach.io sequences and CRM fields.

Use this powerful n8n workflow to automatically scrape LinkedIn job openings, enrich leads via Apollo.io, and generate hyper-personalized cold emails using Google Gemini. Ideal n8n templates for B2B sales.

I am a product-minded technologist with hacker DNA building things in AI automation. I have a broad and varied background - having worked in Product, Design, and Sales - combined with deep technical experience as a Senior Developer and Fractional CTO. I am also a best-selling Udemy instructor (with 25K+ students), and founder of WOOFCODE - a free coding camp for fullstack developers. I practice non-violent communication, motivational interviewing, and Tibetan Buddhist meditation.







































