Templates / Capture, score and route Gmail leads with Groq Llama 3.3, Supabase and Slack

Capture, score and route Gmail leads with Groq Llama 3.3, Supabase and Slack

Ready for 3.0

by Avkash Kakdiya ✓ · 25 views · created 2026-03-26 · Lead Generation, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 22 nodes and runs on Gmail events. Along the way it connects Supabase, Groq Chat Model, Slack and Gmail.

How it runs

Trigger: On Gmail events.

  1. Get a message (Gmail): get
  2. Normalize Incoming Lead Data (Edit Fields (Set)): sets 5 fields: name, message, threadId…
  3. Validate Lead Data (If): checks a condition and branches into true / false
  4. Notify New Lead (Slack) (Slack): uses Slack
  5. Store Lead in Database (Supabase): uses Supabase
  6. Wait: waits 1 hours
  7. Fetch Unscored Leads (Supabase): get many
  8. Fetch Scored Leads (Supabase): get many
  9. AI Lead Scoring Engine (AI Agent): runs an AI agent, with model: LLM (Scoring); output parser: Structured Output Parser
  10. Map AI Score Output (Edit Fields (Set)): sets 2 fields: Score, message

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

Services it uses

SupabaseGroq Chat ModelSlackGmail

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.

  • Still check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll) (Gmail Trigger1).

Nodes used (12)

From the author

How it works This workflow captures incoming leads from Gmail, validates and stores them in Supabase, then uses AI to score and classify each lead. Based on the classification, leads are automatically routed to the appropriate Slack channel. It runs…

Excerpt from Avkash Kakdiya'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.