Automate peer review assignments with GPT-4-nano, Slack and email notifications
Needs changesWhat this workflow does
This AI workflow has 20 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects OpenAI Chat Model, Slack and Postgres. It also calls dashboard.university.edu over HTTP.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Store Assignment Data (Edit Fields (Set)): sets or maps fields
- Distribute Peer Assignments (Code): runs custom JavaScript code
- Generate Review Rubric (AI Agent): runs an AI agent, with model: OpenAI Model; output parser: Structure Parser
- Notify on Slack (Slack): uses Slack
- Email Reviewers (Send Email): sends an email over SMTP
- Prepare Response Data (Edit Fields (Set)): sets or maps fields
- Calculate Peer Score (Code): runs custom JavaScript code
- Respond to Webhook: sends the response back to the webhook caller
- Store Review Results (Postgres): uses Postgres
- Check Completion Status (Code): runs custom JavaScript code
…plus 5 more steps. See the full node list below.
Services it uses
Other OpenAI + Slack templates (979) · Other OpenAI + PostgreSQL templates (191) · Other PostgreSQL + Slack templates (109)
HTTP calls to: dashboard.university.edu
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in Generate Review Rubric (v1.7), Generate Final Report (v1.7): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
Published 2025 — 19% of 2025 templates need changes for 3.0. See how template age affects 3.0 readiness →
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) Generate Review Rubric (v1.7), Generate Final Report (v1.7) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (11)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - AI Agent
@n8n/n8n-nodes-langchain.agent - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Slack
n8n-nodes-base.slack - Send Email
n8n-nodes-base.emailSend - Respond to Webhook
n8n-nodes-base.respondToWebhook - Postgres
n8n-nodes-base.postgres - HTTP Request
n8n-nodes-base.httpRequest
From the author
Introduction Automate peer review assignment and grading with AI-powered evaluation. Designed for educators managing collaborative assessments efficiently. How It Works Webhook receives assignments, distributes them, AI generates review rubrics, emails…