Monitor at-risk students with Google Sheets, GPT-4o, Gmail, Slack and Telegram
Ready for 3.0What this workflow does
This AI workflow has 16 nodes and runs on a schedule (every week at 07:00) (plus 1 other trigger). Along the way it connects Google Sheets, OpenAI, Slack and Telegram and 1 more.
How it runs
Trigger: On a schedule (every week at 07:00) (plus 1 other trigger).
- Read Student Data from Sheets (Google Sheets): uses Google Sheets
- Slack: uses Slack
- Compute Risk Index (Code): runs custom JavaScript code
- Filter HIGH Risk Students (Code): runs custom JavaScript code
- Filter MEDIUM + HIGH Risk Students (Code): runs custom JavaScript code
- Prepare Trend Log Rows (Code): runs custom JavaScript code
- GPT-4o Personalised Nudge (OpenAI): uses OpenAI
- Build Teacher Digest (Code): runs custom JavaScript code
- Log Trend to Sheets (Google Sheets): append
- Loop Over High-Risk Students (Loop Over Items (Split in Batches)): loops over the items in batches
…plus 4 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other OpenAI + Google Sheets templates (2,011) · Other OpenAI + Gmail templates (1,623)
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 (9)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Google Sheets
n8n-nodes-base.googleSheets - Code
n8n-nodes-base.code - OpenAI
@n8n/n8n-nodes-langchain.openAi - Slack
n8n-nodes-base.slack - Telegram
n8n-nodes-base.telegram - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Gmail
n8n-nodes-base.gmail - Error Trigger
n8n-nodes-base.errorTrigger
From the author
Quick overview This workflow runs weekly to read student performance data from Google Sheets, calculates a risk index and trend, generates personalised nudge messages with OpenAI for high-risk students, posts a teacher digest to Slack and Telegram, and logs…