Skip to main content

LinkedIn job hunting & outreach automation with Apify, Gemini AI, and Gmail

Workflow preview

Workflow preview
100%
LinkedIn job hunting & outreach automation with Apify, Gemini AI, and Gmail preview
Open on n8n.io

Important notice

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

1. Workflow Overview

This n8n workflow automates the process of collecting job and decision maker data, crafting AI generated referral messages, and drafting them in Gmail—all using a combination of Apify, Google Sheet...

Best for

  • Personal Productivity automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.googlesheets, n8n-nodes-base.filter, @n8n/n8n-nodes-langchain.chainllm, @n8n/n8n-nodes-langchain.lmchatgooglegemini, @n8n/n8n-nodes-langchain.outputparserstructured, n8n-nodes-base.merge, n8n-nodes-base.scheduletrigger, n8n-nodes-base.stickynote

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
LinkedIn job hunting & outreach automation with Apify, Gemini AI, and Gmail
Workflow name
LinkedIn job hunting & outreach automation with Apify, Gemini AI, and Gmail

This n8n workflow automates the process of collecting job and decision-maker data, crafting AI-generated referral messages, and drafting them in Gmail—all using a combination of Apify, Google Sheets, LLMs, and email APIs.

Use cases

  1. Auto-sourcing job postings from LinkedIn via Apify
  2. Identifying decision-makers at relevant companies
  3. Auto-drafting custom referral request messages using AI
  4. Exporting structured data to Google Sheets and drafting Gmail messages for outreach

Good to know

  • You can customize the filtering logic to target specific cities or companies.
  • Message creation uses the Gemini 2.0 Flash model and LangChain’s output parser for structured messages.
  • Email data is fetched using Anymailfinder, but can be replaced with other providers like Hunter.io.
  • Gmail API drafts the message, but you need to enable Gmail API access from your Google Cloud console.

How it works

Trigger

  • A Schedule Trigger runs the automation daily.

Job Data Extraction

  • Apify pulls job listings using a predefined actor.
  • The HTTP response is split and structured using the Split Out node.

Store Job Data

  • Job listings are saved to a Google Sheet.
  • The node maps key fields like title, company, location, and poster info.

Decision-Maker Discovery

  • Another Apify actor pulls decision-maker data from LinkedIn.
  • This is split and filtered (e.g., by city or company name).

Store Contacts

  • Contact details (name, title, location, etc.) are appended to another Google Sheet (n8n-sheet).

Message Generation

  • A LLM Chain uses Gemini 2.0 Flash to generate short, custom LinkedIn messages.
  • The message respects rules like tone, length (<100 words), and personalization.

Parse & Merge AI Output

  • The output is structured using Structured Output Parser and merged with contact data.

Save Final Messages

  • The final headline and body are stored back into Google Sheets (n8n-sheet).

Email Discovery

  • Get Email IDs node hits Anymailfinder API using the LinkedIn profile link.

Draft in Gmail

  • Using Gmail API, the message is drafted in your inbox with subject and body auto-filled.

How to use

  • Update Apify actor inputs to specify roles, companies, or locations.
  • Replace the manual Schedule Trigger with a webhook or form input if desired.
  • Update the Google Sheets document and sheet name in the relevant nodes.
  • Add your Gmail and Anymailfinder credentials in n8n settings.

Requirements

Google Sheets API access

Gmail API access

Apify account

Gemini API key (via Google AI Studio)

Anymailfinder (or alternate email discovery API)

Customizing this workflow

This framework is highly modular. You can:

  • Add more filters for company size, role, or hiring urgency
  • Use alternate LLMs (OpenAI, Claude, etc.)
  • Switch output channels (Slack, WhatsApp, etc.)
  • Plug in different CRM tools for follow-ups

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 - Google Sheets

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

Block 2 - Filter

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

Block 3 - Google Sheets1

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

Block 4 - Basic LLM Chain

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

Block 5 - Google Gemini Chat Model

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

Block 6 - Structured Output Parser

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

Block 7 - Merge

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

Block 8 - Google Sheets2

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

Block 9 - Schedule Trigger1

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 10 - Sticky Note

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

Block 11 - Sticky Note1

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

Block 12 - Sticky Note2

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

Block 13 - Sticky Note3

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

Block 14 - Gmail

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

Block 15 - Sticky Note4

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

Block 16 - Sticky Note5

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

Block 17 - Pull Jobs

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

Block 18 - Extract Info

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

Block 19 - Pull Decision Makers

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

Block 20 - Extract Info1

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

Block 21 - Get Email IDs

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

3. Summary Table

Workflow LinkedIn job hunting & outreach automation with Apify, Gemini AI, and Gmail
Complexity advanced
Nodes 21
Categories Personal Productivity, Multimodal AI
Author Agentick AI
Published 07 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/5738/5738.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 LinkedIn job hunting & outreach automation with Apify, Gemini AI, and Gmail do?

This n8n workflow automates the process of collecting job and decision maker data, crafting AI generated referral messages, and drafting them in Gmail—all using a combination of Apify, Google Sheet...

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