Evaluate AI support agent quality and regressions with Google Sheets, Groq and Gmail
Ready for 3.0What this workflow does
This AI workflow has 27 nodes and runs manually, when you click “Execute workflow”. Along the way it connects Google Sheets, Google Gemini Chat Model, Gmail and Groq Chat Model.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Read Test Cases from Sheets (Google Sheets): uses Google Sheets
- Filter: keeps only the items that match a condition
- Loop Over Test Cases (Loop Over Items (Split in Batches)): loops over the items in batches
- Read Current Evaluation Results (Google Sheets): uses Google Sheets
- Set Agent Prompt Parameters (Edit Fields (Set)): sets 1 field: Agent_Prompt
- Filter: keeps only the items that match a condition
- Execute AI Support Agent (AI Agent): runs an AI agent, with model: Agent Chat Model Executor, Google Gemini Chat Executor
- Compute Run Metrics (Code): runs custom JavaScript code
- Set Evaluation Parameters (Edit Fields (Set)): sets 7 fields: Test_ID, Question, Expected_Facts…
- Read Baseline Metrics (Google Sheets): uses Google Sheets
…plus 13 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.
Nodes used (13)
- Manual Trigger
n8n-nodes-base.manualTrigger - Google Sheets
n8n-nodes-base.googleSheets - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Edit Fields (Set)
n8n-nodes-base.set - AI Agent
@n8n/n8n-nodes-langchain.agent - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Code
n8n-nodes-base.code - Filter
n8n-nodes-base.filter - If
n8n-nodes-base.if - Switch
n8n-nodes-base.switch - Gmail
n8n-nodes-base.gmail - Groq Chat Model
@n8n/n8n-nodes-langchain.lmChatGroq
From the author
Quick overview This workflow runs a customer-support AI agent against Google Sheets test cases, uses Groq-hosted LLMs to evaluate response quality, logs results back to Google Sheets, compares run metrics to an approved baseline, and sends regression or…