Skip to main content

Generate personalized sales emails with LinkedIn data & Claude 3.7 via OpenRouter

Workflow preview

Workflow preview
100%
Generate personalized sales emails with LinkedIn data & Claude 3.7 via OpenRouter preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

How it works The automation loads rows from a Google Sheet of leads that you want to contact. It makes a Google search via Apify for LinkedIn links based on the First name / Last name / Company. An...

Best for

  • Lead Nurturing automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.manualtrigger, n8n-nodes-base.aggregate, n8n-nodes-base.filter, n8n-nodes-base.stickynote, n8n-nodes-base.httprequest, n8n-nodes-base.if, n8n-nodes-base.googlesheets, 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 Adam Janes.

Original n8n.io source

1.1 Workflow description

Title
Generate personalized sales emails with LinkedIn data & Claude 3.7 via OpenRouter
Workflow name
Generate personalized sales emails with LinkedIn data & Claude 3.7 via OpenRouter

How it works

  • The automation loads rows from a Google Sheet of leads that you want to contact.
  • It makes a Google search via Apify for LinkedIn links based on the First name / Last name / Company.
  • Another Apify actor fetches the right LinkedIn profile based on the first profile which is retuned
  • The same process is done for the company that the lead works for, giving extra context. If the lead has a current company listed on their LinkedIn, we use that URL to do the lookup, rather than doing a separate Google search.
  • A call is made to OpenRouter to get an LLM to generate an email based on a prompt designed to do personalized outreach.
  • An email is sent via a Gmail node.

Set up steps

  • Connect your Google Sheets + Gmail accounts to use these APIs.
  • Make an account with Apify and enter your credentials.
  • Set your details in the "Set My Data" node to customize the workflow to revolve around your company + value proposition.

I would recommend changing the prompt in the "Generate Personalized Email" node to match the tone of voice that you want your agent to have.

You can change the guidelines to e.g. change whether the agent introduces itself, and give more examples in the style you want to make the output better.

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 - Aggregate

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

Block 3 - Only People Links

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

Block 4 - Sticky Note

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

Block 5 - Aggregate1

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

Block 6 - Sticky Note1

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

Block 7 - Get LinkedIn Person

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

Block 8 - Only Company Links

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

Block 9 - Current Company Exists?

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

Block 10 - Google Search for Company LinkedIn

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

Block 11 - Google Search for Person LinkedIn

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

Block 12 - Get LinkedIn Company

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

Block 13 - Get Leads

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

Block 14 - Set Company URL

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

Block 15 - Set Company URL1

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

Block 16 - Generate Personalized Email

Type / Role
@n8n/n8n-nodes-langchain.chainLlm - chainLlm
Config choices
Version 1.7

Block 17 - OpenRouter Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenRouter - lmChatOpenRouter
Config choices
Version 1

Block 18 - Gmail

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

Block 19 - Sticky Note2

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

Block 20 - Sticky Note3

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

Block 21 - Structured Output Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.2

Block 22 - Loop Over Items

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

Block 23 - Set Data

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

3. Summary Table

Workflow Generate personalized sales emails with LinkedIn data & Claude 3.7 via OpenRouter
Complexity advanced
Nodes 23
Categories Lead Nurturing, Multimodal AI
Author Adam Janes
Published 05 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/5691/5691.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 sales emails with LinkedIn data & Claude 3.7 via OpenRouter do?

How it works The automation loads rows from a Google Sheet of leads that you want to contact. It makes a Google search via Apify for LinkedIn links based on the First name / Last name / Company. An...

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 Nurturing, Multimodal AI use case.