# AI lead qualification and nurturing workflow with OpenAI: n8n workflow

> Started by a clock, and works across Email and Postgres. It hands the judgement calls to OpenAI. 9 steps, 1 branch: a working afternoon to understand properly.

Source: https://millionrounds.com/workflow/ai-lead-qualification-and-nurturing-workflow-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)

# AI lead qualification and nurturing workflow with OpenAI

Started by a clock, and works across Email and Postgres. It hands the judgement calls to OpenAI. 9 steps, 1 branch: a working afternoon to understand properly.

Medium Calls a model: OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fai-lead-qualification-and-nurturing-workflow-with-openai)

**9 steps** Medium: a working afternoon

**1** Branch: places the flow splits

**0** Loops or waits

**2** Services it connects to

## The flow

Starts it 1 Model 2 Logic 1 Service 5

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

- 1 **Schedule Trigger** Schedule trigger *Starts it*
- 2 **Database - Get New Leads** Postgres *Service*
- 3 **OpenAI - Qualify Leads** Open Ai *Model*
- 4 **IF - High Quality Lead** If *Logic*
- 5 **Database - Update Lead Status** Postgres *Service*
- 6 **Email - Notify Sales Team** Email Send *Service*
- 7 **Database - Update Low Quality Lead** Postgres *Service*
- 8 **OpenAI - Create Nurturing Email** Open Ai *Model*
- 9 **Email - Send Nurturing Email** Email Send *Service*

## How it's built

- **Starts on:** A clock
- **Steps:** 9, with 1 branch
- **Size:** Medium: a working afternoon
- **Connects to:** Email, Postgres
- **Model:** OpenAI

## Questions

What does it need to run?

An n8n account, plus your own Email and Postgres accounts, 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. 9 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 9 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%2Fai-lead-qualification-and-nurturing-workflow-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.

[Email](https://millionrounds.com/workflows?service=Email#library)[Postgres](https://millionrounds.com/workflows?service=Postgres#library)

## Workflows like it

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

- [**AI Lead Response Bot: Auto-reply to web form submissions** 9 steps · calls a model · Email, Google Sheets](https://millionrounds.com/workflow/ai-lead-response-bot-auto-reply-to-web-form-submissions)
- [**Automated personalized email outreach with Groq and NocoDB** 9 steps · calls a model · Email, NocoDB](https://millionrounds.com/workflow/automated-personalized-email-outreach-with-groq-and-nocodb)
- [**Handle LINE real estate inquiries with Gemini** 9 steps · calls a model · Email, Google Sheets](https://millionrounds.com/workflow/handle-line-real-estate-inquiries-with-gemini)
- [**LinkedIn lead finder & Gemini-powered personalized outreach** 9 steps · calls a model · Email, Google Sheets](https://millionrounds.com/workflow/linkedin-lead-finder-and-gemini-powered-personalized-outreac)
- [**Qualify real estate leads from Typeform to Airtable** 9 steps · calls a model · Airtable, Email](https://millionrounds.com/workflow/qualify-real-estate-leads-from-typeform-to-airtable)
- [**Score and route inbound leads with OpenAI and HubSpot** 9 steps · calls a model · Email, Google Sheets](https://millionrounds.com/workflow/score-and-route-inbound-leads-with-openai-and-hubspot)
