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

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

Ready for 3.0

by Avkash Kakdiya ✓ · 20 views · created 2026-05-04 · Lead Nurturing, AI Chatbot

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 16 nodes and runs on a schedule (every hour). Along the way it connects Google Sheets and OpenAI. It also calls api.phantombuster.com over HTTP.

How it runs

Trigger: On a schedule (every hour).

  1. Get Prospects from Sheet (Google Sheets): uses Google Sheets
  2. Filter Active Prospects (Code): runs custom JavaScript code
  3. Batch Prospects (Loop Over Items (Split in Batches)): loops over the items in batches
  4. Score Lead with AI (OpenAI): uses OpenAI
  5. Parse Lead Score (Code): runs custom JavaScript code
  6. Route by Step (Switch): routes items into 3 branches
  7. Generate First DM (OpenAI): uses OpenAI
  8. Generate Follow-up DM (OpenAI): uses OpenAI
  9. Close Lead in Sheet (Google Sheets): update
  10. Parse First DM (Code): runs custom JavaScript code

…plus 5 more steps. See the full node list below.

Services it uses

Google SheetsOpenAI

HTTP calls to: api.phantombuster.com

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (7)

From the author

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…

Excerpt from Avkash Kakdiya's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.