Templates / Generate weekly student progress reports with Gemini, Supabase, and WhatsApp

Generate weekly student progress reports with Gemini, Supabase, and WhatsApp

Ready for 3.0

by Kanishka Shrivastava ✓ · 27 views · created 2026-07-18 · Document Extraction, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

Nodes used (11)

SupabaseGoogle Gemini Chat ModelBasic LLM ChainStructured Output ParserWhatsApp Business Cloud

What it does

Quick overview This workflow runs weekly to pull student attendance and score data from Supabase, uses Google Gemini to generate per-student performance summaries and attention flags, sends immediate WhatsApp alerts for flagged students, then compiles all summaries into a PDF report, uploads it, and shares it with the coach via WhatsApp. How it works 1. Runs weekly on a schedule. 2. Fetches all student weekly metrics (attendance and scores) from Supabase. 3. Uses Google Gemini to write a short performance summary per student and determine whether the student should be flagged for attention based on attendance and score-drop rules. 4. If a student is flagged, sends a WhatsApp message to the coach and inserts a flag record into Supabase. 5. Aggregates all students’ summaries into a single HTML weekly report. 6. Converts the HTML report to a PDF via an HTTP-based HTML-to-PDF API, uploads the PDF to a file-hosting API, and sends the PDF link/document to the coach via WhatsApp. 7. Logs the report URL to Supabase for recordkeeping. Setup 1. Add Supabase credentials and create the required tables/columns (weeklystudentdata, attentionflags, and weeklyreports) referenced by the workflow. 2. Add a Google Gemini (PaLM) API credential for the chat model used to generate summaries and flags. 3. Add WhatsApp Business Cloud credentials, and set your WhatsApp phone number ID and the coach’s recipient number in the configuration values. 4. Provide an HTML-to-PDF API endpoint and API key, plus a file upload/hosting API endpoint and API key, and update the configuration fields accordingly. 5. Confirm the upload API response field used for the public file URL (assumed to be url) and adjust the workflow if your provider returns a different field. 6. Set the preferred day/time in the weekly schedule trigger and activate the workflow.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.