Score and log scraped B2B leads with Apify, OpenAI, and Google Sheets
Ready for 3.0What 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).
- Your settings (EDIT ME) (Edit Fields (Set)): sets 4 fields: icpDescription, offerDescription, scoreThreshold…
- Fetch fresh leads (Apify) (HTTP Request): calls api.apify.com (POST)
- Normalize & prepare leads (Code): runs custom JavaScript code
- Any leads? (If): checks a condition and branches into true / false
- AI: score this lead (HTTP Request): calls api.openai.com (POST)
- Re-attach lead data (Merge): merges the data from its input branches
- Parse AI verdict (Code): runs custom JavaScript code
- Log every lead (Google Sheets) (Google Sheets): append
Services it uses
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)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Merge
n8n-nodes-base.merge - Google Sheets
n8n-nodes-base.googleSheets
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…