Audit student grades and generate PDF report cards with Google Sheets and Slack
Ready for 3.0What this workflow does
This workflow has 19 nodes and runs on a schedule (every 6 hours). Along the way it connects Google Sheets, Postgres, Slack and Google Drive. It also calls api.pdfendpoint.com over HTTP.
How it runs
Trigger: On a schedule (every 6 hours).
- Read Teacher Submissions (Google Sheets): uses Google Sheets
- Normalize Data (Code): runs custom JavaScript code
- Fetch Student Records (Postgres): run a query
- Merge & Align Data (Code): runs custom JavaScript code
- Check Data Completeness (If): checks a condition and branches into true / false
- Compute Grades (Code): runs custom JavaScript code
- Log Anomalies (Postgres): run a query
- Validate Grade Totals (If): checks a condition and branches into true / false
- Generate Report Cards (Code): runs custom JavaScript code
- Notify Admin of Mismatch (Slack): uses Slack
…plus 8 more steps. See the full node list below.
Services it uses
Other Google Sheets + Slack templates (1,314) · Other Google Drive + Google Sheets templates (720) · Other Google Drive + Slack templates (222)
HTTP calls to: api.pdfendpoint.com
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 (10)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Google Sheets
n8n-nodes-base.googleSheets - Code
n8n-nodes-base.code - Postgres
n8n-nodes-base.postgres - If
n8n-nodes-base.if - Slack
n8n-nodes-base.slack - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - HTTP Request
n8n-nodes-base.httpRequest - Google Drive
n8n-nodes-base.googleDrive - Limit
n8n-nodes-base.limit
From the author
Quick overview Youtube Video: https://youtu.be/Gk9IuNJBgnc This workflow runs every 6 hours to audit student marks from Google Sheets against historical records in PostgreSQL, flag anomalies to Slack, and generate per-student PDF report cards via…