admin

Please wait...

auto_awesome
Smart Suite

AI Predictive & Generative Hub

Smart is supercharged with a premium suite of AI predictive widgets, automated syllabi drafters, textbook MCQ visual workspaces, 3D flippable study flashcards, and student leave advisors out-of-the-box, powered by **Google Gemini & OpenAI**.

vpn_key AI API Configuration Guide

Learn how to easily set up your Google Gemini or OpenAI API credentials in the template to power all live AI features instantly.

offline_bolt
No API Key? No Problem! (Demo Sandbox Mode) Smart features a beautiful, offline sandbox mock recovery layer. If no API Key is saved, the application automatically returns rich, structured mock predictions and draft letters, ensuring all pages remain functional for client presentations.
1
Retrieve Your API Key

Sign up and generate a free API Key from Google AI Studio (Gemini) or OpenAI Platform.

2
Navigate to AI Settings

Log in to the Smart Dashboard, navigate to the sidebar menu: Settings > AI Settings.

3
Input Credentials and Save

Select your preferred AI provider (Gemini is highly recommended for predictive hub charts), paste your secret API Key, select the target model (e.g. gemini-1.5-flash), and click "Save Configuration".

Stored in Secure LocalStorage: smart_ai_config = {"provider": "gemini", "apiKey": "AIzaSy...", "model": "gemini-1.5-flash"}
4
Test Connection

Click the "Test AI Connection" button. The settings panel will execute a live hand-shake prompt and show a green success notification when successfully activated.

code Developer Guide: Custom Database & API Integration

Learn how to easily fetch real-world data from your backend API database and feed it dynamically into our AI Service engine to get structured responses.

To move from mock demo sandbox data to live production databases (such as Node.js, Spring Boot, Laravel, or .NET APIs), follow this standard three-step Angular integration workflow.

1. Fetch Real Database Records via HttpClient

Define a backend service method to query your REST endpoint or database server for the latest student marks or attendance logs.

// src/app/core/service/student-data.service.ts
import { Injectable, inject } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { Observable } from 'rxjs';

@Injectable({ providedIn: 'root' })
export class StudentDataService {
  private http = inject(HttpClient);
  private apiUrl = 'https://your-school-api.com/api/v1';

  // Fetch live student analytics data from SQL database
  getStudentRecords(studentId: string): Observable<any> {
    return this.http.get<any>(`${this.apiUrl}/students/${studentId}/records`);
  }
}
2. Interpolate Dynamic Payloads & Send to AI Service

Inject your custom data service and the template's standalone AiService into your dashboard component. Fetch the real database records first, serialize the payload, and request Gemini / OpenAI parsing.

// src/app/teacher/examination/marks-entry/marks-entry.component.ts
import { Component, OnInit, inject } from '@angular/core';
import { StudentDataService } from '@core/service/student-data.service';
import { AiService } from '@core/service/ai.service';

@Component({ selector: 'app-custom-grading' })
export class CustomGradingComponent implements OnInit {
  private dataService = inject(StudentDataService);
  private aiService = inject(AiService);

  studentName = 'John Doe';
  isLoading = false;
  aiSuggestedFeedback = '';

  generateSmartRemarks() {
    this.isLoading = true;

    // 1. Fetch live scores from the SQL/NoSQL backend
    this.dataService.getStudentRecords('std_1082').subscribe({
      next: (databasePayload) => {
        
        // 2. Build contextual prompt with actual database fields
        const prompt = `You are a teacher. Analyze the following actual database record:
        Student: \${databasePayload.name}
        Subject: Mathematics
        Score: \${databasePayload.marksObtained}/\${databasePayload.maxMarks}
        Attendance Rate: \${databasePayload.attendanceRate}%
        
        Generate exactly 1 constructive feedback remark.`;

        // 3. Dispatch payload to the configured AI Model
        this.aiService.postPrompt(prompt).subscribe({
          next: (aiResult) => {
            this.aiSuggestedFeedback = aiResult.trim();
            this.isLoading = false;
          },
          error: () => this.isLoading = false
        });
      }
    });
  }
}
3. Parse and Map Structured AI JSON Back to the UI

Force models to respond in structured JSON. Once received, safely parse the payload and update the component properties reactively to bind with material UI widgets.

generateJsonMetrics() {
  const prompt = `Output exactly one JSON object: { "riskPercentage": 75, "reasons": ["Low Attendance"] }`;
  
  this.aiService.postPrompt(prompt).subscribe({
    next: (responseText) => {
      try {
        // Enforce parsing safely
        const parsedData = JSON.parse(responseText.trim());
        
        // Update responsive chart/gauge values instantly
        this.riskGaugeValue = parsedData.riskPercentage;
        this.riskInsightsList = parsedData.reasons;
      } catch (e) {
        console.error("AI response did not match expected JSON format", e);
      }
    }
  });
}

lightbulb Quick AI Feature Guide (Simple English)

A quick summary of all AI pages and what they are used for, explained in simple words.

