// AUTONOMOUS BROWSER AGENT & ACADEMIC COPILOT

LPU UMS Agent

An autonomous, privacy-first Browser Agent with Computer Use for Attendance Intelligence, Examination Date Sheets, Seating Plans, Timetable Navigation, and Voice Interaction on LPU UMS.

Download Extension (.ZIP) Google Drive Setup Guide
v2.4.0 · Manifest V3 · Chrome Side Panel · 422 Vitest Tests
lpu.ums.agent / live-session
LPU UMS Agent Native Side Panel Mounting
Click image to inspect full-screen · Auto-cycles every 4s
02 // OVERVIEW

Why was it built?

The engineering motivation behind grounding autonomous AI directly into university portals.

THE PROBLEM

Lovely Professional University operates two separate, mission-critical portals for students: the legacy ASP.NET / SSRS WebForms portal (ums.lpu.in) and the modern Angular SPA portal (studentums.lpu.in). Both portals are protected by strict session authentication, dynamic postback forms, and nested iframes.

Students face continuous friction during everyday academic operations. Calculating whether missing an upcoming lecture drops attendance below the university's rigid 75% debarment threshold involves manual arithmetic. Locating examination seating across 50+ campus blocks or checking timetable faculty directories requires digging through multi-level menus. Unannounced "Campus Drive Notifications" popups frequently block portal interaction.

External AI bots and cloud scrapers fail completely in this environment: Cloudflare Turnstile blocks automated headless scrapers (Playwright/Puppeteer), storing student passwords on third-party servers creates catastrophic privacy liabilities, and generic language models regularly make dangerous arithmetic mistakes calculating attendance margins.

THE APPROACH

LPU UMS Agent was engineered as a native Chrome Side Panel extension (Manifest V3) running directly inside the student's already-authenticated browser session. It operates with zero password storage and zero cookie interception.

Through autonomous in-session Computer Use, the agent observes the live DOM, locates UI targets via 2D IoU spatial matching, moves a visible AI cursor along smooth cubic-Bézier trajectories at 60 FPS, and executes navigation controls. All attendance forecasting is evaluated by deterministic closed-form algebra, backed by a dual-tier Groq voice pipeline and local-first IndexedDB v3 memory.

01

In-Session Computer Use

Operates directly inside active student sessions with a visible 60 FPS AI cursor. Traverses ASP.NET tables and Angular SPA views with zero credentials leaving the device.

02

100% Deterministic Algebra

Calculates safe bunk allowances and required recovery attendances with closed-form mathematics, eliminating LLM arithmetic hallucinations and debarment risks.

03

Full-Duplex Voice Subsystem

Dual-tier Groq pipeline with Whisper Large-v3 STT and Orpheus TTS, featuring hardware audio prewarming, speech barge-in, and dynamic milestone narration.

03 // ARCHITECTURE

System Architecture

How the Chrome Side Panel, Computer-Use Content Script, Deterministic Algebra, and Groq LPU cluster interact.

Click any component box to inspect responsibilities and technology stack.
↓
↓
↓
API GATEWAY STATUS: OPERATIONAL

FastAPI Asynchronous Gateway (Hugging Face Spaces)

Stateless backend service powering the Chrome Side Panel extension. Hosted on Hugging Face Spaces with FastAPI and Uvicorn, fully compatible with both CPU Basic and ZeroGPU (A10G) tiers.

Key Responsibilities

  • GET /health: Microsecond service health check and LLM model verification
  • POST /api/chat: Token-streaming conversational reasoning with grounded context
  • POST /api/agent/plan: Autonomous Computer Use browser action planner
  • POST /api/voice/transcribe: Groq Whisper large-v3 speech-to-text processing
  • POST /api/voice/speak: Groq Orpheus expressive audio synthesis
  • Zero credential collection: zero passwords or student session cookies touch this backend

Core Technologies

  • FastAPI 0.115
  • Python 3.11
  • Uvicorn (ASGI)
  • Hugging Face Spaces
  • ZeroGPU Support

System Architecture & Boundary Topology

End-to-end component topology detailing the Chrome Browser Tab live session, Chrome Side Panel, and FastAPI Backend Service.

System Topology Flow
CLIENT TIER

Chrome Side Panel

React 18.3 · Tailwind · Apple iOS HIG

↓
COMPUTER USE

Content Script & Cursor

2D IoU · Bezier Physics (60 FPS)

