Templates / Sales lead routing with Gemini Sentiment Analysis & Model Evaluation Framework

Sales lead routing with Gemini Sentiment Analysis & Model Evaluation Framework

Ready for 3.0

by Mihai Farcas ✓ · 1,400 views · created 2025-12-15 · 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 15 nodes and runs on Evaluation events (plus 1 other trigger). Along the way it connects Gmail, Evaluation and Google Gemini Chat Model.

How it runs

Trigger: On Evaluation events (plus 1 other trigger).

  1. Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
  2. Sentiment Analysis: scores sentiment with AI, with model: Google Gemini 2.5 Flash Lite
  3. Check Positive (Evaluation): check if evaluating
  4. Check Neutral (Evaluation): check if evaluating
  5. Check Negative (Evaluation): check if evaluating
  6. Save Output (Evaluation): uses Evaluation
  7. Send Hot Lead Email (Gmail): uses Gmail
  8. Send Follow-up Notification (Gmail): uses Gmail
  9. Send Marketing Insights Email (Gmail): uses Gmail
  10. Set Metrics (Evaluation): set metrics

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

Services it uses

GmailEvaluationGoogle Gemini Chat Model

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 Trigger).

Nodes used (7)

From the author

This n8n template demonstrates how to deploy an AI workflow in production while simultaneously running a robust, data-driven Evaluation Framework to ensure quality and optimize costs. Use Cases Model Comparison: Quickly A/B test different LLM models (e.g.,…

Excerpt from Mihai Farcas'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.