Skip to main content

Route and qualify email leads with Gmail, Gemini, Slack, Sheets and Salesforce

Workflow preview

Workflow preview
100%
Route and qualify email leads with Gmail, Gemini, Slack, Sheets and Salesforce preview
Open on n8n.io

1. Workflow Overview

Email Lead Router: Gmail → Gemini → Salesforce Pipeline Who is this for? Event sales teams & conference organizers processing 100+ sponsor/partner emails weekly who need instant lead qualification,...

Best for

  • Lead Generation automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

@n8n/n8n-nodes-langchain.sentimentanalysis, n8n-nodes-base.gmail, n8n-nodes-base.gmailtrigger, n8n-nodes-base.evaluationtrigger, n8n-nodes-base.splitinbatches, @n8n/n8n-nodes-langchain.lmchatgooglegemini, n8n-nodes-base.evaluation, n8n-nodes-base.slack

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Milo Bravo.

Original n8n.io source

1.1 Workflow description

Title
Route and qualify email leads with Gmail, Gemini, Slack, Sheets and Salesforce
Workflow name
Route and qualify email leads with Gmail, Gemini, Slack, Sheets and Salesforce

Email Lead Router: Gmail → Gemini → Salesforce Pipeline

Who is this for? Event sales teams & conference organizers processing 100+ sponsor/partner emails weekly who need instant lead qualification, Salesforce automation, & pipeline analytics.


What problem is this workflow solving? Event email chaos kills revenue:

  • 200+ sponsor emails/week → manual Salesforce entry
  • No sentiment/intent scoring = missed $ opps
  • 10+ hours/week routing + logging
  • Fragmented pipeline visibility

Zero-drop AI qualification → auto-Salesforce → team routing.


What this workflow does

  1. Gmail Trigger captures event inbox emails
  2. Gemini #1 scores sentiment (Positive/Neutral/Negative + confidence)
  3. Gemini #2 extracts topic, intent, urgency (1-10), org, budget signals
  4. Upserts Salesforce Lead (deduped by email) w/ 9 custom fields: Sentiment__c, Urgency_Score__c, etc.
  5. Hot leads (Positive + urgency ≥7) → auto Salesforce Opportunity
  6. Creates Salesforce Task w/ AI-suggested follow-up action
  7. Logs to email_analytics Data Table + Google Sheets (Looker Studio dashboard)
  8. Routes: Positive → Hot email + Slack #hot-leads (2h); Neutral → Follow-up + #follow-ups (24h); Negative → Insights + #insights

Setup (8 minutes):

  • Gmail OAuth2 (event inbox)
  • Google Gemini API
  • Salesforce OAuth2 + 9 custom Lead fields (Sentiment__c, Urgency_Score__c, etc.)
  • Slack OAuth2 + channels (#hot-leads, #follow-ups, #insights)
  • email_analytics Data Table ID
  • Update Send Email recipients
  • Test w/ Evaluation Dataset

How to customize:

  • Tune urgency threshold (7→8)
  • Add event keywords (webinar/tradeshow)
  • Swap Slack → Teams; Salesforce → HubSpot
  • Multi-inbox territory routing

ROI:

  • 100% Salesforce coverage (no manual entry)
  • 8x faster qualification (2min vs 16h/week)
  • 30% opp velocity (auto opps/tasks)
  • Live Looker dashboard → data-driven decisions

Need help customizing?: Contact me for consulting and support: LinkedIn / Message


Keywords: event sales leads, Salesforce automation, Gemini lead scoring, email sentiment, sales pipeline n8n, AI sales routing

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Analyze Email Sentiment

Type / Role
@n8n/n8n-nodes-langchain.sentimentAnalysis - sentimentAnalysis
Config choices
Version 1.1

Block 2 - Send Hot Lead Email

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

Block 3 - Monitor Gmail Inbox

Type / Role
n8n-nodes-base.gmailTrigger - gmailTrigger
Config choices
Version 1.2

Block 4 - Send Insights Email

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

Block 5 - Send Follow-up Email

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

Block 6 - Fetch Evaluation Dataset Row

Type / Role
n8n-nodes-base.evaluationTrigger - evaluationTrigger
Config choices
Version 4.7

Block 7 - Loop Evaluation Batch

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 8 - Google Gemini 2.5 Flash Lite

Type / Role
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - lmChatGoogleGemini
Config choices
Version 1

Block 9 - Record Evaluation Metrics

Type / Role
n8n-nodes-base.evaluation - evaluation
Config choices
Version 4.8

Block 10 - Save Evaluation Output

Type / Role
n8n-nodes-base.evaluation - evaluation
Config choices
Version 4.8

Block 11 - Gate Neutral Route

Type / Role
n8n-nodes-base.evaluation - evaluation
Config choices
Version 4.8

Block 12 - Gate Positive Route

Type / Role
n8n-nodes-base.evaluation - evaluation
Config choices
Version 4.8

Block 13 - Gate Negative Route

Type / Role
n8n-nodes-base.evaluation - evaluation
Config choices
Version 4.8

Block 14 - Post Hot Lead to Slack

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.3

Block 15 - Intro — Overview & Setup

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 16 - Section — Email Trigger

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 17 - Section — AI Analysis

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 18 - Section — Routing Gate

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 19 - Section — Notifications

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 20 - Section — Evaluation

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 21 - Section — Metrics

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 22 - Extract Email Intelligence

Type / Role
@n8n/n8n-nodes-langchain.informationExtractor - informationExtractor
Config choices
Version 1

Block 23 - Google Gemini for Enrichment

Type / Role
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - lmChatGoogleGemini
Config choices
Version 1

Block 24 - Route by Sentiment

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.2

Showing the first 24 of 35 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Route and qualify email leads with Gmail, Gemini, Slack, Sheets and Salesforce
Complexity advanced
Nodes 35
Categories Lead Generation, AI Summarization
Author Milo Bravo
Published 26 Feb 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/13740/13740.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Route and qualify email leads with Gmail, Gemini, Slack, Sheets and Salesforce do?

Email Lead Router: Gmail → Gemini → Salesforce Pipeline Who is this for? Event sales teams & conference organizers processing 100+ sponsor/partner emails weekly who need instant lead qualification,...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Lead Generation, AI Summarization use case.