PREFLIGHT GUARD

Modal Dismissal Guard

Safe 'Remind me later' Target

LOCAL STORAGE

IndexedDB v3 Memory

Local-First On-Device Store

↓
API GATEWAY

FastAPI Asynchronous Gateway

FastAPI 0.115 · Uvicorn · Hugging Face

↓
DETERMINISTIC ENGINE

Deterministic Bunk Algebra

Exact Formulas (75%, 80%, 85%)

VOICE PIPELINE

Dual-Tier Groq Voice

Whisper Large-v3 & Orpheus TTS

INFERENCE CLUSTER

Groq LPU Inference

Llama 3.3 70B · 500+ tok/s

Figure 1.0: End-to-end component topology detailing the Chrome Browser Tab live session, Chrome Side Panel (React 18.3 & Apple iOS HIG), and FastAPI Backend Service.

STEP 01

● OBSERVE & ● THINK

Observes active DOM tree and iframe contents. Evaluates route: legacy ums.lpu.in vs Angular studentums.lpu.in.

↓
STEP 02

● LOCATE & ✓ WAIT_FOR_RENDER

Hybrid 2D IoU spatial matching pairs with semantic text scoring; monitors Angular DOM mutations until cards mount.

↓
STEP 03

→ MOVE (Cubic-Bézier Physics)

Smooth 60 FPS visual AI cursor glides across coordinates with cosine smoothstep easing (400-1200ms).

↓
STEP 04

● ACT & ● EXTRACT

Dispatches synthetic mouse events, executes ASPX postbacks, and extracts verified timetable/exam tables.

↓
STEP 05

✓ VALIDATE, VERIFY & DONE

Validates non-empty records, syncs to IndexedDB v3, and delivers visual UI cards with milestone voice narration.

Autonomous In-Session Computer Use

Unlike generic bots that rely on fragile static CSS selectors, LPU UMS Agent executes true in-session browser actions through a strict 10-step perception-action loop:

  1. Hybrid 2D IoU Spatial Grounding: Combines bounding-box intersection calculations with semantic text relevance to locate target controls even when ASP.NET table IDs change between semesters.
  2. Natural Cursor Physics: Visible cursor moves along natural cubic-Bézier curves, providing visual transparency so students see exactly what action the agent performs.
  3. Angular SPA Render Watcher (WAIT_FOR_RENDER): On studentums.lpu.in, dynamically pauses extraction until Angular finishes rendering seating cards, preventing empty record extractions.

Autonomous Perception-Action Loop & Computer-Use Execution Flow

Cyclic State Machine
Autonomous Agentic Loop Execution Flow

Figure 2.0: Cyclic state machine driving computer-use actions from intent perception to DOM element discovery, trajectory interpolation, and postback verification.

STEP 01

Web Audio Capture & Prewarming

Audio is captured via Web Audio API; hardware audio pipeline is prewarmed to eliminate startup latency.

↓
STEP 02

Groq Whisper Large-v3 STT

Converts speech to text with domain adaptation for Indian English pronunciations and course code acronyms.

↓
STEP 03

Speech Barge-in Interruption

Real-time Voice Activity Detection (VAD) instantly cuts ongoing speech playback when the student starts speaking.

↓
STEP 04

Groq LPU Reasoning (Llama 3.3 70B)

Generates structured computer-use JSON plans and reasons over academic contexts with 500+ tokens/sec throughput.

↓
STEP 05

Groq Orpheus Expressive TTS

Streams natural, expressive audio back to the student with dynamic milestone progress narration.

Dual-Tier Groq Voice Pipeline

Speed is essential for an intuitive voice copilot. LPU UMS Agent utilizes Groq's Language Processing Units (LPUs) to eliminate awkward conversational pauses:

  1. Ultra-Low Latency Inference: 500+ tokens/second inference allows the agent to formulate computer-use action plans and speech responses in under 150ms.
  2. Natural Barge-In Detection: Students can interrupt the agent's voice response at any time; the audio playback cuts off immediately and the new command is prioritized.
  3. Dynamic Milestone Narration: Verbally narrates physical browser progress (e.g. "Opening Seating Plan", "Found Room 34-201, Desk A-12") so students stay informed during automation.

Voice Execution & Multimodal Speech Pipeline

Dual-Tier Groq Pipeline
NLP Intent Classification Pipeline

