Automate grading student answer sheets using this n8n workflow. Leverage the Gemini AI n8n node for image analysis and comparative evaluation, logging detailed results into Google Sheets.
Download this n8n workflow template and start using it instantly.
Educators and Teachers: Seeking to drastically reduce the time spent on manual grading.
School Administrators: Interested in deploying scalable, consistent evaluation systems.
Automation Enthusiasts: Looking for advanced n8n templates integrating image recognition, LLMs, and Google Workspace.
Developers: Needing an example of a complex, multi-tool AI Agent implemented using n8n.
Manual grading of answer sheets is a laborious and repetitive task. This specific n8n workflow solves this by establishing a sophisticated AI evaluation agent. The system is initiated via a simple form n8n trigger where an examiner uploads a scanned answer sheet. The workflow uses the Google Gemini n8n node to first analyze the image, extracting the student’s handwriting and answers.
Crucially, the core AI Agent is given access to reference materials (Question Paper and Correct Answer Sheet via Google Docs n8n node tools). It compares the extracted student answers against the correct answers, calculates the marks, and generates a structured JSON output. This robust n8n workflow then pushes both a summary and a detailed, question-by-question scorecard into Google Sheets, making the evaluation process seamless, fast, and accurate. Utilizing this powerful n8n workflow saves significant staff time.
This automation initiates with an n8n trigger and proceeds through three primary phases: ingestion, evaluation, and reporting.
To deploy this powerful n8n workflow template, follow these steps:
Answer Sheet Uploader (Form Trigger): The starting n8n trigger. Collects input from the user (Examiner Name) and handles the file upload of the scanned answer sheet. It is configured to accept PNG or JPG files.
Analyze an image (Google Gemini n8n node): Essential for reading the source material. Function: Analyzes the uploaded binary image, extracts all written text (answers, student name, etc.), and provides the output text for the AI Agent. Key Configuration: Uses models/gemini-2.5-flash and is set to the 'image' resource type, targeting the UploadAnswerSheet binary property.
AI Agent (Agent n8n node): The core intelligence of this n8n workflow. Function: Orchestrates the evaluation, comparing extracted student answers against Google Docs reference tools. It defines complex rules for comparison and scoring. Key Configuration: Uses gemini-2.5-pro via the language model connection, and utilizes 'Question Paper 5Th Class' and 'Answer Paper 5th Class' as tools.
Structured Output Parser1 (Output Parser n8n node): Function: Ensures the output from the 'AI Agent' strictly conforms to a defined JSON schema, guaranteeing reliable downstream processing by Google Sheets n8n node steps.
Append Summary (Google Sheets n8n node): Function: Writes the high-level evaluation metrics (Total Marks, Marks Obtained, correct/incorrect counts) into a designated summary tab. Key Configuration: Operation is set to 'append', mapping specific fields from the AI output JSON.
Code to merge multiple items into one JSON (Code n8n node): Function: Transforms the nested JSON array containing question details into separate items, ensuring each item carries the necessary metadata (like Student Name) required by the subsequent Google Sheets n8n node for detailed logging.
Automate post-purchase fulfillment using this robust n8n workflow. Capture Stripe checkout data (receipt URL, amount, products) and sync it instantly to KlickTipp via tags for automated confirmation email sequences. Explore our n8n templates for finance automation.

Automate Stripe dispute monitoring using this powerful n8n workflow. Instantly alert your team via Slack and create prioritized tasks in ClickUp based on urgency and evidence deadlines. Get started with essential n8n templates.

Use this powerful n8n workflow to automate daily stock trading decisions based on real-time sentiment analysis data stored in Google Sheets. Learn how this n8n template manages sell, wait, and buy operations via the Alpaca API.

Automate weekly student academic progress reports using this advanced n8n workflow. Integrate Google Sheets and LMS data, generate HTML reports, and send updates via Gmail.

Professionalize your customer support process using this advanced n8n workflow. Automatically convert Gmail inquiries into trackable Trello tickets, send instant customer confirmations, and notify your internal team via Slack. Get started with n8n templates today.


I am an automation consultant at a multinational company with 18 years of experience in automation technologies, including RPA, Python, and VBA. I am also expanding my expertise by learning AI Agents to further enhance my skill set. Currently serving as delivery manager for a automation team.







