For Admins
  • Student Risk Predictor: Finds students who might fail or drop out so you can help them early.
  • Admissions & Revenue Forecaster: Predicts how changes in tuition fees, scholarships, and marketing budgets affect student registration and classroom fill rates.
  • Timetable Conflict Optimizer: Automatically creates weekly class schedules and generates conflict resolution plans to fix overlapping times, lower teacher workload, and balance room usage.
  • Fee Defaulter Predictor: Finds students who might pay fees late and writes polite reminder emails.
  • Admissions Screener: Quickly reads student application essays, provides holistic recommendations, and helps you easily shortlist the best candidates.
For Teachers
  • Smart Syllabus Planner: Instantly creates detailed teaching plans, lesson timelines, and fun interactive classroom activities for your specific topics.
  • Quiz Generator: Automatically makes multiple-choice tests when you paste text from a book.
  • Grading Remark Generator: Helps write personal, helpful comments on student report cards.
For Students & Everyone
  • Study Companion: Summarizes notes, makes flashcards, and answers questions like a personal tutor.
  • Leave Request Drafter: Writes professional leave letters for students and checks their attendance safely.
  • Smart Chatbot: A friendly chat window available anywhere to answer questions.
  • Smart Search Bar: Understands what you type and takes you to the right page instantly.

dashboard AI Dashboard Pages Breakdown

Admin Dashboard

1. AI Student Early Warning Risk Predictor

Identifies students at risk of drop-out or academic struggles before they fall behind. Provides automatically drafted intervention plans.

  • Roster Analysis: Cross-references student GPAs, warning counts, and class attendance marks.
  • AI Analysis: Processes factors to calculate drop-out probability and outlines structural strategies to support student retention.
  • Dashboard Path: /admin/ai-analytics/student-risk-predictor
Angular Components: src/app/admin/ai-analytics/student-risk-predictor/
Admin Dashboard

2. AI Admissions & Revenue Forecaster

A predictive tool that models how changes in tuition fees, scholarship rates, and marketing budgets affect student registration volume and classroom capacity fill rates.

  • Revenue & Admissions Simulation: Adjust parameters like tuition fees and scholarships to simulate expected enrollment numbers.
  • AI Analysis: E.g. "The simulated parameters proposing a +5% Tuition Adjustment paired with a 4% Scholarship Rate projects an enrollment volume of 419 Students. This yields a healthy 83.8% Capacity Fill Rate across campuses, maintaining comfortable classroom logistics without overcrowding."
  • Dashboard Path: /admin/ai-analytics/enrollment-forecaster
Angular Components: src/app/admin/ai-analytics/enrollment-forecaster/
Admin Dashboard

3. AI Timetable Conflict Optimizer

A premium automated scheduling dashboard designed to optimize weekly academic calendars and resolve clashing slots by generating an Automated Conflict Resolution Plan.

  • Calendar Optimization: Prioritizes lunch hours, minimizes gaps, limits consecutive hours, and prevents double-booking.
  • Automated Conflict Resolution Plan: Gemini executes a linear heuristic optimization pass to bypass structural scheduling clashes. E.g.:
    - Dr. Sarah Jenkins (Mon 12:00 PM): Rescheduled to Lab B to eliminate physical double-booking in Lab A.
    - Prof. Marcus Vance (Mon 3:00 PM): Shifted to Wed 3:00 PM, creating a stable 1.5-hour recovery buffer block.
    - Room Capacity Analytics: Lab A & Lab B balanced from 92% peak stress to a stable 68% utilization rate.
    - Teacher Satisfaction: Dr. Alan Turing's continuous teaching blocks limited to max 3.0 hours; Prof. Vance's satisfaction index upgraded from 54% to 94%.
  • Dashboard Path: /admin/ai-analytics/timetable-generator
Angular Components: src/app/admin/ai-analytics/timetable-generator/
Admin Dashboard

4. AI Tuition Fee Defaulter Predictor & Collection Planner

Tracks accounts receivable risk, listing tuition defaulter risks and generating communication drafts automatically.

  • Risk Categorization: Identifies default probability levels (High, Moderate, Low) based on payment history.
  • Gemini Action Planner: Drafts outstanding balance reminders based on three prompt tones: Empathetic, Standard, and Firm.
  • Dashboard Path: /admin/ai-analytics/fee-predictor
Angular Components: src/app/admin/ai-analytics/fee-predictor/
Admin Dashboard

5. AI Admissions Screener & SOP Essay Analyzer

A premium application screener that analyzes candidate data and essays to assess academic fit and helps you efficiently shortlist candidates.

  • Candidate Evaluation: Automatically reviews candidate data and generates structured evaluations. E.g.:
    Holistic Recommendation: STRONG ADMIT. The applicant demonstrates a stellar mathematical foundation and a highly mature understanding of subatomic radiation matrices.

    SOP Scoring Metrics: Academic Alignment: 98/100, Originality & Voice: 92/100, Technical Depth: 95/100.

    Key Pillars of Strength: Practical Prototyping (designed custom shielding array), Simulation Skill, Clear Mentorship Fit.

    Suggested Interview Questions: "Could you describe the shielding material density calculations you used in your gamma-ray accelerator prototype, and how you evaluated safety thresholds?"
  • Dashboard Path: /admin/ai-analytics/admission-screener