Figure 3.0: Dual-path NLP architecture combining fast-path compiled regex matching with high-throughput Groq LPU reasoning and Whisper voice transcription.

STEP 01

DOM Scrape of Attended & Delivered

Extracts total delivered lectures (T), attended lectures (P), and duty leaves per course directly from UMS tables.

↓
STEP 02

Deterministic Boundary Algebra

Calculates maximum skippable lectures before dropping below 75%: B = floor((P - 0.75 * T) / 0.75).

↓
STEP 03

Recovery Lecture Requirement

If attendance < 75%, evaluates consecutive attendances needed to recover: R = ceil((0.75 * T - P) / 0.25).

↓
STEP 04

Multi-Threshold Margin Analysis

Displays clear margin cushions across 75%, 80%, and 85% attendance targets with zero arithmetic hallucination.

Zero-Hallucination Safe Bunk Algebra

At Lovely Professional University, attendance debarment is strictly enforced at 74.9% and below. Relying on an LLM to perform mathematical calculations on attendance records risks hallucinations that could lead to student debarment.

  1. Rigorous Mathematical Formulation: If present percentage exceeds 75%, allowable bunks $B$ satisfies: $\frac{P}{T + B} \ge 0.75 \implies B \le \frac{P - 0.75T}{0.75}$.
  2. Deficit Recovery Calculus: If attendance is below 75%, consecutive attendances $R$ required to regain eligibility satisfies: $\frac{P + R}{T + R} \ge 0.75 \implies R \ge \frac{0.75T - P}{0.25}$.
  3. Duty Leave Reconciliation: Reconciles approved university duty leave records with delivered totals, guaranteeing 100% mathematical consistency with official registrar records.
01

Voice / Text Prompt

Student requests records via Chrome Side Panel chat or voice microphone.

→
02

In-Session Scrape

Content script traverses active UMS tables without re-authenticating.

→
03

Algebraic Evaluation

Deterministic Engine calculates safe bunks, recovery needs, and margins.

→
04

IndexedDB v3 Cache

Records and conversational checkpoints persist locally on the device.

→
05

iOS UI & Voice Narration

Displays frosted acrylic card while Orpheus TTS streams spoken response.

01

Navigation Goal

Student asks to find seating plan, examination dates, or timetable schedule.

→
02

Preflight Modal Guard

Inspects page and safely clicks 'Remind me later' on notification popups.

→
03

2D IoU Coordinate Grounding

Locates target button and computes natural cubic-Bézier cursor flight path.

→
04

Action & WAIT_FOR_RENDER

Fires synthetic click; monitors Angular SPA mutations until cards mount.

→
05

Milestone Confirmation

Highlights arrival venue (e.g. Room 34-201, Desk A-12) and reports completion to student.

04 // WORKFLOWS

How It Works

What actually happens under the hood when a student interacts with the copilot or executes autonomous navigation.

ACADEMIC QUERY & EXTRACTION LIFECYCLE

The path from raw voice or text prompt to verified data visualization.

01

User inputs prompt or speech

Student speaks into microphone or types query into the Chrome Side Panel interface.

↓
02

Groq Whisper large-v3 transcribes

Audio packets stream to backend gateway; Whisper transcribes speech with academic domain tuning.

↓
03

In-Session Content Script scrapes DOM

Extracts enrolled courses, attended/delivered counts, and duty leave directly from active UMS tables.

↓
04

Deterministic Algebra evaluates bounds

Safe Bunk Engine evaluates closed-form ceiling formulas for 75%, 80%, and 85% attendance thresholds.

↓
05

Local-first checkpointing in IndexedDB v3

Academic records and conversation state are saved on-device with complete user privacy.

↓
06

Frosted UI Card & Orpheus Voice Narration

Side Panel displays interactive gauge card; Groq Orpheus streams natural spoken summary.

AUTONOMOUS COMPUTER-USE NAVIGATION

The physical execution pipeline for automated browser navigation.

01

Student requests navigation

Command like "Show my exam seating" or "Find CSE325 faculty in timetable" is received.

↓
02

Preflight Modal Inspection

Agent scans for blocking "Campus Drive Notifications" popups and safely targets "Remind me later".

↓
03

Hybrid 2D IoU Target Grounding

Computes spatial intersection and semantic relevance to resolve exact target coordinates (x, y).

↓
04

Visible Bézier Cursor Motion (60 FPS)

Visible AI cursor glides naturally across the student's screen with cosine smoothstep easing.

