Templates / Match teacher substitutes and send notifications with GPT-4o-mini, Google Sheets, Gmail and Telegram

Match teacher substitutes and send notifications with GPT-4o-mini, Google Sheets, Gmail and Telegram

Ready for 3.0

by Rahul Joshi ✓ · 11 views · created 2026-08-16 · HR, 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.

What this workflow does

This AI workflow has 29 nodes and runs when someone submits an n8n form (“Teacher Leave Request”) (plus 2 other triggers). Along the way it connects Google Sheets, OpenAI, Telegram and Gmail and 3 more.

How it runs

Trigger: When someone submits an n8n form (“Teacher Leave Request”) (plus 2 other triggers).

  1. Fetch Full Timetable from Sheets (Google Sheets): uses Google Sheets
  2. Fetch Substitute Availability (Google Sheets): uses Google Sheets
  3. Fetch Today's Assigned Substitutes (Google Sheets): uses Google Sheets
  4. Read Payroll Sheet for Digest (Google Sheets): uses Google Sheets
  5. Slack: uses Slack
  6. Telegram: uses Telegram
  7. Filter Classes for Absent Teacher (Code): runs custom JavaScript code
  8. Aggregate Substitute Workload (Code): runs custom JavaScript code
  9. Build AI Substitute Ranking Prompt (Code): runs custom JavaScript code
  10. Slack: uses Slack

…plus 16 more steps. See the full node list below.

Services it uses

Google SheetsOpenAITelegramGmailTwilioGoogle CalendarSlack

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.

Nodes used (12)

From the author

Quick overview This workflow captures teacher leave requests via an n8n form, pulls timetable and substitute availability from Google Sheets, uses OpenAI to pick the best substitute, then notifies the substitute, students, and an admin (Gmail and Telegram)…

Excerpt from Rahul Joshi's description on n8n.io.

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.