Grade assignments from Google Drive with Gemini 4 and teacher-approved Gmail
Ready for 3.0What this workflow does
This AI workflow has 38 nodes and runs on Google Drive events (plus 1 other trigger). Along the way it connects Google Drive, Google Sheets, OpenRouter Chat Model and Gmail.
How it runs
Trigger: On Google Drive events (plus 1 other trigger).
- Config (Edit Fields (Set)): sets or maps fields
- Submission Event? (If): checks a condition and branches into true / false
- Loop Submissions (Loop Over Items (Split in Batches)): loops over the items in batches
- Read Digest Grades (Google Sheets): uses Google Sheets
- Parse Submission (Code): runs custom JavaScript code
- Summarize Grades (Code): runs custom JavaScript code
- Valid Submission? (If): checks a condition and branches into true / false
- Send Digest (Gmail): uses Gmail
- Read Existing Grade (Google Sheets): uses Google Sheets
- Build Incident (Code): runs custom JavaScript code
…plus 25 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other Google Drive + Google Sheets templates (720) · Other Gmail + Google Drive templates (465)
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (12)
- Google Drive Trigger
n8n-nodes-base.googleDriveTrigger - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Code
n8n-nodes-base.code - Google Sheets
n8n-nodes-base.googleSheets - Google Drive
n8n-nodes-base.googleDrive - Extract from File
n8n-nodes-base.extractFromFile - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter - Gmail
n8n-nodes-base.gmail
From the author
Grade assignments with AI using your own rubric, while keeping the teacher in charge of every feedback email. It catches unknown students, missing rubrics, repeat files, unreadable scans and questionable model output before a student gets anything. Last…