Templates / Score and log scraped B2B leads with Apify, OpenAI, and Google Sheets

Score and log scraped B2B leads with Apify, OpenAI, and Google Sheets

Ready for 3.0

by Rook · 13 views · created 2026-07-31 · Lead Generation, AI Summarization

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 workflow has 9 nodes and runs on a schedule (every day at 08:00). Along the way it connects Google Sheets. It also calls api.apify.com and api.openai.com over HTTP.

How it runs

Trigger: On a schedule (every day at 08:00).

  1. Your settings (EDIT ME) (Edit Fields (Set)): sets 4 fields: icpDescription, offerDescription, scoreThreshold…
  2. Fetch fresh leads (Apify) (HTTP Request): calls api.apify.com (POST)
  3. Normalize & prepare leads (Code): runs custom JavaScript code
  4. Any leads? (If): checks a condition and branches into true / false
  5. AI: score this lead (HTTP Request): calls api.openai.com (POST)
  6. Re-attach lead data (Merge): merges the data from its input branches
  7. Parse AI verdict (Code): runs custom JavaScript code
  8. Log every lead (Google Sheets) (Google Sheets): append

Services it uses

Google Sheets

HTTP calls to: api.apify.com, api.openai.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

Quick overview This workflow runs every morning, pulls new leads from an Apify actor, uses the OpenAI Chat Completions API to score each lead against your ideal customer profile, and appends the scored results (including low scores) to a Google Sheets…

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