🎣 Generate & enrich LinkedIn leads with Apollo.io, LinkedIn API, Mail.so & GPT-3.5

24,365 views · 🎣 Lead Generation & Enrichment

💡 Pro Tip — If you’re pulling LinkedIn data through HTTP requests or dealing with API restrictions, there’s a community node called ScraperNode that handles this natively. It has dedicated scrapers for profiles, companies, jobs, and people search — you just pass a URL and get structured data back.

View All Scrapers

Description

Note: Now includes an Apify alternative for Rapid API (Some users can’t create new accounts on Rapid API, so I have added an alternative for you. But immediately you are able to get access to Rapid API, please use that option, it returns more detailed data). Scroll to bottom for APify setup guide

This n8n workflow automates LinkedIn lead generation, enrichment, and activity analysis using Apollo.io, RapidAPI, Google Sheets and Mail.so.

Perfect for sales teams, founders, B2B marketers, and cold outreach pros who want personalized lead insights to drive better conversion rates.


⚙️ How This Workflow Works

The workflow is broken down into several key steps, each designed to help you build and enrich a valuable list of LinkedIn leads:

1. 🔑 Lead Discovery (Keyword Search via Apollo)

2. 🧠 Username Extraction (from LinkedIn URL)

3. ✉️ Email Lookup (via Apollo User ID)

4. 🧾 Profile Summary Enrichment (via RapidAPI)

5. 📰 Recent Activity Collection (Posts & Reposts)

6. 🗂️ Leads Database Update


✅ Smart Retry & Row Status Logic

Every subworkflow includes a fail-safe mechanism to ensure:


📋 Google Sheets Setup

Template 1: Apollo Leads Scraping & Enrichment

Template 2: Enriched Leads Database

Make a copy to your Drive and use.

Columns will be filled as each subworkflow runs (email, summary, interests, etc.)


🔐 Required API Keys

To use this workflow, you’ll need the following credentials:

🧩 Apollo.io

🌐 RapidAPI (LinkedIn Data API)

✉️ Mail.so

> 💡 For both APIs, set up the credentials in n8n as “Generic Credential” types.
This way, you won’t need to reconfigure the headers in each node.


🛠️ Customization Options


🆕 Apify Update Guide

To use this workflow, you’ll need the following credentials:

Login to Apify, then open this link; https://console.apify.com/actors/2SyF0bVxmgGr8IVCZ/

Click on integrations and scroll down to API Solutions and select “Use API endpoints”. Scroll to “Run Actor synchronously and get dataset items” and copy the actor endpoint url then paste it in the placeholder inside the http node of Apify alternative flow “apify-actor-endpoint”. That’s it, you are set to go.


I am available for custom n8n workflows, if you like my work, please get in touch with me on email at joseph@uppfy.com

🔗 Nodes Used

Google Sheets, HTTP Request, Schedule Trigger, Google Sheets Trigger, n8n Form Trigger, OpenAI

📥 Import

Download workflow.json and import into n8n: Workflow menu → Import from File

📖 Importing guide · 🔑 Credential setup