Communication & Engagement
The unified communication platform: notifications, announcements, real-time messaging, surveys and polls, communication analytics, and WhatsApp integration are available today on the Basic tier. Elite adds a Gemini-backed AI Translation Engine, an AI Communication Copilot for staff, and a live-data-grounded AI Parent Assistant reachable from the web app, mobile app, and WhatsApp.
Basic Tier Features
BasicNotifications
- Multi-channel delivery: in-app, Web Push (VAPID), email, and native mobile push (FCM)
- Real-time delivery over Socket.io to every connected session (room per user)
- Read/unread tracking with per-user pagination and unread counts
- Web UI: /dashboard/notifications · Mobile: shared notification center screen per role
Announcements & Notices
- Targeted by role, course, class, or specific user, with pinning and expiry
- Category (Information/Event/Holiday/Exam/Meeting/Urgent) and priority tagging
- File attachments via Cloudinary upload
- Admin/Teacher UI: notices list + create form · Mobile: broadcast screen for admins
Messaging & Conversations
- Real-time one-to-one messaging via Socket.io, with file/image attachments
- Direct parent ↔ teacher/admin conversations, decoupled from any specific course — New
- Admin monitoring: join/leave a conversation, flag messages, mute conversations
- Web UI: /dashboard/{role}/messages · Mobile: per-role chat screens
Surveys & Polls — New
- Build multi-question surveys or quick polls with text, single-choice, multiple-choice, or rating questions
- Targeted by role, course, class, or specific user, same audience model as Notices
- One response per user enforced; aggregated results with per-question breakdown
- Web UI: /dashboard/admin/surveys · Mobile: survey list + response screens
Communication Analytics — New
- Delivery: notifications sent, read rate, breakdown by type
- Engagement: daily read-rate trend, message volume, average messages per conversation
- Channel adoption: email, web push, mobile push, WhatsApp
- Language: preferredLanguage distribution across users
- Admin UI: /dashboard/admin/communication-analytics
WhatsApp Integration
- WhatsApp Business messaging via the SendZen API — notices, fee reminders, attendance alerts
- Menu-driven self-service flows: notices, fee reminders, attendance, progress reports, AI engagement reports, message-the-teacher, hardware consent responses, timetable, bus location & ETA (New) — all fully self-serve with no portal/app login required
- Bus location (option 10) replies with driver/bus/child pickup-dropoff status plus a tap-to-open Google Maps link, and a native WhatsApp location pin when the driver has an active trip in progress (New)
- Language selection on first contact (English, Hindi, Telugu, Tamil, Kannada) — parents can switch anytime by replying 9 or "language"; the full menu and every reply render in the chosen language
- Multi-child support: parents with more than one linked child are prompted to pick which child before attendance, reports, timetable, or teacher messaging
- Admission-inquiry flows for prospective parents who aren't yet registered users
Live Broadcast — New
- The school admin goes live with camera and microphone and teachers, parents and students watch and listen. Only admin, super_admin and platform_admin can start a broadcast
- Media runs on LiveKit (livekit-client on web, @livekit/react-native on phones). The host publishes 720p at 24 frames with two smaller copies (360p and 180p) so each viewer receives the size that fits their network
- POST /api/live/start creates the session with a 6-digit code (503 if LiveKit is not configured; an admin who is already live resumes). POST /api/live/token returns a join token: host for the starter, viewer for everyone else in the same school
- A school-wide socket event (live:school-stream-started / live:school-stream-ended) powers the LIVE NOW banner on the parent and teacher homes
- Watchdog (services/liveWatchdog): the server checks LiveKit every 3 seconds. A broadcast ends 10 seconds after the admin leaves the room (short network drops reconnect by themselves), or 60 seconds after start if the admin never joined. If LiveKit itself is unreachable nothing is ended
- A switched-off camera shows a camera-off panel instead of freezing on the last picture, for the host and for viewers
- Mobile: (admin)/live-stream.tsx and components/live/LiveHostScreen for the host; (student|teacher|parent)/live-watch.tsx for viewers. Web: /dashboard/admin/live
Video Meet — New
- An admin creates a meeting and gets a 6-digit code shown at the top of the screen; everyone else in the same school joins with it. Roles that can join: every school role
- Held in server memory only (services/meetingService): nothing is stored or recorded. Maximum 12 participants; an empty meeting expires after 15 minutes; the host or any admin can end it for everyone
- Media is relayed over Socket.IO with no third-party service and no WebRTC: video is a stream of small JPEG pictures and audio is 1.2 second chunks, so expect lower quality than a video-call app. Headphones are recommended
- Adaptive quality: after every frame the JPEG quality is nudged to stay under a per-frame size budget (about 60 KB for up to 2 other people, 40 KB up to 6, 28 KB beyond). Frames are paced from when capture starts
- Controls: microphone, camera (a camera that is off shows the person's initials), front/back flip, sound, chat (last 100 messages) and a participant list with mic and camera state
- Guards: frames must start with the JPEG signature and stay under 110k characters, audio under 120k; each sender has a budget of about 220k characters per second. Rate limits: 12 frames/s, 6 audio chunks/s, 10 chat messages per 5 s
- A user who sends 8 wrong codes within 5 minutes is blocked for a while (HTTP 429 on lookup, meet:error on join). A code only works inside the school that created it
- Mobile: (role)/meet.tsx rendering components/meet/MeetScreen. Web: /dashboard/meet
Elite Tier Features
EliteAI Translation Engine
- On-demand translation via POST /api/communication-ai/translate
- Real-time messages auto-translate when sender/receiver preferredLanguage differ — delivered over Socket.io as message-translated
- Notices translate on demand via GET /api/notices/:id/translate, cached on the Notice document
AI Communication Copilot
- Drafts announcements and reminders from a topic — pre-fills the notice creation form for staff to review
- General Q&A copilot for communication drafting help
- Admin UI: /dashboard/admin/communication-copilot
AI Parent Assistant & WhatsApp AI Fallback
- Personalised answers about a child's attendance, fees, and recent notices, grounded in live data — never invents figures
- Free-text WhatsApp messages that don't match a menu command fall through to the same assistant for Elite schools
- Web UI: /dashboard/parent/ai-assistant · Mobile: (parent)/ai-assistant
Elite Tier — Still Planned
Voice-First Experience
- Speech-to-text and text-to-speech for parents with low digital literacy
- Requires a speech provider integration (not yet selected)
- Planned — not yet implemented
API Reference — Chapter 15
Notifications
/api/notificationsGet notifications for the current user (paginated, filter by unread)
/api/notifications/mark-readMark specific notifications as read
/api/notifications/mark-all-readMark all notifications as read
/api/notifications/:idDelete a notification
/api/notifications/subscribeRegister a Web Push subscription
/api/notifications/unsubscribeRemove a Web Push subscription
Messaging
/api/messages/conversationsList conversations for the current user
/api/messages/conversationStart a conversation — course-scoped, or direct with just a recipientId (New)
/api/messages/conversation/:conversationIdGet messages in a conversation
/api/messages/uploadSend a file or image message
/api/messages/students/:courseIdList students with linked parents for a course, for teacher-initiated messaging
/api/messages/school-conversationsAdmin monitoring — list all conversations school-wide
/api/messages/conversations/:id/monitor/joinAdmin joins a conversation as a silent monitor
/api/messages/conversations/:id/monitor/leaveAdmin leaves a monitored conversation
/api/messages/conversations/:id/flagFlag a conversation for review
/api/messages/conversations/:id/muteMute a conversation
/api/messages/conversations/:id/unmuteUnmute a conversation
/api/messages/messages/:msgId/flagFlag an individual message
Announcements
/api/noticesCreate and publish an announcement
/api/notices/myList announcements targeted at the current user
/api/noticesList all announcements (admin)
/api/notices/:idGet a single announcement
/api/notices/:idUpdate an announcement
/api/notices/:idDelete an announcement
/api/notices/upload-attachmentUpload a file attachment for an announcement
/api/notices/:noticeId/attachments/:attachmentIdRemove an attachment from an announcement
Surveys & Polls (New)
/api/surveysCreate a survey or poll (admin, teacher, super_admin)
/api/surveysList all surveys, school-scoped
/api/surveys/myList surveys targeted at the current user, with hasResponded flag
/api/surveys/:idGet survey details
/api/surveys/:id/respondSubmit a response (one per user)
/api/surveys/:id/resultsAggregated results (creator or admin)
/api/surveys/:idDelete a survey and its responses
Communication Analytics (New)
/api/communication/analytics/deliveryNotification delivery totals and read rate
/api/communication/analytics/engagementDaily read-rate trend and message volume
/api/communication/analytics/channelsChannel adoption across email, web push, mobile push, WhatsApp
/api/communication/analytics/languagePreferred-language distribution
/api/whatsapp/webhookReceive inbound WhatsApp messages — free-text falls through to the AI Parent Assistant on Elite schools (New)
AI Communication Suite Elite
/api/communication-ai/translateTranslate arbitrary text to a target language
/api/communication-ai/draft-announcementAI-drafted announcement title/body from a topic
/api/communication-ai/draft-reminderAI-drafted short reminder text
/api/communication-ai/copilotGeneral staff-facing communication Q&A
/api/communication-ai/parent-assistantLive-data-grounded Q&A about a parent's own child
/api/notices/:id/translateOn-demand notice translation, cached on the Notice document
Live Broadcast
/api/live/startAdmin starts a broadcast and receives the session code (resumes if already live)
/api/live/activeActive broadcasts for the user school
/api/live/tokenJoin token for a broadcast: host for the starter, viewer for others in the same school
/api/live/:codeLook up a broadcast by code
/api/live/:code/endEnd a broadcast (host or admin)
Video Meet (REST)
/api/meetingsAdmin or super_admin creates a meeting and gets its code
/api/meetings/:codeLook a meeting up before joining; same school only; 429 after repeated wrong codes
/api/meetings/:code/endAdmin ends the meeting for everyone
Video Meet (Socket.IO events)
meet:join / meet:leaveEnter or leave a meeting room; server replies meet:joined with participants and chat
meet:frame / meet:audioRelay a JPEG frame or an audio chunk to the others in the meeting
meet:stateBroadcast mic and camera on/off
meet:chatSend a chat message to the meeting
meet:endAdmin ends the meeting; everyone receives meet:ended
Frontend Pages
| Path | Role | Description | Tier |
|---|---|---|---|
| /dashboard/{role}/messages | Teacher / Parent / Student | Conversation list and chat window | Basic |
| /dashboard/{role}/notices | Admin / Teacher / Student / Parent | Announcement feed | Basic |
| /dashboard/admin/notices/create | Admin | Announcement creation form with audience targeting | Basic |
| /dashboard/admin/surveys | Admin | Survey/poll list, create link, delete (New) | Basic |
| /dashboard/admin/surveys/create | Admin | Survey/poll builder with dynamic questions (New) | Basic |
| /dashboard/admin/surveys/[id]/results | Admin | Aggregated survey results (New) | Basic |
| /dashboard/teacher/surveys | Teacher | List, respond, and create surveys (New) | Basic |
| /dashboard/student/surveys | Student | List and respond to surveys (New) | Basic |
| /dashboard/parent/surveys | Parent | List and respond to surveys (New) | Basic |
| /dashboard/admin/communication-analytics | Admin | Delivery, engagement, channel, and language analytics (New) | Basic |
| /dashboard/admin/communication-copilot | Admin | AI draft-reminder tool and general Q&A copilot (New) | Elite |
| /dashboard/parent/ai-assistant | Parent | Child-scoped AI Q&A grounded in live attendance/fee/notice data (New) | Elite |
| /dashboard/parent/communication-preferences | Parent | Toggle WhatsApp, email, push, and SMS notification channels | Basic |
| /dashboard/admin/live | Admin | Start and run a live broadcast (New) | Basic |
| /dashboard/meet | Every school role | Create (admin) or join a video meeting with a code (New) | Basic |
Mobile Screens
(student|parent|teacher|admin|accountant)/notifications(student|parent|teacher|admin|accountant|librarian|facilities-admin)/notices(admin)/notice-create(parent|teacher|student)/messages(student|parent|teacher)/surveys(student|parent|teacher)/survey-detail(parent)/ai-assistant(admin)/live-stream.tsx(student|teacher|parent)/live-watch.tsx(role)/meet.tsx