Sales lead routing with Gemini Sentiment Analysis & Model Evaluation Framework
Ready for 3.0What 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).
- Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
- Sentiment Analysis: scores sentiment with AI, with model: Google Gemini 2.5 Flash Lite
- Check Positive (Evaluation): check if evaluating
- Check Neutral (Evaluation): check if evaluating
- Check Negative (Evaluation): check if evaluating
- Save Output (Evaluation): uses Evaluation
- Send Hot Lead Email (Gmail): uses Gmail
- Send Follow-up Notification (Gmail): uses Gmail
- Send Marketing Insights Email (Gmail): uses Gmail
- Set Metrics (Evaluation): set metrics
…plus 2 more steps. See the full node list below.
Services it uses
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)
- Sentiment Analysis
@n8n/n8n-nodes-langchain.sentimentAnalysis - Gmail
n8n-nodes-base.gmail - Gmail Trigger
n8n-nodes-base.gmailTrigger - Evaluation Trigger
n8n-nodes-base.evaluationTrigger - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Evaluation
n8n-nodes-base.evaluation
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.,…