↓
05

Action Execution & WAIT_FOR_RENDER

Fires synthetic click or ASPX postback; MutationObserver monitors Angular DOM until cards mount.

↓
06

Target Verification & Voice Confirmation

Highlights arrival venue (e.g. Room 34-201, Desk A-12) and verbally narrates completion to student.

05 // INSTALLATION & SETUP

How to Install & Set Up the Extension

Get up and running in under two minutes with our production-ready Chrome Extension build.

✦

LPU UMS Agent Extension

Complete pre-built package ready for Chrome, Edge, and Brave.

Version 2.4.0 • Manifest V3 • Format: .ZIP (33 MB)
Download Extension (.ZIP) Google Drive Mirror · Direct Zip Download · Verified MV3 Package
STEP 01

Download & Unzip

Click the download button above to get the extension ZIP from Google Drive. Extract the archive into a folder of your choice on your computer.

STEP 02

Open Chrome Extensions

Open Google Chrome (or Brave / Edge), open a new tab, and enter the following address into your URL bar:

chrome://extensions
STEP 03

Enable Developer Mode

In the top right corner of the Chrome Extensions page, toggle the Developer mode switch to the ON position.

STEP 04

Load Unpacked Extension

In the top left toolbar, click the "Load unpacked" button. In the file picker, select the unzipped lpu-ums-agent-extension directory.

STEP 05

Pin Extension to Toolbar

Click the jigsaw puzzle piece icon in Chrome's top toolbar, find LPU UMS Agent, and click the pin icon for instant one-click access.

STEP 06

Open UMS & Launch

Navigate to https://ums.lpu.in or https://studentums.lpu.in and log in. Click the extension icon (or press Alt + Shift + U) to open your native Side Panel!

Pro-Tips & Troubleshooting
  • Audio Permission: When using the voice copilot for the first time, allow microphone access so Groq Whisper large-v3 can transcribe your speech with barge-in support.
  • Keep UMS Tab Active: Ensure you have your active UMS tab open when asking questions so the in-session content script can read your live attendance and schedule data.
  • Automated Modal Dismissal: If a "Campus Drive Notifications" popup appears on UMS, the agent will automatically detect it and safely click "Remind me later" with visual AI cursor movement.
06 // ARCHITECTURAL TRADEOFFS

Engineering Decisions

The technical rationale behind architectural choices: Problem → Decision → Reasoning.

DECISION 01

Why Chrome Side Panel MV3 over Remote Headless Scrapers?

PROBLEM

UMS is protected behind private authentication, session cookies, and Cloudflare verification. External headless bots (Playwright/Puppeteer) require students to transmit plaintext passwords to remote servers, creating critical data leak liabilities.

DECISION

Engineered as a native Chrome Side Panel extension (Manifest V3) running directly inside the student's already-authenticated browser session.

REASONING

Operates completely client-side in the student's real browser context. Zero student passwords or session tokens are stored or transmitted, guaranteeing complete zero-knowledge privacy.

DECISION 02

Why Deterministic Algebra over LLM Arithmetic?

PROBLEM

Large Language Models are probabilistic token predictors that struggle with exact ceiling arithmetic, regularly miscalculating attendance margins and risking student debarment at the strict 75% threshold.

DECISION

Separated numerical calculations into a pure deterministic Python and TypeScript calculation engine.

REASONING

Calculations are evaluated via closed-form ceiling formulas (B = floor((P - 0.75T)/0.75)), guaranteeing 100% precision and eliminating arithmetic hallucinations.

DECISION 03

Why Groq LPUs for Language & Voice Pipelines?

PROBLEM

Standard cloud GPU inference exhibits high token latency (1-3 seconds time-to-first-token), rendering voice copilot conversations sluggish, awkward, and incapable of dynamic progress narration.

DECISION

Deployed high-speed Language Processing Units (LPUs) via Groq hosting Llama 3.3 70B, Whisper Large-v3 STT, and Orpheus expressive audio TTS.

REASONING

Delivers sustained 500+ tokens/second inference with sub-150ms latency, enabling fluid conversational voice exchanges with real-time speech barge-in.

DECISION 04

Why Local-First IndexedDB v3 Storage?

PROBLEM

Centralizing student examination seating, attendance records, and personal academic histories in remote cloud databases introduces security targets and privacy concerns.

DECISION

