Automated Quiz Auto Grader with RAG Agent
detail.loadingPreview
This n8n workflow automates quiz grading using a RAG Agent. It processes incoming quiz data via a Webhook Trigger, chunks it using Text Splitter, embeds it with Embeddings, stores it in Pinecone Insert, queries relevant context via Pinecone Query, and leverages a Chat Model and Window Memory to generate automated grading results, logging them to Google Sheets via Append Sheet.
🚀Ready to Deploy This Workflow?
About This Workflow
Overview
This workflow automates the process of grading quizzes by leveraging a Retrieval Augmented Generation (RAG) agent. It's designed to handle incoming quiz submissions, retrieve relevant information from a knowledge base (stored in Pinecone), and then use a language model to generate accurate and contextually appropriate feedback or grades. This eliminates manual grading efforts, improves consistency, and provides immediate feedback to students or users.
Why use this?
- Efficiency: Automates a time-consuming manual task.
- Consistency: Ensures grading is applied uniformly across all submissions.
- Scalability: Can handle a large volume of quiz submissions.
- Contextual Feedback: Provides more nuanced feedback by incorporating retrieved knowledge.
Key Features
- Webhook Trigger: Accepts quiz submissions via HTTP POST requests.
- Text Splitting & Embedding: Processes incoming text into manageable chunks and creates vector embeddings for efficient retrieval.
- Pinecone Integration: Stores and queries vectorized quiz data for context retrieval.
- RAG Agent: Utilizes a Retrieval Augmented Generation agent to combine retrieved context with a language model for intelligent response generation.
- Google Sheets Logging: Logs grading results and status updates to a Google Sheet for record-keeping.
- Slack Alerts: Sends error notifications to Slack in case of workflow failures.
How To Use
- Configure Webhook Trigger: Set up your quiz submission endpoint to send POST requests to the n8n webhook URL.
- Set up Pinecone: Create a Pinecone index named
quiz_auto_graderand ensure your Pinecone API key is configured in n8n. - Configure Embeddings: Ensure your Cohere API key is set up for generating text embeddings.
- Configure Chat Model: Ensure your OpenAI API key is set up for the language model.
- Set up Google Sheets: Authorize n8n to access your Google Sheets and specify the
SHEET_IDandLogsheet name for logging results. - Configure Slack Alerts: Set up your Slack API credentials to receive error notifications.
- Trigger the Workflow: Submit quiz data to the webhook URL. The workflow will process the data, grade the quiz, and log the results to Google Sheets.
Apps Used
Workflow JSON
{
"id": "88a843db-0d8b-40c8-b6c9-c6f9898110cd",
"name": "Automated Quiz Auto Grader with RAG Agent",
"nodes": 0,
"category": "Automation",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: 88a843db-0d8b...
About the Author
SaaS_Connector
Integration Guru
Connecting CRM, Notion, and Slack to automate your life.
Statistics
Verification Info
Related Workflows
Discover more workflows you might like
Inventory Slack Alert Workflow
Triggers an alert based on inventory changes, processes data using RAG, and logs results.
Supply Chain Delay Monitor
Automated monitoring and logging of supply chain delays using a webhook, text processing, embeddings, and a vector store.
Automated Google Drive Backup for n8n Workflows
Automatically back up n8n workflows to Google Drive on a schedule.