feat(n8n): add school intake workflow v1.1

This commit is contained in:
Fizzlepoof
2026-05-13 21:32:18 +00:00
parent f6482abcd6
commit a5c0c0b9ad
4 changed files with 253 additions and 11 deletions

View File

@@ -108,13 +108,14 @@ _Last updated: 2026-05-13_
---
### 18 — Telegram School Intake → Postgres → Paperless v1.0
### 18 — Telegram School Intake → Postgres → Paperless v1.1
**What it does:** Accepts multipart school-work upload plus metadata (`class_name`, `assignment_name`, `submission_kind`, optional semester/course_code/paper_kind), records it in shared Postgres, and uploads it into Paperless with a deterministic `intake_id`-based filename.
**Local artifact checks completed:**
- [x] Workflow JSON validates with `python3 -m json.tool`
- [x] Companion helper script validates with `node --check school/intake/submit_to_n8n.js`
- [x] Class profile example JSON validates with `python3 -m json.tool`
- [x] v1.1 removes the `require('crypto')` dependency for easier live rollout
**Pre-test checklist:**
- [ ] Shared Postgres table `school_paperless_intake` created from `docs/reference/SCHOOL_INTAKE_POSTGRES_SCHEMA.sql`