Implemented a local-first storage architecture utilizing browser IndexedDB v3 on the student's device.

REASONING

Academic records and multi-turn chat history persist across browser restarts locally with instantaneous caching, zero centralized database overhead, and complete student sovereignty.

07 // DEPLOYMENT TOPOLOGY

Infrastructure

Production container topology, edge routing, and runtime boundaries.

                 Student Browser (Google Chrome Manifest V3)
                                 │
           ┌─────────────────────┴─────────────────────┐
           │                                           │
   [Chrome Side Panel]                         [In-Session Content Script]
   - React 18.3 & Apple iOS HIG                - 2D IoU Spatial Grounding
   - Deterministic Attendance Gauges           - 60 FPS Cubic-Bezier AI Cursor
   - SSRS Timetable Day Filters                - Preflight Modal Dismissal Guard
   - Local IndexedDB v3 Cache                  - MutationObserver SPA Watcher
           │                                           │
           └─────────────────────┬─────────────────────┘
                                 │ (HTTPS / SSE Streaming)
                                 ▼
                     FastAPI Inference Gateway
                     (Hugging Face Spaces · Python 3.11 · ZeroGPU / CPU)
                     - /health: Microsecond Telemetry Check
                     - /api/chat: Context-Grounded Reasoning
                     - /api/agent/plan: Computer-Use Action Planner
                     - /api/voice/transcribe: Whisper Large-v3 STT
                     - /api/voice/speak: Groq Orpheus Expressive TTS
                                 │
          ┌──────────────────────┼──────────────────────┐
          ▼                      ▼                      ▼
  [Safe Bunk Algebra]    [Groq Voice Engine]    [Groq LPU Cluster]
  - Closed-Form Calculus - Whisper Large-v3 STT - Llama 3.3 70B Versatile
  - 75%, 80%, 85% Bounds - Orpheus Audio TTS    - 500+ tokens / second
  - 22 Pytest Verified   - Real-Time Barge-in   - 32,768 Token Context
            
08 // ENGINEERING REALITIES

Challenges

Specific technical hurdles overcome during the design and deployment of the autonomous copilot.

01

SSRS ReportViewer Container Traversal Without Host Page Scrolling

The timetable on ums.lpu.in is rendered inside a legacy SQL Server Reporting Services (SSRS) WebForms ReportViewer container (Reports/frmStudentTimeTable.aspx). Standard scroll commands scrolled the student's entire browser window rather than the internal table. Engineered a custom container-relative scroll interpolator that targets internal overflow divs directly, scrolling to faculty directories smoothly while maintaining host viewport stability.

02

Angular SPA Dynamic Shells & WAIT_FOR_RENDER Synchronization

The modern portal at studentums.lpu.in serves an Angular Single Page Application shell that renders seating cards asynchronously after initial navigation. Early scraping attempts extracted empty DOM nodes. Built a dedicated WAIT_FOR_RENDER state in the computer-use loop that monitors DOM mutations via MutationObserver, pausing extraction until exam records mount completely.

03

Blocking "Campus Drive Notifications" Popups Disrupting Workflows

UMS frequently displays unannounced modal notifications regarding campus placement opportunities, freezing underlying page clicks. Implemented an automated Global Preflight Modal Guard that intercepts modals, locates the button, and safely clicks Remind me later using the visual AI cursor. This ensures students never miss placement opportunities while unblocking automation.

04

Full-Duplex Voice Barge-in & Hardware Audio Prewarming

In speech interfaces, high latency and inability to interrupt spoken answers creates a frustrating experience. Engineered a Web Audio API audio pipeline with real-time speech barge-in detection that cuts TTS playback the instant the student speaks, paired with hardware audio pipeline prewarming that drops speech startup latency below 200ms.

THE SYSTEM

An autonomous campus agent bridging student queries with live browser execution.

LPU UMS Agent replaces confusing menu hierarchies, attendance calculation anxiety, and manual hall searches with an intelligent, client-grounded copilot engineered specifically for Lovely Professional University students.

BUILT WITH
Chrome MV3 Side Panel · TypeScript 5.6 · React 18.3 · FastAPI 0.115 · Groq LPU · Whisper Large-v3 · Groq Orpheus · IndexedDB v3 · Vitest · Pytest
NEXT MILESTONES
  • → Offline Edge WebAssembly Models
  • → Multi-Tab Session Orchestraction
  • → Automated Assignment Submission Alerts