Templates / Clean and deduplicate lead lists with Google Sheets and CSV

Clean and deduplicate lead lists with Google Sheets and CSV

Ready for 3.0

by Relaybrook · 0 views · created 2026-11-23 · Lead Generation

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-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This workflow has 17 nodes and runs manually, when you click “Execute workflow”. Along the way it connects Google Sheets.

How it runs

Trigger: Manually, when you click “Execute workflow”.

  1. Cleaner settings (Edit Fields (Set)): sets 8 fields: source, csv_input_path, csv_output_path…
  2. Source is CSV? (If): checks a condition and branches into true / false
  3. Read CSV file (Read/Write Files from Disk): reads a file from disk
  4. Source is Google Sheets? (If): checks a condition and branches into true / false
  5. Parse CSV rows (Extract from File): extracts data from a file
  6. Read leads from Google Sheets (Google Sheets): uses Google Sheets
  7. Sample messy leads (Code): runs custom JavaScript code
  8. Normalize and validate leads (Code): runs custom JavaScript code
  9. Merge duplicate leads (Code): runs custom JavaScript code
  10. Write to CSV? (If): checks a condition and branches into true / false

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

Services it uses

Google Sheets

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.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (9)

From the author

Quick overview Clean a messy lead list without AI or paid APIs. Fixes name casing, repairs email typos like gmial.com, checks email syntax, flags free-mail, role and disposable addresses, finds the company domain and merges duplicate people. Each row marked…

Excerpt from Relaybrook'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.