🎣 Automate lead gen & email outreach with Apify, Apollo.io, GPT-4 & Google Sheets

885 views · 🎣 Lead Generation & Enrichment

💡 Pro Tip — HTTP Request scraping tends to break when sites update their markup. If you’re scraping a major platform, check if ScraperNode covers it — it has maintained scrapers for LinkedIn, Instagram, TikTok, YouTube, and 20+ other platforms that return structured data.

View All Scrapers

Description

Disclaimer:

Community nodes are used, and template can only be used on self-hosted n8n instances.

workflow image lead gen.PNG

This n8n template from Intuz provides a complete solution to automate your entire B2B lead generation pipeline, from discovering recently funded companies to drafting hyper-personalized outreach emails with AI.

Who’s this workflow for?

How it works

1. Scrape Funded Companies: The workflow begins by using Apify to scrape a target list of recently funded companies directly from a Crunchbase search.

2. Enrich with Apollo.io: It takes each company and uses the Apollo.io API to find key decision-makers (like VPs, Directors) and enrich their contact information, including finding their email addresses.

3. Populate Google Sheets: All the gathered lead data—company name, contact name, title, email, LinkedIn URL, etc.—is neatly organized and added to a Google Sheet.

4. AI-Personalized Email Crafting: The workflow sends the lead’s information to OpenAI (GPT-4) with a highly specialized prompt, instructing it to write a concise, impactful, and hyper-personalized “first touch” cold email.

5. Update Lead List with Email Content: Finally, the unique, AI-generated email is saved back into the Google Sheet alongside the corresponding lead’s information, making it ready for you to send.

Pre-conditions and Requirements

Before you can successfully execute this workflow, you must have the following accounts, credentials, and assets in place.

1. n8n Instance: You need an active n8n instance (self-hosted).

2. Apify Account & Crunchbase Access:

3. Apollo.io API: You need an Apollo.io plan that includes API access. You can generate the API from settings.

4. Google Sheet: Create a new Google Sheet to store your leads. The workflow is configured for two tabs: one for raw data (“HealthCare” in the template) and one for email generation (“Company sheet”).

5. OpenAI Account: An account with OpenAI with API access and billing set up.

Setup Instructions

1. Apify Connection:

2. Apollo.io Connection:

3. Google Sheets Connection:

4. OpenAI Connection:

5. Activate Workflow:

Customization Guide

This workflow is a powerful template. To adapt it to your specific business needs, you should review and modify the following nodes.

1. Changing Your Target Companies (The Source)

  1. Go to Crunchbase and perform a search for your ideal companies (e.g., filter by different funding rounds, industry, location, keywords, etc.).
  2. Copy the URL from your browser’s address bar after the search results have loaded.
  3. Paste this new URL as the value for “search.url” in the node.
  4. You can also adjust “count”: 10 to pull more or fewer companies per run. Be mindful of Apify and Apollo credit usage.

2. Defining Your Ideal Contact Persona

3. Configuring Your Google Sheet Destination

  1. Open your Google Sheet.
  2. The documentId is the long string of characters in the URL between /d/ and /edit. Copy and paste it into the “Document ID” field in both nodes.
  3. The sheetName (or Sheet ID/gid) needs to be set for your specific tabs. Make sure the sheet names/IDs in the nodes match the tabs in your document.
  4. Column Mapping: If you change the column names in your Google Sheet, you must update the column mapping inside these nodes to ensure the data is written to the correct place.

4. Tailoring the AI Email Generation

  1. The Prompt: This is the heart of your outreach. Read the entire prompt carefully and edit it to reflect your company’s value proposition, tone of voice, and specific call-to-action.
  2. Value Proposition: Change the line “We help them cut that specific infrastructure spend…” to match what your product does. Use a powerful, single data point if you have one.
  3. Call-to-Action (CTA): Modify the final question (“Curious if infra efficiency is on your roadmap…”) to something that fits your sales process.
  4. Tone: Adjust the initial instructions (e.g., “Your tone is that of a peer…”) if you want a different style.

Connect with us

For Custom Workflow Automation

Click here- Get Started

🔗 Nodes Used

Google Sheets, HTTP Request, OpenAI

📥 Import

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

📖 Importing guide · 🔑 Credential setup