Score and route new Gmail leads to the right Slack channel

Reads new leads from Gmail, scores and classifies them with AI, and sends each one to the right Slack channel.

How the work actually flows

It branches. Exactly one path is taken.

Pattern: Exclusive Choice (4)

flowchart TD trig>"new lead email arrives"]:::trig s0["lead details extracted"]:::task s1[("lead validated and saved")]:::store s2["team alerted in Slack"]:::task s3["lead scored and summarized"]:::task trig --> s0 s0 --> s1 s1 --> s2 s2 --> s3 gx{"× which department fits"}:::gate s3 --> gx p00["routed to sales channel"]:::task gx -->|"sales lead"| p00 p10["routed to support channel"]:::task gx -->|"support lead"| p10 p20["routed to billing channel"]:::task gx -->|"billing lead"| p20 p00 --> out p10 --> out p20 --> out out[/"lead scored and routed"/]:::out pay{{"faster response to hot leads"}}:::pay out --> pay classDef task fill:#e7f6fe,stroke:#34b8f0,color:#2c2a29 classDef svc fill:#f6f8fa,stroke:#7c8795,color:#2c2a29 classDef mi fill:#e7f6fe,stroke:#0079a8,color:#2c2a29,stroke-width:2px classDef human fill:#fff,stroke:#0079a8,color:#0079a8 classDef store fill:#f6f8fa,stroke:#0079a8,color:#2c2a29 classDef trig fill:#00a4eb,stroke:#0079a8,color:#fff,font-weight:bold classDef trigtime fill:#00a4eb,stroke:#0079a8,color:#fff,font-weight:bold classDef trigdata fill:#8ad4f5,stroke:#0079a8,color:#06314c,font-weight:bold classDef gate fill:#fff,stroke:#e8a23d,color:#6b4708,font-weight:bold classDef out fill:#1f9d6b,stroke:#167a53,color:#fff,font-weight:bold classDef pay fill:#06314c,stroke:#021f33,color:#fff
Starts itA stepA record or sheetOne path onlyResultPayoff
Build size
Advanced

A larger build with multiple systems, AI reasoning, and custom rules.

Business functions
AI Agents & Autonomous SystemsLead Generation & ProspectingEmail AutomationMessaging & NotificationsSpreadsheet & Database Ops
Connects
GmailSupabaseSlackGroq

The problem it solves

New leads land in your inbox mixed in with everything else, and by the time someone sorts sales from support from billing, the hot ones have gone cold. You need leads scored and handed to the right person the moment they arrive, not hours later.

Who it fits

A sales or support team that gets mixed leads through a shared inbox and needs them sorted and prioritized automatically.

How it works

  1. A new lead email arrives in Gmail and its details are pulled out automatically
  2. The lead is checked for required information and saved to your database
  3. Your team gets an instant Slack alert that a new lead came in
  4. AI scores the lead's quality and writes a short summary
  5. AI classifies the lead as sales, support, or billing and sends it to the matching Slack channel
What you get

Leads scored and sent to the right team

Every new lead from Gmail gets scored for quality and routed to the right Slack channel, so your team knows what to act on first.

What you get

A scored, categorized lead automatically routed to the right team's Slack channel.

What you need

A Gmail account, a Supabase database, a Slack workspace, and a Groq API key.

We can build this. But should you?

The hard question is not how to build it. It is whether this is the right thing to build first.

That is what a Fractional Chief AI Officer figures out with you, before anyone writes a line of code.

Let's Talk Strategy

Related automations

Back to the AI Playbook