Angular Components: src/app/admin/ai-analytics/admission-screener/
Teacher Dashboard

6. AI Smart Syllabus & Lesson Planner

Empowers teachers to dynamically formulate structured lesson blueprints and comprehensive teaching plans in seconds.

  • Blueprint Wizard: Formulates specific objectives, topics, grade levels, and teaching styles.
  • AI Generated Teaching Plan: Gemini automatically creates highly structured syllabus breakdowns. E.g.:
    Lesson Objectives: Understand core principles of Gandhiji, apply standard methodology to history, actively participate in discussions.

    ๐Ÿ“– Summary / Context: Custom-tailored for Class 10A in History. Focuses on the fundamental ideas of Gandhiji using the Traditional Structured Lecture teaching style.

    โฑ๏ธ Lesson Timeline (45 mins):
    - 00:00-00:10 (Hook): Introduce concept via brief historical fact.
    - 00:10-00:30 (Core): Elaborate on key aspects with visual presentations.
    - 00:30-00:40 (Practice): Interactive session soliciting answers from students.
    - 00:40-00:45 (Review): Recap and assign homework.

    ๐Ÿงช Classroom Activity: "Gandhiji Speed Challenge!" (Teams of 3-4 draft solutions on mini-whiteboards for rapid scoring).

    ๐Ÿ“ Home Assignment: Textbook page 42 exercises and a 1-paragraph real-world application.
  • Dashboard Path: /teacher/academics/lesson-plans
Angular Components: src/app/teacher/academics/lesson-plans/ai-lesson-planner/
Teacher Dashboard

7. AI Textbook Quiz Generator

Allows instructors to paste textbook chapters or study notes and instantly output multiple-choice questions.

  • Text Extraction: Accepts study notes, articles, or chapters (minimum 50 characters).
  • Gemini Quiz Formulator: Formulates context-aware questions with A, B, C, D answer lists.
  • Interactive Workspace: Interactive correct answer pill selectors allow editing before saving.
  • Dashboard Path: /teacher/academics/quiz-generator
Angular Components: src/app/teacher/academics/quiz-generator/
Teacher Dashboard

8. AI-Assisted Grading Remark Generator

Allows teachers to automatically draft and select customized report card remarks for student score entries in seconds.

  • Contextual Drafting: Evaluates student name, subject, marks obtained, and max marks to formulate custom remark suggestions.
  • Multiple Choice Options: Outputs exactly three separate, short constructive remarks tailored to the student's performance.
  • One-Click Insertion: Instantly select and apply the preferred suggestion directly into the database form field.
Angular Components: src/app/teacher/examination/marks-entry/dialogs/form-dialog/
Student Dashboard

9. AI Study Materials Companion Workspace

Provides an interactive modal within student study pages, loaded with deep summaries, revision tools, and chat support.

  • Summary Outline Tab: Generates organized, clean notes on uploaded chapters.
  • 3D Flashcards Tab: Premium, interactive card deck that flips to reveal definitions.
  • Q&A Chat Assistant Tab: Chat companion answering student questions based on materials.
  • Dashboard Path: /student/academics/study-materials (Click "AI Companion" button on any item)
Angular Components: src/app/student/academics/study-materials/ai-study-companion/
Student Dashboard

10. AI Leave Request Drafter & Attendance Analytics Advisor

An intelligent leave submission helper that evaluates student attendance standing and drafts request letters.

  • Live Attendance Gauge: Color-coded analytics warning students if taking leave drops them below the attendance threshold.
  • Gemini Leave Assistant: Formulates professional letters based on brief reasons provided.
  • Dashboard Path: /student/leave-request (Click "New Request" button)
Angular Components: src/app/student/leave-request/dialogs/form-dialog/
Global Assistant

11. AI Smart Chatbot Assistant Overlay

A premium, floating, global virtual companion accessible from any workspace. Click the chat button to immediately interact with a context-aware sidebar dialog.

  • Trigger Button: Floating action button (FAB) in bottom corner that smoothly expands/toggles the chat overlay window.
  • Action Shortcuts: Instant action buttons like Summary (triggers automated page summarization) and Help.
  • Typing State: Seamless animated typing bubbles and message synchronization using Google Gemini.
Angular Components: src/app/shared/components/ai-chat/
Global Assistant

12. AI Smart Semantic Search & Command Palette

A next-generation search utility that uses natural language processing to understand search intent and route users instantly to their desired destinations.

  • Keyboard Shortcut: Tap Ctrl + K or Cmd + K from anywhere in the template to summon the command panel.
  • Gemini Semantic Routing: Translates conversational queries (e.g. "grade my class") into the exact target route (e.g. /teacher/examination/marks-entry).
  • Role Filtering Safeguards: Automatically filters indexable routes to ensure search queries never leak secure links across different user roles.
Angular Components: src/app/layout/components/search-bar/