Grade system prompts in Google Sheets with a Gemini LLM judge
Ready for 3.0What this workflow does
This AI workflow has 11 nodes and runs manually, when you click “Execute workflow”. Along the way it connects Google Sheets and Google Gemini Chat Model.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Read Prompts from Sheets (Google Sheets): uses Google Sheets
- Limit: keeps the first few items
- Set Sample Grading Task (Edit Fields (Set)): sets 1 field: sampleTask
- Candidate Evaluation Agent (AI Agent): runs an AI agent, with model: Gemini Candidate Model
- Grade Evaluation Agent (AI Agent): runs an AI agent, with model: Gemini Grader Model; output parser: Parse Grade Schema
- Update Grade in Sheets (Google Sheets): update
Services it uses
Other Google Gemini + Google Sheets templates (819)
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 (7)
- Manual Trigger
n8n-nodes-base.manualTrigger - Google Sheets
n8n-nodes-base.googleSheets - Limit
n8n-nodes-base.limit - Edit Fields (Set)
n8n-nodes-base.set - AI Agent
@n8n/n8n-nodes-langchain.agent - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured
From the author
Quick overview This workflow manually grades a system prompt by running it against a sample user task with Google Gemini, then has a second Gemini judge score the prompt (1–10) and write the grade and reason back to Google Sheets. How it works 1. Starts when…