Skip to main content

Score and send LinkedIn DMs with GPT-4.1-mini, Google Sheets and Phantombuster

Workflow preview

Workflow preview
100%
Score and send LinkedIn DMs with GPT-4.1-mini, Google Sheets and Phantombuster preview
Open on n8n.io

1. Workflow Overview

How it works This workflow creates an AI powered LinkedIn DM outreach sequence that automatically scores, messages, and follows up with prospects using Google Sheets as a lightweight CRM. When the ...

Best for

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

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.scheduletrigger, n8n-nodes-base.googlesheets, n8n-nodes-base.code, n8n-nodes-base.splitinbatches, @n8n/n8n-nodes-langchain.openai, n8n-nodes-base.switch, n8n-nodes-base.httprequest

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Score and send LinkedIn DMs with GPT-4.1-mini, Google Sheets and Phantombuster
Workflow name
Score and send LinkedIn DMs with GPT-4.1-mini, Google Sheets and Phantombuster

How it works

This workflow creates an AI-powered LinkedIn DM outreach sequence that automatically scores, messages, and follows up with prospects using Google Sheets as a lightweight CRM. When the workflow runs on a schedule, it reads prospect data from Google Sheets and filters only leads that are new or due for action. Each lead is scored by GPT-4.1-mini, which assigns a lead score, priority, and recommended message angle. Based on the prospect's outreach step, the workflow either sends a personalized first DM or a follow-up DM via Phantombuster, then updates the sheet with the latest status and next action date. Leads with no reply after the full sequence are automatically closed.

Step-by-step

  • Trigger and fetch prospects
  • Schedule Trigger – Runs the workflow every hour automatically.
  • Get Prospects from Sheet – Reads all prospect rows from Google Sheets.
  • Filter Active Prospects – Filters leads that are new or have a NextActionDate due today. Skips Closed and Replied leads.
  • Batch Prospects – Processes leads in batches of 3 to respect API rate limits.
  • AI lead scoring
  • Score Lead with AI – Sends each prospect to GPT-4.1-mini for evaluation. Returns lead score (Hot / Warm / Cold), priority, and recommended message angle.
  • Parse Lead Score – Extracts and maps the AI JSON response into structured fields.
  • Route by outreach step
  • Route by Step – Checks the Step value for each lead and routes to the correct flow: Step 0 → first DM, Step 1 → follow-up DM, Step 2+ → auto-close.
  • DM generation, send and CRM update
  • Generate First DM – GPT-4.1-mini writes a short, personalized cold DM based on role, company, and AI message angle.
  • Parse First DM – Extracts the generated message text.
  • Send First DM via Phantombuster – Sends the DM to the prospect's LinkedIn profile via Phantombuster HTTP API.
  • Update Sheet — First DM Sent – Updates the sheet: Status → Contacted, Step → 1, NextActionDate → +3 days.
  • Generate Follow-up DM – GPT-4.1-mini writes a soft follow-up referencing the first message.
  • Parse Follow-up DM – Extracts the follow-up message text.
  • Send Follow-up DM via Phantombuster – Sends the follow-up to the same LinkedIn profile.
  • Update Sheet — Follow-up Sent – Updates the sheet: Status → Follow-up Sent, Step → 2, NextActionDate → +2 days.
  • Close Lead in Sheet – Marks unresponsive leads as Closed with an auto-closure note.

Why use this?

  • Automates the full LinkedIn outreach sequence without manual effort
  • Uses AI to personalize every DM based on prospect role, company, and scoring
  • Manages the entire pipeline from a single Google Sheet — no extra CRM needed
  • Timing between steps is controlled automatically via NextActionDate
  • Easily customizable for different industries, message tones, or outreach sequences

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 - Sticky Note

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

Block 2 - Sticky Note1

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

Block 3 - Sticky Note2

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

Block 4 - Sticky Note3

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

Block 5 - Sticky Note4

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

Block 6 - Schedule Trigger

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

Block 7 - Get Prospects from Sheet

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

Block 8 - Filter Active Prospects

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 9 - Batch Prospects

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

Block 10 - Score Lead with AI

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 2.1

Block 11 - Parse Lead Score

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 12 - Route by Step

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

Block 13 - Generate First DM

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 2.1

Block 14 - Parse First DM

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 15 - Send First DM via Phantombuster

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

Block 16 - Update Sheet — First DM Sent

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

Block 17 - Generate Follow-up DM

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 2.1

Block 18 - Parse Follow-up DM

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 19 - Send Follow-up DM via Phantombuster

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

Block 20 - Update Sheet — Follow-up Sent

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

Block 21 - Close Lead in Sheet

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

3. Summary Table

Workflow Score and send LinkedIn DMs with GPT-4.1-mini, Google Sheets and Phantombuster
Complexity advanced
Nodes 21
Categories Lead Nurturing, AI Chatbot
Author Avkash Kakdiya
Published 04 May 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/15467/15467.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 Score and send LinkedIn DMs with GPT-4.1-mini, Google Sheets and Phantombuster do?

How it works This workflow creates an AI powered LinkedIn DM outreach sequence that automatically scores, messages, and follows up with prospects using Google Sheets as a lightweight CRM. When the ...

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