# Capture, score and route Gmail leads with Groq Llama 3.3: n8n workflow

> Started by an arriving email, and works across Gmail, Slack and Supabase. It hands the judgement calls to Groq.

Source: https://millionrounds.com/workflow/capture-score-and-route-gmail-leads-with-groq-llama-3-3 (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)

# Capture, score and route Gmail leads with Groq Llama 3.3

Started by an arriving email, and works across Gmail, Slack and Supabase. It hands the judgement calls to Groq. 22 steps, 3 branches, 1 loop or waits: large, and worth reading before you trust it with anything live.

Large Calls a model: Groq

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fcapture-score-and-route-gmail-leads-with-groq-llama-3-3)

**22 steps** Large: read it before trusting it with anything live

**3** Branches: places the flow splits

**1** Loop or waits

**3** Services it connects to

## The flow

Starts it 1 Model 5 Logic 7 Service 9

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

- 1 **LLM (Classification)1** Lm Chat Groq *Model*
- 2 **Gmail Trigger1** Gmail trigger *Starts it*
- 3 **LLM (Scoring)1** Lm Chat Groq *Model*
- 4 **Structured Output Parser1** Output Parser Structured *Model*
- 5 **AI Lead Classification Engine1** Agent *Model*
- 6 **Get a message1** Gmail *Service*
- 7 **AI Lead Scoring Engine1** Agent *Model*
- 8 **Route Lead by Category1** Switch *Logic*
- 9 **Normalize Incoming Lead Data1** Set *Logic*
- 10 **Map AI Score Output1** Set *Logic*
- 11 **Send to Sales Channel1** Slack *Service*
- 12 **Send to Support Channel1** Slack *Service*
- 13 **Send to Billing Channel1** Slack *Service*
- 14 **End1** No Op *Logic*
- 15 **Validate Lead Data1** If *Logic*
- 16 **Update Lead Score1** Supabase *Service*
- 17 **Notify New Lead (Slack)1** Slack *Service*
- 18 **Store Lead in Database1** Supabase *Service*
- 19 **Wait1** Wait *Logic*
- 20 **Fetch Unscored Leads1** Supabase *Service*
- 21 **Fetch Scored Leads1** Supabase *Service*
- 22 **Check Message Exists1** If *Logic*

## How it's built

- **Starts on:** An arriving email
- **Steps:** 22, with 3 branches, 1 loop or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Gmail, Slack, Supabase
- **Model:** Groq

## Questions

What does it need to run?

An n8n account, plus your own Gmail, Slack and Supabase accounts, and a key for Groq. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an arriving email.

Does it use AI?

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

How long does it take to set up?

Take your time. At 22 steps it is large: read it before trusting it with anything live.

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 22 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%2Fcapture-score-and-route-gmail-leads-with-groq-llama-3-3)
- **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.

[Gmail](https://millionrounds.com/workflows?service=Gmail#library)[Slack](https://millionrounds.com/workflows?service=Slack#library)[Supabase](https://millionrounds.com/workflows?service=Supabase#library)

## Workflows like it

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

- [**AI-powered outreach & follow-up automation with OpenAI** 22 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/ai-powered-outreach-and-follow-up-automation-with-openai)
- [**Qualify and route real estate leads from web** 22 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/qualify-and-route-real-estate-leads-from-web)
- [**Qualify and score omnichannel leads with OpenAI and Gmail** 22 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/qualify-and-score-omnichannel-leads-with-openai-and-gmail)
- [**Real Estate Lead Generation Workflow - Property Leads** 22 steps · calls a model · Gmail, Google Calendar](https://millionrounds.com/workflow/real-estate-lead-generation-workflow-property-leads)
- [**Review and reply to business emails with Gmail and OpenAI** 22 steps · calls a model · Email, Gmail](https://millionrounds.com/workflow/review-and-reply-to-business-emails-with-gmail-and-openai)
- [**Score funding newsletter leads from Gmail with Bright Data** 22 steps · calls a model · Gmail, n8n data table](https://millionrounds.com/workflow/score-funding-newsletter-leads-from-gmail-with-bright-data)
