Overview
This workflow automatically sends Telegram messages to parents when their childโs semester fee status is updated in Google Sheets โ eliminating the need for manual follow-ups. It runs every hour, checks for new status changes, and sends the right message (payment confirmation or payment reminder) without sending duplicates.
Built for schools, coaching centers, and educational institutions that want to automate fee communication professionally.
How It Works
-
Google Sheets Trigger โ Polls the
student_datasheet every hour for new/updated rows -
Filter: Paid & Unsent โ Checks if
payment_status = paidANDmessage_sent โ true -
Payment Confirmation Message โ Sends a Telegram thank-you message to the parent
-
Mark Paid Notified โ Updates
message_sent = truein the sheet to prevent duplicates -
Filter: Unpaid & Unsent โ Checks if
payment_statusis empty ANDmessage_sent โ true -
Payment Reminder Message โ Sends a Telegram fee reminder to the parent with student name, ID, and fee amount
-
Mark Unpaid Notified โ Updates
message_sent = truefor reminder tracking -
Error Trigger + Error Alert โ Catches any workflow errors and sends an instant Telegram alert
Nodes Used
| Node | Purpose |
|---|---|
| Google Sheets Trigger | Polls student data every hour |
| IF (ร2) | Filters paid/unpaid and unsent messages |
| Telegram (ร3) | Sends confirmation, reminder & error alerts |
| Google Sheets Update (ร2) | Marks rows as notified |
| Error Trigger | Catches execution errors |
Google Sheets Column Structure
Your student_data sheet should have these columns:
| Column | Description |
|---|---|
student_name |
Studentโs full name |
student_id |
Unique student ID |
semester_fee |
Fee amount due |
payment_status |
paid or leave empty |
telegra_chat_id |
Parentโs Telegram Chat ID |
message_sent |
Set to true after notification is sent |
Setup Instructions
-
Import the workflow JSON into your n8n instance
-
Connect Google Sheets credential and link your spreadsheet
-
Connect Telegram Bot credential (create a bot via @BotFather)
-
Fill in parent Telegram Chat IDs in your Google Sheet
-
Activate the workflow โ it will run automatically every hour
Key Features
-
Duplicate prevention via message_sentflag -
Separate messages for paid confirmation and unpaid reminders -
Built-in error alerting via Telegram -
Zero manual effort after setup
Author
Md Mustakim Ali (siratal) | Built with n8n + Google Sheets + Telegram | v1.0
https://github.com/Siratalm/n8n_school_automation