# Score local business leads by web presence with OpenAI: n8n workflow

> Started by a clock, and works across n8n data table. It hands the judgement calls to OpenAI. 15 steps: a working afternoon to understand properly.

Source: https://millionrounds.com/workflow/score-local-business-leads-by-web-presence-with-openai (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Lead generation](https://millionrounds.com/workflows?category=Lead+generation#library)

# Score local business leads by web presence with OpenAI

Started by a clock, and works across n8n data table. It hands the judgement calls to OpenAI. 15 steps: a working afternoon to understand properly.

Medium Calls a model: OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fscore-local-business-leads-by-web-presence-with-openai)

**15 steps** Medium: a working afternoon

**0** Branches: places the flow splits

**0** Loops or waits

**1** Service it connects to

## The flow

Starts it 2 Model 3 Logic 3 Service 7

The steps in the order they run, from what starts it.

- 1 **Set Up** Manual trigger *Starts it*
- 2 **Every Monday Morning** Schedule trigger *Starts it*
- 3 **OpenAI Chat Model** Lm Chat Open Ai *Model*
- 4 **Segment Schema** Output Parser Structured *Model*
- 5 **Create Leads Table** Data Table *Service*
- 6 **Read Past Segments** Data Table *Service*
- 7 **Choose a Segment** Chain Llm *Model*
- 8 **Create Segments Table** Data Table *Service*
- 9 **Build the Search URL** Code *Logic*
- 10 **Create This Week's Job** Gluecrawl *Service*
- 11 **Only New Businesses** Data Table *Service*
- 12 **Check and Score** Code *Logic*
- 13 **Save Leads** Data Table *Service*
- 14 **Build the Call List** Code *Logic*
- 15 **Update Segment Stats** Data Table *Service*

## How it's built

- **Starts on:** A clock
- **Steps:** 15
- **Size:** Medium: a working afternoon
- **Connects to:** n8n data table
- **Model:** OpenAI

## Questions

What does it need to run?

An n8n account, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on a clock.

Does it use AI?

Yes. It calls OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Plan an afternoon. 15 steps is enough that you should read each one before running it.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 15 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fscore-local-business-leads-by-web-presence-with-openai)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[n8n data table](https://millionrounds.com/workflows?service=n8n+data+table#library)

## Workflows like it

Also lead generation, with the same services where possible, closest in size first.

- [**Create an AI-powered Telegram customer support bot** 15 steps · calls a model · Telegram, n8n data table](https://millionrounds.com/workflow/create-an-ai-powered-telegram-customer-support-bot)
- [**Draft cold email templates from Google Sheets with OpenAI** 15 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/draft-cold-email-templates-from-google-sheets-with-openai)
- [**AI-powered multi-channel lead outreach with JotForm and Gemini** 16 steps · calls a model · Gmail, n8n data table](https://millionrounds.com/workflow/ai-powered-multi-channel-lead-outreach-with-jotform-and-gemi)
- [**Audit prospect websites and generate HTML SEO reports** 16 steps · calls a model · n8n data table](https://millionrounds.com/workflow/audit-prospect-websites-and-generate-html-seo-reports)
- [**Triage real estate leads on WhatsApp, Messenger and Instagram** 16 steps · calls a model · WhatsApp, n8n data table](https://millionrounds.com/workflow/triage-real-estate-leads-on-whatsapp-messenger-and-instagram)
- [**Write personalized cold emails from LinkedIn leads with Wiza** 16 steps · calls a model · Gmail, n8n data table](https://millionrounds.com/workflow/write-personalized-cold-emails-from-linkedin-leads-with-wiza)
