Templates / Local Business Lead Discovery and Enrichment Agent

Local Business Lead Discovery and Enrichment Agent

Needs changes

by Naz Akgül · 1,685 views · created 2026-04-30 · Lead Generation, AI Summarization

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 20 nodes and runs on a schedule (cron 0 9 * * 1). Along the way it connects OpenAI Chat Model, Gmail, Postgres and Firecrawl (community).

How it runs

Trigger: On a schedule (cron 0 9 * * 1).

  1. Rotation Seed (Code): runs custom JavaScript code
  2. AI Agent: runs an AI agent, with model: GPT-5.; 2 tools (/scrape in Firecrawl, /search in Firecrawl)
  3. Parse Refill Output (Code): runs custom JavaScript code
  4. Compute Fingerprint (Code): runs custom JavaScript code
  5. Fetch Seen Fingerprints (Postgres): run a query
  6. Filter Unseen (Top 10) (Code): runs custom JavaScript code
  7. Enrich Selected 10 — Prep (Code): runs custom JavaScript code
  8. AI Agent: runs an AI agent, with model: GPT-5.; 2 tools (Enrich Selected 10 — Scrape Listing, Enrich Selected 10 — Scrape Website)
  9. Enrich Selected 10 — Parse (Code): runs custom JavaScript code
  10. Postgres: uses Postgres

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

Services it uses

OpenAI Chat ModelGmailPostgresFirecrawl (community)

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • AI Agent v1 (old agent modes) in AI Agent — enrichment (v1.7), AI Agent — Discover Fresh (v1.7): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Removed in 3.0Replace with
AI Agent v1 (old agent modes)
AI Agent — enrichment (v1.7), AI Agent — Discover Fresh (v1.7)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (8)

From the author

A weekly agent that finds local businesses with weak or missing web presence, and scores them as sales leads for web agencies, freelance developers, and digital consultants. The agent searches local business directories in your target area. It scrapes each…

Excerpt from Naz Akgül'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.